Tutorials & Examples

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

[B4X] Network + AsyncStreams + B4XSerializator

Attachments

  • B4i_Network.zip
    4.8 KB · Views: 2,301
  • B4J_Network.zip
    4.4 KB · Views: 3,780
  • B4A_NetworkOld.zip
    9.2 KB · Views: 3,138
  • B4A_Network.zip
    9.2 KB · Views: 6,491
Last edited:

AppCompat with ToolBar - minimal example

In most cases AppCompat is no longer needed and will only make things more complicated.
B4XPages example with dynamic menu...
 

Attachments

  • upload_2017-5-24_12-18-26.png
    7.3 KB · Views: 4,121
  • AppCompatExample.zip
    9.9 KB · Views: 3,587
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.



B4X:
Sub Process_Globals...
 

Attachments

  • TTSExample.zip
    6.2 KB · Views: 31,428
  • TTS.apk
    69.8 KB · Views: 3,813

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

Expandable list based on CustomListView

Last edited:

GUI AVD Manager / Emulator

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



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: 559
  • log2.txt
    1.1 KB · Views: 536
  • ATWS.jpg
    64.5 KB · Views: 625
  • ATPPS.jpg
    64.5 KB · Views: 599
  • ATMA.jpg
    81.1 KB · Views: 607

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: 583
  • PDFMAchineB4A.zip
    8.1 KB · Views: 792

digital dashboard



Version sans CustomView

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

Attachments

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

Mastering Shadows in Android

How to disable keyboard suggestions

There are numerous threads in the forum about this, but I didn't have much luck with them. I wanted to disable the suggestions, but they always showed. I saw one suggestion setting the field to be...
 
Last edited:

[B4X] [Video] IDE Tips

 

KeyValueStore class - Simple and efficient key/value data store

Attachments

  • KeyValueStore.zip
    10.7 KB · Views: 4,676
Last edited:

PreferenceActivity tutorial

This tutorial explains how to use the new PreferenceActivity library. This library allows you to create the "standard" settings screen.

The settings screen is hosted in its own activity. As this...
 

Attachments

  • PreferenceActivity.zip
    6.5 KB · Views: 1,089
Last edited:

StateManager - Helps managing Android applications settings and state

Edit: StateManager was written in 2011. I don't recommend using it for new projects. Use B4XPages + KVS2 instead.

StateManager is a code module which takes care of handling the application...
 

Attachments

  • StateManager.zip
    11.7 KB · Views: 1,874
Last edited:

Material Design 3 - Using a ToolBar as ActionBar

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

Google recommends to use a ToolBar instead of the standard system ActionBar for Material Design apps. In this tutorial we will use a...
 

Attachments

  • ACToolBarExample2_0.zip
    25.3 KB · Views: 3,916
Last edited:

Snaptchat Slide Panels + Camera

Hi all.
I had nothing to do at home, so I decided to code a little.
i made a snapchat panels example, on snapchat app you can slide the finger to any direction, right, left, up and down.

i made...
 

Attachments

  • snap.zip
    404.9 KB · Views: 742
  • snap camera.zip
    477.9 KB · Views: 659

Raindrop/Snow effect

Hi all,
Just a small sharing.
Using a timer to make a raindrop or snow effect.I don't know whether it's the correct way to do this. =D
B4X:
Sub Timer_rain_Tick
    Dim image As ImageView...
 

Attachments

  • Screenshot_2017-12-12-09-14-57-481_b4a.rain.png
    38.9 KB · Views: 1,377
  • Screenshot_2017-12-12-09-20-51-513_b4a.rain.png
    59.2 KB · Views: 1,053
  • rain.zip
    9.1 KB · Views: 668
Cookies are required to use this site. You must accept them to continue using the site. Learn more…