Tutorials & Examples

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

For beginners: How to communicate with a server using httputils2 (Part 1: php)

This tutorial is deprecated. You can still use it to understand the basic communication. A newer one can be found here...
 
Last edited:

Installing Basic4android and Android SDK

Last edited:

Android Network Tutorial

This is an old tutorial. All new implementations of network solutions should be based on AsyncStreams.

The Network library allows you to communicate over TCP/IP with other computers or...
 

Attachments

  • NetworkExample.zip
    23.7 KB · Views: 8,048
Last edited:

Android Http Multipart requests

Attachments

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

B4A Book Updated to Version 5.80

B4A-2nd-Ed-Front-Cover-1000-244x300.jpg

I am happy to announce that the B4A tutorial and reference book "Rapid Android App Development...
 
Last edited:

Custom ListView library

Here's a library tutorial to hopefully show the basic steps required to create a custom ListView.

The custom ListView creates each ListView ListItem from a layout XML file - your...
 

Attachments

  • MyListView.zip
    31.1 KB · Views: 4,883

Arabic Digital Clock

See attached B4A project. It implements a digital clock with Arabic numerals. You can edit the png files in the /files folder of the B4A project with something like GIMP and clean them up / change...
 

Attachments

  • ArabicDigitalClock.zip
    102 KB · Views: 1,000

My CustomView template - with AddToParent

I think CustomViews are great addition to B4A, one of it's best features, and a fantastic way to increase productivity, reuse code, and add intelligence to the views we use.

The ability to add...
 

send and receive messages between two devices or Device and PC using bluetooth

1. Looking for application sample b4A to send and receive text messages (chat system) over blue tooth between two mobiles

2. Looking for application sample b4A to receive messages and reply over...
 

StateListDrawable example

StateListDrawable is a drawable objects that holds other drawables. Based on the view's current state a child drawable is selected.
StateListDrawable holds a list of states. States can be...
 

Create online theme

Hi,
I found a site that create style and theme for your app.
You can select color and views and android sdk and other
It return res folder for you that can use in your app.
For use theme in your...
 

Have Back and Front Camera's & has Flash (inline Java code)

This is just some simple inline Java code to check if a device has a Back facing camera, a Front facing camera, and a Flash (it requires the JavaObject library to be enabled).

1.png
...
 

Attachments

  • b4aHasFrontBackCameraAndFlash.zip
    8.8 KB · Views: 972

Comparison Operators in Select Case

Just a small request for the wishlist. It would be nice to be able to use Select Case using the 'greater than' and 'less than' operators <>. It makes for cleaner code than 'if' 'else' and 'end if'...
 

B4X - The best development tools for the connected world!

As B4R (Arduino) will soon be released, I've made a short video that shows some of the communication features available in B4X.

Make sure to watch it in HD mode:


The source...
 

Attachments

  • ConnectedWorld.zip
    25.5 KB · Views: 896

For beginners: How to communicate with a server using httputils2 (Part 3: php, MySql & JSON)

Attachments

  • Example_B4A.zip
    8.6 KB · Views: 3,243
  • php_example.zip
    552 bytes · Views: 2,843

Begin with the B4A Trial version

The B4A Trial Version allows to get a good impression of the possibilities of B4A.

The trial version is limited to 30 days.

Following steps are needed to use the trial version.

Two solutions...
 

keystore alias password

What is the keystore alias password? I know that alias is b4a but how about the password?
 

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

MySQL: Load Excel Sheets (or other data) via .csv

Animation without timer

Hi Guys

I would like to share with you something that most of you maybe allready know but also if there are some people that still dont know that, it could be very helpfull for them.

There are...
 

Attachments

  • animation without timer.zip
    224.4 KB · Views: 2,044
Last edited:
Top