Tutorials & Examples

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

TTS service for 2 Activitys

Hi all,

My contribute to the community a TTS service for 2 Activitys, you can add more activitys...

If you like this please press "like"

Thanks

camolas
 

Attachments

  • Two Activites tts service.zip
    10.1 KB · Views: 334

Turn your camera flash light into a torch - also with Java code inside the B4A project

See attached project. I have created this simple torch (on / off) by making use of java code found on the web and compiling it with Simple Library Compiler. Library files inside the /files folder...
 

Attachments

  • JHSTORCH_v1.zip
    23.3 KB · Views: 1,339
  • JHSTORCH_v2.zip
    117.3 KB · Views: 1,845
Last edited:

Tutorial - How to sign apk with non-B4A keystore

Here is my first tutorial for the community!

This tutorial will show you how to sign a B4A generated apk with a non-B4A keystore. I needed a way to do this for myself since I had some apps out...
 
Last edited:

Tutorial - Online Scoreboard

I noticed this being asked a few times so I thought I'd share the version I've created.

This implementation requires that you have a server with PHP and MySQL. I am by no means a PHP or MySQL...
 
Last edited:

Tutorial Android and Raspberry Debian in BT

Hi all. In this example we have Raspberry Pi Rasbian and Android App ( communicate via BlueTooth ).

Through Android we give the command to access and turn off/on the LED, and from the Raspberry...
 

Tutorial of connecting Android to MS SQL Server using jRDC2

Hi

Here is a tutorial that shows the steps of how to make an Android connection to MS SQL Server using jRDC2.

Download tutorial here:
Attached the Mobile...
 

Attachments

  • Example B4A.zip
    10.4 KB · Views: 1,832
  • jRDC SQL Server.zip
    5.2 KB · Views: 1,700
  • Script TestSQLServer.txt
    857 bytes · Views: 1,569

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,827
  • Twitter.apk
    122.9 KB · Views: 1,178

Two activities example

An improved version, based on CallSubDelayed is available here.
This example demonstrates how to work with more than one activity and how to pass information between the activities.
In...
 

Attachments

  • TwoActivities.zip
    6.7 KB · Views: 5,944

two dimensional database/reports

Hello Everyone,
wants to have a two dimensional database.
Is it feasible using the great DBUtils by Erel.

the table should look like this...
 

Attachments

  • db.jpg
    db.jpg
    15.3 KB · Views: 1,135

Two functions on arrays

Pending confirmation by Erel, I post three functions about arrays and maps that may be useful.

The first is to verify that an object variable is an array:
B4X:
Public Sub IsArray(Var As Object) As...
 
Last edited:

UltimateListView Example

This is an ULV example I wanted to share for a long time, since I thought it was *very* cool.

It demonstrates:
- Sticky headers
- Swipe gestures
- Animations (appearing out)
- Selected State...
 

Attachments

  • ULVExample.apk
    183.9 KB · Views: 1,677
  • scrtemp.png
    scrtemp.png
    77.6 KB · Views: 4,212
  • ULVExample.zip
    12.2 KB · Views: 2,843

UltimateListView Image Grid Example

Attachments

  • ulv_grid.zip
    221.3 KB · Views: 1,685

ULV - combining drag/drop and swipe to delete with a hierarchical data structure

The attached example presents the user with a two-level hierarchical view of data and uses ULV to implement the following:
  • Showing the hierarchy using indentation of sub-items
  • Drag/Drop...
 

Attachments

  • ULV_Hierarchy_DragDrop_SwipeDelete.zip
    26.5 KB · Views: 412

Uncaught Exceptions

By default, when there is an uncaught exception the program will show a message box with the error title and the user will be asked whether they want to continue or not.

There are several...
 

Attachments

  • SendEmailWithCrashLogs.zip
    7.8 KB · Views: 1,889
Last edited:

Understanding Network security configuration

Every developer must understand this article if developing any kind of network communication app.

Android os recent versions put end apps users privacy at the heart of its platform, the network...
 

Update a homescreen widget more frequently than 30 minutes

Normally a homescreen widget can only update itself every 30 minutes. A lower value is not possible in the ConfigureHomeWidget() call.

But what if you want to create something like a clock which...
 

Attachments

  • AHClock.zip
    5.7 KB · Views: 1,675
Last edited:

Update your app to take advantage of the larger aspect ratio on new Android flagship devices

To deliver more engaging viewing experiences to their users, many Android OEMs are experimenting with new, super widescreen smartphones. Samsung has just announced a new flagship device, the...
 
Last edited:

Updating an embedded DB

A common task we face while enhancing our apps is the need to update the structure of a running DB.
This is relatively easy if you know for sure that your users will all go from version 1 to...
 

Upgrading a Google Maps app to targetSDK 28

I decided to become Google's darling. After a very old B4A app, that went perfect for many many years (API 8, targetSDK 14), was threatened to be thrown out of the app store, I decided to waste my...
 
Last edited:

Upload image to server, PostMultipart and PHP

A small example like loading an image with PostMultipart and PHP, I have been useful, you can adapt it needs.

Code B4A
B4X:
Sub CargaImagen
    Dim j As HttpJob
    Dim img As String =...
 
Last edited:
Top