Tutorials & Examples

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

DBUtils - Android databases are now simple!

Attachments

  • DBUtils.zip
    14.4 KB · Views: 5,516
Last edited:

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:

two dimensional database/reports

Hello Everyone,
wants to have a two dimensional database.
Is it feasible using the great DBUtils by Erel.

the table should look like this...
 

Attachments

  • db.jpg
    db.jpg
    15.3 KB · Views: 1,143

How to get out of a loop

I have several lines of data like this in a file
1,1000,1000,point1
2,1027.699,1030.228,point2
3,1045.671,1070.345,point3
4,2345.123,1098.346,point4
.
.
etc.

When I enter a point number...
 

Which device are you using?

Just curious as to which device(s) other than the emulator are you using for testing your application. Phone or tablet? Which brand/model/where purchased,etc.? I used a borrowed Cricket android...
 

Adding Background or image file top activity

Hello,
I am new to this forum, I have just installed the IDE.
Congratulations on the ease of use! Having messed around with WinDev for a while, which costs a fortune compared to B4A I am...
 

ScrollView example with multiselection and SQL

Here is another ScrollView example with:
- adding a row
- moving a selected row up and down
- mono-selection, clicking on one row selects it, clicking on another row unselects the previous one and...
 

Attachments

  • ScrollViewMultiselect.zip
    9.5 KB · Views: 4,076
  • ScrollViewMultiselect1.jpg
    ScrollViewMultiselect1.jpg
    48.4 KB · Views: 20,639
  • ScrollViewMultiselect2.jpg
    ScrollViewMultiselect2.jpg
    47.9 KB · Views: 20,089

Getting picture from gallery

How do I browse and select a picture from the gallery?

:sign0163:
 

Googlemaps V3 In A Webview

Hi Everyone,

Until the mapview becomes available, I have managed to "squeeze" the googlemaps V3 JS API into a webview for an app I am working on :sign0060:

The benefit of the JS map over a...
 

Debugging android applications

Tutorial covering the new "Rapid Debugger" deployment mode is available here:
Rapid Debugger


This tutorial explains the debugging features added in Basic4android v1.50 as well as the...
 
Last edited:

Collecting tips - Beginners wanted!

I want to collect useful tips for developers who are starting to develop with Basic4android.
I'm deeply familiar with Basic4android and therefore not always aware of difficulties that new users...
 

Signature Capture Tutorial

Several developers were interested in adding support for signature capturing in their Android application.
The attached code module makes it easy to capture the signature and save it to a file...
 

Attachments

  • SignatureCapture.zip
    6.4 KB · Views: 4,072

How to make a simple splash scree (that you can understand)

This is tutorial of how to make a splash screen in B4A. There are 3 sections. Just copy and past the code. In the designer save the layout as "LayoutMain.bal" and make a "Panel1" in that layout...
 

HttpUtils - Android web services are now simple!

OkHttpUtils2 is now available. OkHttpUtils2 is an improved version and is recommended for new projects. You shouldn't use HttpUtils (v1)!

HttpUtils is made of a code module and a...
 

Attachments

  • FlickrViewer.zip
    9.8 KB · Views: 3,251
  • HttpUtilsExample.zip
    7.8 KB · Views: 5,687
Last edited:

Android SQLite Viewer

SQLite Viewer is an open source application that allows you to view the contents of SQLite databases right from your Android device...
 

Attachments

  • SQLiteViewer.zip
    15.1 KB · Views: 2,804
Last edited:

Help library reference

I'm trying to make a app with "phone events",
ex. get the number of incoming call into a textbox
ex. is phone ringing ?
iex. is phone idle ?
etc, etc

I'm missing some kind of library for...
 

Converting VB6 to B4A

Below is a table listing features of Visual Basic 6 and their equivalents in B4A.

If you find errors or wish to add other features, post a reply here to have your input integrated into the table...
 
Last edited:

Hello World - Video example

ScrollView example with a Panel higher than the screen

Attached you find an example with a ScrollView with a Panel higher than the screen.

The layouts are designed in the Designer, not in the code.

There are 2 layout files:
- Main with the...
 

Attachments

  • ScrollViewBigPanel1.jpg
    ScrollViewBigPanel1.jpg
    18.3 KB · Views: 22,890
  • ScrollViewBigPanel2.jpg
    ScrollViewBigPanel2.jpg
    28.6 KB · Views: 21,967
  • ScrollViewBigPanel.zip
    8.8 KB · Views: 1,167
Last edited:

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...
 
Top