Tutorials & Examples

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

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

Attachments

  • jOkHttpUtils2.b4xlib
    5.4 KB · Views: 112
  • OkHttpUtils2.b4xlib
    5.4 KB · Views: 109
  • iHttpUtils2.b4xlib
    5.4 KB · Views: 93
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,745
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...
 

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: 5,075
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,385
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: 2,182
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: 4,245
Last edited:

PacDroid: from scratch to fun

PacDroid: from scratch to fun

In this tutorial, I'm going to explain how to write a game from scratch with libGDX. I will make reference to my tutorials “How to make...
 
Last edited:

[B4X] Sharing modules and classes

In newer versions of B4A, B4J and B4i it is simple to share code modules between projects, including projects targeting other platforms.

More information here...
 
Last edited:

[B4X] Builder Pattern

Last edited:

Corso di B4A in Italiano

Ciao a tutti, ho creato un corso base di B4A in italiano di 30 ore. Per chiunque fosse interessato il corso è disponibile sulla piattaforma Udemy al prezzo scontato di € 15.

Utilizzate il...
 

B4A Book Updated to Version 7.30

FloatLabeledEditText (ViewsEx)

upload_2016-2-28_15-46-20.png


FloatLabeledEditText is an improved EditText where the hint moves to the top instead of disappearing when there is text in the field.

With the floating hint you no longer need to add...
 

ListView tutorial

Don't use ListView.
Use xCustomListView - it is more powerful, easier to work with and cross platform.
 
Last edited:

[B4X] Backward Compatibility

Backward compatibility = the ability to open projects developed with older version of the IDE in a newer version of the IDE.

Backward compatibility is a critical feature for programming languages...
 
Last edited:

Producing unsigned apk and sign it with eclipse/adt keystore

Ok, this is my first tutorial so please be kind about my errors :D


Here is problem : You have an app made without B4A. You wantto remake it but you need to sign it with your old...
 
Top