Tutorials & Examples

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

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,914
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,316
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,116
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,157
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: 878
  • snap camera.zip
    477.9 KB · Views: 800

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

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: 594

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



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:

Colors Game (Simple game source)

Hi all.
i made this game some time ago, its simple, i never used, i found today on my old sources folder and i m here to share with all.

The labels are in portuguese, but is very easy to...
 

Attachments

  • colorsgame.zip
    365.5 KB · Views: 896

7 Segment LED Digital Clock

Attached project simulates a 7 segment LED digital clock. No libs other than the B4A core lib are required.
You can also try this analog clock here

 

Attachments

  • DigitalClock.zip
    58.2 KB · Views: 1,902
Last edited:

Glitching screen - B4A Library source code

I was browsing the forums and came across THIS post, and that gave me an idea for a little funny class/library.

The code attached demonstrates how to use B4A to create libraries using code...
 

Attachments

  • Glitch_Source_Code.zip
    152 KB · Views: 645
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:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…