Tutorials & Examples

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

listview reading second line

I dont know how to get the second line returned from a listview

help is appreciated

reading from the manual:

However you can change it to any object you like by using:
AddSingleLine2...
 

Standard vs. Enterprise

What is (will be)the difference between the versions, Standard and Enterprise?

Tazer98
 

[B4X] Regular expressions (RegEx) tutorial

Regular expressions are very powerful and make complicate parsing challenges much easier.
This short tutorial will describe the usage of regular expressions in Basic4android.
If you are not...
 
Last edited:

B4A to Eclipse

Hi,

Is it possible to compile a project generated by B4A with Eclipse?
This is to add features directly from Eclipse.
Do you have an example?

Tx.

JP

Edit : Sorry for the title. It should be...
 
Last edited:

App to Droid

Ok now that I have an App that I Made how do I get it to my phone to tests it there it works on the Emulator and i'm not giving it to the Market yet Thanks?

Yes I’m super new teaching myself. I...
 

List with two columns and a checkbox

Hello,

I have a TabHost which holds 4 tabs.
I want to have a list with two columns and a checkbox for each line in the list on the forth tab of the TabHost.

How can I do it? In case it's...
 

Where is the documentation?

Working with Samsung Galaxy Tab

The Samsung Galaxy Tab is a neat Tablet running Android 2.2.

The following steps are required in order to connect it to the IDE.
- When the device is not connected, go to Settings -...
 

AVD sd card maker

I found it a bit difficult to get a handle on creating the sd card in the emulator. As it involved using the command line I thought I might try to write a small tool to help if you are not...
 

Attachments

  • makeSD.zip
    10.9 KB · Views: 696

Voice Recognition Example

A large button is displayed. When the user presses on the button, the user is asked to say something.
The voice recognition engine converts the audio to text.

Then the text is converted back to...
 

Attachments

  • VoiceRecognition.zip
    5.6 KB · Views: 5,443

Android Views (controls) and dialogs

Many users who start to develop Android applications may be frustrated by the fact that they don't find the control they are looking for. Its even worse, for some mysterious reason there are no...
 

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:

Service Modules

This is an old tutorial. Most of the information here is no longer correct.



Basic4android v1.2 adds support for Service modules.
Service modules play an important role in...
 
Last edited:

Static Code Modules

Basic4android v1.2 includes a new type of module which is the static code module.
Adding a static code module is done by choosing Project - Add New Module - Code Module.

Unlike Activities and...
 

Downloading files using Service module

It is recommended to use HttpUtils2 instead of this code module. HttpUtils2 is more powerful and is easier to work with.

As discussed in the Services tutorial, some tasks are...
 

Attachments

  • DownloadService.zip
    6.9 KB · Views: 6,489

Twitter feed reader

This example no longer works as it is based on an old Twitter API.
An updated example is available here...
 

Attachments

  • TwitterDemo.zip
    40.5 KB · Views: 3,831
  • Twitter.apk
    122.9 KB · Views: 1,182

[B4X] AsyncStreams Tutorial

New video tutorial:


AsyncStreams allows you to read data from an InputStream and write data to an OutputStream without blocking your program. The reading and writing are done...
 
Last edited:

Rearrange ListView lines

I have a ListView that I want to allow the user to rearrange the lines in it.

For example, my ListView is showing 6 lines

Apple
Orange
Rabbit
Toad
Umbrella
Zebra

I want the user to...
 

hello world does not work

When I compile the project, I obtain this error


Compiling code. 0.03
Generating R file. Error
AndroidManifest.xml:2: error: No resource...
 

how to use libraries

I cant figure out how to include a library. Im trying to play with SQL Lite, but find no library tab as stating in an example I saw. I have my paths set up correctly I think. Im on 1.2 thanks
 
Top