Tutorials & Examples

Android development starts here. Please do not post questions in this sub-forum.

Using torrents to distribute your free apps

I think this might be a good way to get that .apk out there.

Firstly you need to create a torrent. You can use uTorrent to do this.
www.uTorrent.com

Goto File > Create New Torrent

Click...
 

Drawing lines problem

Attached you find a small test program that shows a known problem in Android when drawing lines with a small slope and with a StrokeWidth of 1.

In some cases the entire line or parts of it are...
 

Attachments

  • DrawLines.zip
    7 KB · Views: 1,306
  • DrawLines1.jpg
    DrawLines1.jpg
    45.2 KB · Views: 1,729
  • DrawLines2.jpg
    DrawLines2.jpg
    41.3 KB · Views: 1,467
Last edited:

Now,Push is easy for B4A(with androidpn)

Attachments

  • pushlib&demo.zip
    365.9 KB · Views: 1,028

My emulator runs fast and smoots as a phone

I never saw any references here to the X86 AVD's with GPU support. Is this common knowledge? Or maybe not everyone DOES know? It took a while to set up, but the result is extremely cool.

The...
 

B4A-HelpViewer - View and search the documentation offline

This tool is no longer available. Please use the online search instead.

I'm happy to release the second version of B4A HelpViewer.
This utility allows you to browse and search...
 
Last edited:

scrollview.panel.add views order question

Hi,

I have a question about scrollview.panel.add. when we add new panel, the new added panel located on top of former added panels. For example,

I add a panel a to scrollview, and then...
 

B4a 2.02 on WINE (UBUNTU 12.04)

First of all, I'm totally newbie on Linux.

I can install B4A on Wine 1.4 and compile sources via B4A-BRIDGE (Wireless).


1º) To install JAVA and ANDROID SDK I followed this...
 

Attachments

  • Captura de pantalla de 2012-09-09 10:19:49.png
    Captura de pantalla de 2012-09-09 10:19:49.png
    8.7 KB · Views: 636
Last edited:

Send email attach file

hi

I was try to use this sample from the forum to send email and attach file
I can send email but not the file


B4X:
Dim r As Reflector
Dim f As Object
f =...
 

Barcode Scanning Observations

I have done some extensive barcode testing the last few days using a device with an 8 megapixel camera. I would like to share my obervations and hope many of you can debate, corroborate or add to...
 

Fading label effect, SetColorAnimated < Android 3 devices

Attachments

  • SC20121114-113536.png
    SC20121114-113536.png
    27.7 KB · Views: 1,891
  • fading colors.zip
    6.9 KB · Views: 985
Last edited:

Jar of Beans - new FAST android-emulator

Simple Tab Example

Hi

I have just purchased Basic4Android and I am having difficulty getting started with it. I need to create an app with 3 tabs on top with each of the container having a webview, which should...
 

The SMB library uses a Java structure

I'm getting no where trying to use the SMB library.
Specifically I need to read a text file, but the DownloadFile2 function uses a Java InputStream structure, and I'm not familiar with Java or...
 

Clipboard

Trying to find a way to copy barcode scanner example barcode into Android ClipBoard.
Not having very much luck finding a Basic example.


Embarassing it took me a long time to find this.
And I'm...
 
Last edited:

How to setup a android tablet with no wifi or bluetooth with layout designer

How to setup a android tablet with no wifi or bluetooth with layout designer
I f you tablet is out of range of Wifi (and has no bluetooth), but you have a windows computer that is in range...
 

Custom "push" notifications (server included)

[Reworked] Custom "push" notifications (server included)

So I have come up with a better(?) way of doing push notifications.

This time I will provide a usable server executable.
Download the...
 
Last edited:

Posting a byte array to a web service - vb.net example

Hi All,

I've just had a fun time trying to get a webservice to receive a byte array converted from an XML file with data to upload. I'd always used parameters for web service stuff and never...
 
Last edited:

Making money with apps

Hello everyone,

I'm Yang from sellAring ad network, very happy to be here at Basic4Android.
SellAring is a mobile advertising network that delivers innovative ad solutions to the market. We...
 
Last edited:

How to connect to your Arduino using B4A

I recently purchased an Arduino USBDroid. The spiel told me I could connect it to my Android phone, but that was about it! I eventually worked it out after a week or so, and a bit of luck :) and...
 

Attachments

  • Connecting your Arduino board to an Android Phone.zip
    258.8 KB · Views: 1,888

Better Sliding Panels with Transparent Top

First off, Erel is the man!

Attached is my result from below:

I researched through the forums and found that people were looking for a way to catch swipe events, without passing them down to...
 

Attachments

  • BetterSlidingPanelsWithTop.zip
    17.4 KB · Views: 1,163
Top