Tutorials & Examples

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

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: 852
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: 913

[B4X] Network + AsyncStreams + B4XSerializator

Attachments

  • B4i_Network.zip
    4.8 KB · Views: 2,470
  • B4A_Network.zip
    9.2 KB · Views: 6,781
  • B4A_NetworkOld.zip
    9.2 KB · Views: 3,369
  • B4J_Network.zip
    4.4 KB · Views: 4,010
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,616
  • TTS.apk
    69.8 KB · Views: 4,013

[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,583
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: 676
  • log2.txt
    1.1 KB · Views: 634
  • ATWS.jpg
    ATWS.jpg
    64.5 KB · Views: 740
  • ATPPS.jpg
    ATPPS.jpg
    64.5 KB · Views: 685
  • ATMA.jpg
    ATMA.jpg
    81.1 KB · Views: 708

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

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: 707
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,858
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,248
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,065
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,092
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: 851
  • snap camera.zip
    477.9 KB · Views: 773

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
    Screenshot_2017-12-12-09-14-57-481_b4a.rain.png
    38.9 KB · Views: 1,475
  • Screenshot_2017-12-12-09-20-51-513_b4a.rain.png
    Screenshot_2017-12-12-09-20-51-513_b4a.rain.png
    59.2 KB · Views: 1,148
  • rain.zip
    9.1 KB · Views: 778
Top