Tutorials & Examples

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

Displaying Animated GIF

Hi, How do I display a animated GIF?
Now it just shows up as a static image.
 

Trial - Version problem?

Hi,

I just dloaded the Trial version today and wanted to start with the hello world sample, but when compiling I get the following error:


javac 1.5.0_22...
 

File Path |Dir|Folder

I have filename.csv file contained two fields?
What folder do I have to copy my filename.csv file so I can access the csv file using loadcsv. eg.
Dim su As StringUtils
Dim Table As List
Table...
 

B4A-Bridge a new way to connect to your device

There are several options to develop with B4A:
- Android emulator or a VM.
- Connect to a real device in USB debugging mode
- Connect to a real device with B4A-Bridge.

I recommend starting with...
 

Attachments

  • upload_2016-9-29_9-29-57.png
    upload_2016-9-29_9-29-57.png
    14.3 KB · Views: 6,086
Last edited:

LoadCSV and listview.addtwolines

I'm having trouble understanding how csv files are loaded. I've read all the tutorials and posts I could find, but I can't get a grip on it.
With a textreader I can read a line and then do...
 

Cannot sign apk with valid key in B4A

I have a couple of apps I created in appinventor and signed with my key but when I try to use the same, working, key in B4A it gives me this error:

"jarsigner: Certificate chain not found for...
 
Last edited:

How do I read the content of a basic web page into a text variable?

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:

Data Type and Range

Where do I find data range for B4A;
float
int
double
long
single
decimal
currency
etc...
List from VB.

Thanks.
 

.net error when starting b4a

When I try to start B4A, I get a .net error that says

"Unable to find a version of the runtime to run this application"

I tried uninstalling and reinstalling .net, but that didn't help...
 

B4A-Bridge source code

B4A-Bridge is made of two components. One component is running on the device and the other is embedded in the IDE.
The device side is the server side. It waits for connections and when a...
 

Attachments

  • B4A-Bridge-source.zip
    29.5 KB · Views: 772
Last edited:

Voice Recognition and activity lifecycle

This might be obvious to some but it caused me some grief so hopefully I can spare someone else some grief.
When using Voice Recognition I have found that it defies the activity lifecycle. What...
 

Android SlidingPanels - Simple way to create sliding layouts

This is an old tutorial. There are now simpler and better ways to achieve this effect.

For example...
 

Attachments

  • SlidingPanels.zip
    6.9 KB · Views: 9,854
Last edited:

Android Charts Framework

The purpose of this framework is to allow you to easily add different types of charts to your projects.
The current version supports pie charts, line charts and bar charts.

The framework is...
 

Attachments

  • Charts.zip
    9.6 KB · Views: 7,667
Last edited:

Connect Android to MySQL Database Tutorial

A new more powerful framework is now available: jRDC2.

This tutorial explains the basic concepts required for creating a connection between Android device and a remote server. In this...
 

Attachments

  • MySQL.zip
    8 KB · Views: 17,198
Last edited:

Variables & Objects in Basic4android

Types

Basic4android type system is derived directly from Java type system.
There are two types of variables: primitives and non-primitives types.
Primitives include the numeric types: Byte...
 

Collection of tutorials in PDF format

Edit: This resource is no longer available. Better resources are available here: https://www.b4x.com/etp.html

You can now download a PDF file that contains most of the tutorials. The...
 
Last edited:

Android Http Multipart requests

Attachments

  • MultipartPost.bas
    2 KB · Views: 2,074
Last edited:

Different examples with 2 layouts

As an answer to the thread Forms alike, I thought that the examples below would be of general interest.

Attached there are 4 examples with two same layouts but with different managements...
 

Attachments

  • TwoLayoutActivities.zip
    14.1 KB · Views: 2,034
  • TwoPanelActivity.zip
    12.4 KB · Views: 1,685
  • TwoPanelLayouts.zip
    14.5 KB · Views: 1,763
  • TwoActivityLayouts.zip
    8.7 KB · Views: 1,401
Last edited:

ScrollView examples summary

Last edited:
Top