Tutorials & Examples

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

Android SlidingPanels - Simple way to create sliding layouts

This is an old tutorial. There are now simpler and better ways to achieve this effect.

For example...
 

Attachments

  • SlidingPanels.zip
    6.9 KB · Views: 9,816
Last edited:

Android SMB / CIFS tutorial

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

Android Text To Speech example

Android can synthesize and play text.
Using the TTS library you can easily add this feature to your application.

tts_1.png


B4X:
Sub Process_Globals...
 

Attachments

  • TTSExample.zip
    6.2 KB · Views: 31,206
  • TTS.apk
    69.8 KB · Views: 3,621

Android Things - Getting Started

Last edited:

Android Usb Host Tutorial - AdbTest

Android 3.1 and above devices support Usb host mode. With this feature you can connect to regular client usb devices. Some devices are automatically recognized by the OS and are simple to work...
 

Attachments

  • USBExample.zip
    7.2 KB · Views: 4,038

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

Android views animation tutorial

The Animation library allows you to animate views.
These small animations are really nice and can affect the user overall impression of your application.

The attached program demonstrates the...
 

Attachments

  • AnimationExample.zip
    10.6 KB · Views: 6,437
  • Animation.apk
    77.1 KB · Views: 2,754

Android Wear Install App via Bluetooth

Hello, i see here, that many people have problems to install there wear app to his watches.
I list the steps that are needed so that you can quickly look up when you need it.

Phone:
-install the...
 
Last edited:

Android Wifi-Direct Tutorial

Android 4+ devices support Wifi Direct (Wifi P2p). Wifi Direct allows you to connect two devices over wireless without an access point. It is similar to Bluetooth with a much extended range and...
 

Attachments

  • WifiDirectExample.zip
    8.7 KB · Views: 16,763

android.jar / targetSdkVersion / minSdkVersion

There are several versioned components that affect the compilation process and the runtime behavior of our apps.
The purpose of this tutorial is to explain the differences between them and help...
 
Last edited:

AndroidX SDK

Android Support Library was implemented and maintained in the last 8 years by Google. It includes a wide range of features and it hides many of the differences between the various Android...
 
Last edited:

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

Another Analog Clock

analogClock.png


See the attached project. It uses a library that wraps a project that you can find here. There are files in the Objects/res/drawable and Objects/res/values folders that this...
 

Attachments

  • AnalogClockB4A.zip
    125.8 KB · Views: 888
Last edited:

Another Torch (A >= M)

Based on this posting:


Torch ( A >= M):
#Region  Project Attributes
    #ApplicationLabel: b4aTorchNew...
 

Attachments

  • b4aNewTorch.zip
    24.3 KB · Views: 142
Last edited:

Any threads just for newbies?

Just getting started with BA4 and am very confused. I don't understand many terms and terminology. Have next to no experience with Java though am reasonably proficient with Basic.

A friend sent...
 

Api Levels

Searching the internet I came across this site that cumulates all the necessary data for the B4A developer:

 

App Bundle - Publishing NEW apps using AAB to play store with New keystore

There is an increasing concern about how to publish apps using the app bundle (aab) format. I will try as much as possible to simplify the steps for you.

IMPORTANT UPDATE IN POST...
 

Attachments

  • 1616942914153.png
    1616942914153.png
    21 KB · Views: 499
  • 1616943200855.png
    1616943200855.png
    30 KB · Views: 458
  • 1616944045529.png
    1616944045529.png
    106.8 KB · Views: 517
Last edited:

App Bundle - Steps to updating Existing App (apk to aab)

This Tutorial is for those who already have an existing application in the play store that is APK and want to switch to App Bundle (AAB) which will become compulsory in August 2021.

Steps for...
 
Last edited:

App Icon Change at Runtime

Attachments

  • ChangeIcon.zip
    22.2 KB · Views: 133
Last edited:
Top