Tutorials & Examples

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

Altering existing design.

How do you make changes to the basic layout (design) of a program? I opened the following sample file: DataBaseProgSample1.5.b4a I wanted to change the sizes of the edit fields, but when I...
 

Alternative to B4A Bridge: USB Cable Connection

Step 1: On your mobile device, make sure you have USB Debugging activated.
- Go to "Settings".
- Scroll down to the bottom and tap "About phone" or "About tablet",
- Scroll down to the...
 
Last edited:

Alternative way to create Progress Indicators

gifProgressIndicator.png


The attached project is a "short cut" that will enable you to create Progress Indicators for your projects. It makes use of GIF files to simulate the progress indicators. The B4A...
 

Attachments

  • JHS GIF LOADERS.zip
    433.2 KB · Views: 859
  • 27.zip
    309.5 KB · Views: 670
Last edited:

AMD Ryzen processor & Android emulator AVD

If you have modern processor from AMD (Ryzen) - x86-variants of AVD cannot work by default.
Android emulator now requires the processors with a virtualization only.

By default Intel processors...
 
Last edited:

Amir_RecyclerView-Samples

Last edited:

Analog Clock with Sound

Hi!

Since I've been messing around with trigonometry this week, I decided to give you guys an analog clock example. Enjoy!

B4X:
#Region  Project Attributes
    #ApplicationLabel: Analog Clock...
 

Attachments

  • analog.zip
    9.9 KB · Views: 1,039

Analog24hClock - Post #12

It wraps a tiny bit of this - just enough to show the clock. Thought it looked quite nifty...Have done nothing special to it other than painting the hands and the face a bit...:) Lib...
 

Attachments

  • Analog24hClock.zip
    494.3 KB · Views: 851
  • src.zip
    262.6 KB · Views: 774
Last edited:

Android "Kiosk mode" tutorial

Attachments

  • Kiosk.zip
    6.7 KB · Views: 5,515
Last edited:

Android - Virtualbox

Hi to all,

I´m not sure if this information is useful...
I was not satisfied with the emulator and started looking for something different.
At Redirection you can find readymade images...
 

Android 4.2+: ADB using USB & Developer Options

I recently ran into some issues after an update to my Galaxy S3 and after seeing a related post, I decided to write this quick tutorial. I didn't see information on this elsewhere in the forum...
 

Android 5.0 Information and Resource Thread

Android 5.0 Lollipop is a pretty big update hence the major version number upgrade.
I wanted to make a thread to combine Android 5 SDK related resources since it is such a big update.
At the...
 
Last edited:

Android Arkanoid game example

This is a "bare" arkanoid game:

arkanoid_1.png


The code is made of 4 modules:
Main - main activity. Also holds the main timer that is running the...
 

Attachments

  • Arkanoid.zip
    73.3 KB · Views: 2,685

Android based Closed Circuit TV (CCTV) example

Attachments

  • CCTVServer.zip
    30.1 KB · Views: 4,260
  • CameraCCTVClient.zip
    10.3 KB · Views: 4,122
Last edited:

Android Beam Tutorial

Android Beam is a feature introduced in Android 4 that allows one device to transfer a message to another device by placing the devices back to back. The communication is based on NFC.

The main...
 

Attachments

  • Beam.zip
    8.2 KB · Views: 878
Last edited:

Android Bluetooth / BluetoothAdmin Tutorial

Better implementation based on B4XPages:
Tutorial was rewritten in April 2018.
We will create...
 

Attachments

  • Bluetooth.zip
    12.4 KB · Views: 6,709
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,643
Last edited:

Android Compatibility Definition Guide in pdf

Really don't know where to post this. Thought this may be a good place.

Anyway, I found this Android Compatibility Definition Guide in pdf-format which could be handy. Of course, you can find...
 

Android database encryption with SQLCipher library

Attachments

  • SQLCipher.zip
    37.2 KB · Views: 96
Last edited:

Android Daydream / DreamService tutorial

Android 4.2 includes a new powerful screen saver feature named Daydream.

A "dream" starts when the device is docked or charged and the screen timeouts. By default dreams are non-interactive...
 

Attachments

  • Daydream_Circles.zip
    6.7 KB · Views: 964
  • Daydream_Webview.zip
    6.9 KB · Views: 943
  • Daydream_library1.0.zip
    4.8 KB · Views: 944

Android Device Unique ID - Alternative to PhoneId

This is an old tutorial. It will not work on new versions of Android. You should either generate a random value when the app starts for the first time or use the advertising id...
 
Last edited:
Top