Tutorials & Examples

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

Super-fast alternative to emulator -> x86 Android

Hi all

*EDIT3*

For a much easier to set up and faster Android emulation please now look at this thread:

GeanyMotion...
 
Last edited:

B4A: Getting Started for Delphi Developers

B4A: Getting Started for Delphi Developers

Borland introduced the Delphi programming environment in 1995. At the time Delphi was a revolutionary new tool for Microsoft Windows-based application...
 

List folder content and show selected image.

Attached is a little program shows how to read a directory content, show the filenames in a listview, and showing an example of the selected image file in imageview.

Duplicated from the...
 

Attachments

  • ListviewDircontentImagebox.zip
    6.1 KB · Views: 1,718

Voice Recognition Example

Here's a quick example of voice recognition.
It just displays the results to the log window.
This example shows all the different recognized patterns that are returned by the Voice Module...
 
Last edited:

Core Documentation [UNOFFICIAL]

As a Development Team Leader, I like my code to be "just so". I also like my documentation to be "just so".
I am humble enough to know that I don't know everything, but I do know what I like...
 
Last edited:

Quick & Dirty Google V3 Reverse Gecoder

Send the following to HttpUtils or whatever:

B4X:
http://maps.googleapis.com/maps/api/geocode/xml?latlng=40.714224,-73.961452&sensor=false

Substituting the lat/lon as required...
 

Basic4android works on linux!

Hi everyone not sure where to post this but Basic4Android works on LinuxMint 11 :icon_clap: using VirtualBox (non opensource version) with XP SP2 installed (DotNet 2.0).

No problems at all...
 

B4A-Bridge and VirtualBox (Linux-host)

My OS of choice is Linux (Mint-11) so having to dual-boot out to Windows any time I wanted to run B4A was a pain. I tried running B4A via VBox, but when bridging to my android device I got a list...
 

Android - Virtualbox

Hi to all,

I´m not sure if this information is useful...
I was not satisfied with the emulator and started looking for something different.
At Redirection you can find readymade images...
 

Sorting algorithms - Teaching with Basic4android

Implementations of sorting algorithms are useful for teaching fundamental concepts such as algorithms analysis, complexity and data structures.

The following code includes implementations of the...
 
Last edited:

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,158
  • DrawLines1.jpg
    DrawLines1.jpg
    45.2 KB · Views: 1,603
  • DrawLines2.jpg
    DrawLines2.jpg
    41.3 KB · Views: 1,349
Last edited:

Now,Push is easy for B4A(with androidpn)

Attachments

  • pushlib&demo.zip
    365.9 KB · Views: 900

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: 512
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,708
  • fading colors.zip
    6.9 KB · Views: 845
Last edited:
Top