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: 109
  • OkHttpUtils2.b4xlib
    5.4 KB · Views: 105
  • iHttpUtils2.b4xlib
    5.4 KB · Views: 89
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,742
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: 748
  • log2.txt
    1.1 KB · Views: 723
  • ATWS.jpg
    64.5 KB · Views: 870
  • ATPPS.jpg
    64.5 KB · Views: 820
  • ATMA.jpg
    81.1 KB · Views: 851

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

digital dashboard



Version sans CustomView

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

Attachments

  • RPMMeter.zip
    146.6 KB · Views: 755
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: 5,074
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,181
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,243
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: 938
  • snap camera.zip
    477.9 KB · Views: 849

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,611
  • Screenshot_2017-12-12-09-20-51-513_b4a.rain.png
    59.2 KB · Views: 1,291
  • rain.zip
    9.1 KB · Views: 859

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:

Simple previous-next example

Simple previous-next example

B4X:
#Region  Project Attributes
    #ApplicationLabel: Example
    #VersionCode: 1
    #VersionName:
    'SupportedOrientations possible values: unspecified, landscape...
 

Attachments

  • Example.zip
    299.9 KB · Views: 617

[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:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…