Tutorials & Examples

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

[B4x]Data exchange (B4x, php, servers, .net and others)

After some years I have developed several apps to communicate with other apps, servers and platforms. My goal was to have ONE standard solution without additional propriatary solutions which work...
 

jarsigner error: java.security.SignatureException: private key algorithm is not compatible

Private sign keys created with B4A v7.80 or less together with Java 8u151+ will fail with the above error message. Note that it does not affect existing keys.
It is related to a change in the...
 

Integrating Firebase Services

Google has acquired a company named Firebase and is now offering many backend services under the Firebase umbrella. Most of them are free.

Integrating the services is relatively simple.

1. Use...
 
Last edited:

GPS Status in the OsmAnd - vs - GPS Connected.

Hello.
Probably the majority of using GPS, wondered how to display the GPS Status in OsmAnd:

So,
wanting to display the GPS Status in the OsmAnd 2.9.3 application, publication date 2018-02-08
the...
 

Attachments

  • Screenshot_01.png
    Screenshot_01.png
    45.4 KB · Views: 885
  • GPS Connected.apk
    423.6 KB · Views: 608
Last edited:

B4A how to learn it in 1 day

Watch the b4x Video Tutorials with interactive zoom

if you're having problems with the resolution, or your age ( :( ) and you see the code too small ,try to use this tricky feature in VLC Player called "interactive zoom"

you can see all code...
 
Last edited:

Persistent log for IDE (developer) or APP (user)

I write for me, and share.
Add functionality to a log and logcolor functions.
Easy to implement.
Source Code for enhance or fix.
CSBuilder, TextWriter & TextReader implementation.



B4X:
...
 

Attachments

  • wlog.zip
    401.1 KB · Views: 486

Signing your application before uploading to Google Play

The result of compiling your application is an APK file. This is a package file that contains the compiled source code and the assets files.
The APK file must be signed before installation...
 

SERVER IRC (Internet Relay Chat)

With the first steps on JAVA, my first program was an IRC SERVER. Subsequently I have evolved it and it has become the base to realize a SERVER for webchat.
I developed for a couple of...
 

Attachments

  • SD_SERVER_IRC.zip
    10.7 KB · Views: 891
Last edited:

Client IRC (Internet Relay Chat)

With the IRC Client complete the work started with the IRC Server.

As already explained is a Basic version, to give only an idea of how it works, but it is not complete with all the commands, and...
 

Attachments

  • irc_chat.zip
    18 KB · Views: 951

[B4X] Network + AsyncStreams + B4XSerializator

Attachments

  • B4A_Network.zip
    9.2 KB · Views: 6,896
  • B4A_NetworkOld.zip
    9.2 KB · Views: 3,447
  • B4J_Network.zip
    4.4 KB · Views: 4,081
  • B4i_Network.zip
    4.8 KB · Views: 2,528
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,671
  • TTS.apk
    69.8 KB · Views: 4,055

[B4X] OkHttpUtils2 with Wait For


Downloading resources is simpler with the new Resumable Subs feature.

Using Wait For we can wait for the JobDone event in the same sub that started the download.
No...
 
Last edited:

Admob Mediation With Chartboost

Hello,

as @sorex requested, this is a short tutorial for mediation with admob for chartboost.

1) Register with chartboost. Add your app. Navigate to campaigns / Publishing . Click...
 
Last edited:

ActionBar / Sliding Pages tutorial

Attachments

  • ActionBar.zip
    14.1 KB · Views: 7,633
Last edited:

GUI AVD Manager / Emulator

B4A Sdk Manager v2 adds support for managing Android Virtual Devices (AVDs):

SS-2017-06-06_12.39.36.png


Before you start, make sure to...
 

ELM327wifi Terminal

- working with OBD ELM 327 Wifi, ex. V-Link interface.
 

Attachments

  • ELM327wifi_terminal.zip
    15.1 KB · Views: 716
  • log2.txt
    1.1 KB · Views: 684
  • ATWS.jpg
    ATWS.jpg
    64.5 KB · Views: 798
  • ATPPS.jpg
    ATPPS.jpg
    64.5 KB · Views: 748
  • ATMA.jpg
    ATMA.jpg
    81.1 KB · Views: 773

Create PDF's on an Android devices & send them to a B4J app

Just a simple example. You can (of course do a lot more with it)

There are a lot of libs about creating pdf's. With Erel's example...
 

Attachments

  • PDFMAchineB4J.zip
    1.7 KB · Views: 685
  • PDFMAchineB4A.zip
    8.1 KB · Views: 883

digital dashboard

Screenshot.png


Version sans CustomView

B4X:
#Region  Project Attributes
    #ApplicationLabel: Digital_dashboard
    #VersionCode: 1
    #VersionName:
    #SupportedOrientations: landscape...
 

Attachments

  • RPMMeter.zip
    146.6 KB · Views: 732
Last edited:

Mastering Shadows in Android

Top