Tutorials & Examples

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

Large & Searchable List with SearchView + B4XSerializator

Attachments

  • B4J_IndexBuilder.zip
    57.9 KB · Views: 1,616
  • LargeSearchView.zip
    733.6 KB · Views: 2,710
Last edited:

Modules Attributes

Basic4android v2.50 includes a new method for handling project and modules settings.

These settings are now set in the code itself. The menu items were removed...
 
Last edited:

[B4X] The Networker's Guide To The Galaxy


The purpose of this tutorial is to cover the various communication options available for B4X developers.

Will start with two important utilities:
 

AsyncStreamsObject - Send and receive objects instead of bytes

AsyncStreamsObject is a small framework built over AsyncStreams.

Instead of sending and receiving bytes, AsyncStreamsObject allows you to send and receive objects. This makes it much...
 

Attachments

  • AsyncStreamsObject.zip
    10.5 KB · Views: 4,030
Last edited:

Designer Scripts & AutoScale Tutorial

Attached you find a pdf tutorial about Designer Scripts & AutoScale.
It includes Erels Designer Scripts Tutorial and a new AutoScale Tutorial.
It's an extract of two chapters from the next...
 

Attachments

  • AutoScaleExample7.zip
    73.1 KB · Views: 10,303
Last edited:

Wrapping the jFugue Midi Programming jar (B4a & B4j)

Having just posted the jFugue jar file and examples of accessing it, I thought it would be a good opportunity to show how I would go about creating a wrapper in B4x for this.

This is only one way...
 

Attachments

  • jFuguePlayer.bas
    5.4 KB · Views: 383
Last edited:

Google Push Notification for dummies (GCM)

Widget preview images

Hi All,

Below are my notes on getting a widget preview image to appear in the widget list. The preview image appears in place of the app icon (if used).

1) Create a png with the preview in...
 

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: 7,613
Last edited:

Android Http Multipart requests

Attachments

  • MultipartPost.bas
    2 KB · Views: 2,094
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,571

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: 706

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: 696
Top