Tutorials & Examples

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

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:

Manifest Editor

Basic4android v1.8 introduces a new tool named Manifest Editor.
Every Android application includes a file named AndroidManifest.xml.
This is an XML file that describes the application for the OS...
 
Last edited:

Runtime Permissions (Android 6.0+ Permissions)

1. Edit: In B4XPages the permission result event signature is: Wait For B4XPage_PermissionResult (Permission As String, Result As Boolean)
2. Important to read...
 
Last edited:

Offline Continuous Speech Recognition

This is a very old project which is unlikely to function correctly on newer versions of Android. The link to the project should still be active and if you want to use it for reference to...
 

Attachments

  • copyright.txt
    1.5 KB · Views: 1,845
  • Library.zip
    403.1 KB · Views: 820
Last edited:

B4A-Bridge source code

B4A-Bridge is made of two components. One component is running on the device and the other is embedded in the IDE.
The device side is the server side. It waits for connections and when a...
 

Attachments

  • B4A-Bridge-source.zip
    29.5 KB · Views: 740
Last edited:

Android SMB / CIFS tutorial

How to make games

How to make games

A great idea, but a disappointing result

You woke up one morning with a great idea for a game. You rushed to your phone to convince your best friend to...
 
Last edited:

Material Design 1 - Basics

Note: You should use B4A 6.0 or above for this tutorial.

Android 5.0 (also called "Lollipop") introduced a new design for apps called "Material Design".

With this tutorial series I will...
 

Attachments

  • SimpleMaterialExample2_0.zip
    8 KB · Views: 2,021
Last edited:

Android Http Multipart requests

Attachments

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

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:

Action List module - Creating a custom view

Attachments

  • ActionList.zip
    13 KB · Views: 1,827
Last edited:

Using CallSubDelayed to interact between activities and services

Until Basic4android v2.00 the way to pass information between activities and services was through process global variables.

CallSubDelayed makes it much simpler. It allows you to call a sub in...
 

Attachments

  • TwoActivities.zip
    7.2 KB · Views: 4,649

Google Play: "Designed for tablet screens"

A change is coming up on November 21 on Google Play. The applications considered by Google as not designed for tablets will be marked as designed for phones and, by default, won't appear for...
 

CharSequence / CSBuilder Tutorial

B4A v6.80 adds several new features related to the ability to format rich strings.

upload_2017-2-14_12-30-39-png.52855


CharSequence is a...
 
Last edited:

Android Dropbox / OAuth Tutorial

Attachments

  • Dropbox.zip
    12.6 KB · Views: 2,488
Last edited:

Trial Tutorial

Hey everyone,

Here I will explain how you can make an evaluation/trial version of your app using an online database.
With this, the user will be able to open up the app x times. When 0 is...
 

Attachments

  • ServerPHP.zip
    739 bytes · Views: 735
Last edited:

Intent Based Camera

Attachments

  • CameraIntent.zip
    9.5 KB · Views: 2,756
Last edited:

ImageView - Circular, Hexagonal, Triangular, Bubble, Star Imageviews (with inline Java code)

Parrots.png
See attached project with inline Java code to create round imageviews. You only need library JavaObject V2.01 to be enabled.
 

Attachments

  • RoundBitmap.zip
    57.1 KB · Views: 2,310
Last edited:

Receivers and Services in 2023+

In the early days of Android services were simple to use and powerful. They allowed doing all kinds of things in the backgrounds with very few restrictions. That's not the case with newer versions...
 
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...
 
Top