Tutorials & Examples

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

Please join Facebook group

Searching the nearest Coordinate in a Database

today i was in the requrement to write a search-routine in Database.
given was a table with lat an lon values. Goal was to find the nearest Entry.

Tablename: nw05
Fields: gidx (index), glat...
 

USB K8055 VM110

used library: ByteConverter 1.10, Core 8.0, RandomAccessFile 2.32, Reflexion 2.4 , USB 0.98
digital input only for this demo
k8055n.png
 

Attachments

  • USB K8055 VM110.zip
    193.3 KB · Views: 270

followed mission for dji phantom 3 standard & DJIV2.5 library

followed_mission for dji phantom 3 standard DJIV2.5 library
 

Attachments

  • followed_mission.zip
    90.3 KB · Views: 287
  • DJIV2.5.zip
    82.8 KB · Views: 292

Java 10 - B4A SDK Manager fix

As stated on THIS thread, the current SDK Manager (3.20) will display an error, to fix it, you will have to recompile it using the source code posted HERE and modify line 158

From...
 
Last edited:

Inputlist with images

hi

for one of my project, i needed an input list that includes images and i was thinking of using clv for that, but i really wanted to use the native input list so with CSBuilder it is very...
 

Attachments

  • InputListImage.zip
    15.1 KB · Views: 827
Last edited:

Retrieve one or multiple image(s) shared to your app

With this code you can retrieve images shared to your app (e.g. if a user selects one or more images from the gallery and selects "Share..."). No permissions are required as the user selects the...
 
Last edited:

CustomCardView Base On CustomListview Module

This is a module base on CustomListview, all function same with CustomListview I call it CustomCardView. Hope this help.

B4X:
For I = 0 To 5
'(the 47%x is cardview width, and the 45%y is the...
 

Attachments

  • CustomCardViewExample.zip
    14.2 KB · Views: 523
  • CustomCardView.bas
    8.6 KB · Views: 491

In-App billing Server side verification

Hi to all! I want to post a small example to verify the signature of an in-app purchase, in order to avoid the use of application like Freedom and Lucky Patcher.
An important note is that this...
 
Last edited:

3D Interactive Starfield using only the Core library

Hey guys!!

I took this HTML5 example and adapted it to B4A.

I hope the code is self-explanatory, if not, I'll be here to help.
Once again I'm using panels, but you can use whatever...
 

Attachments

  • Starfield Example.zip
    7.7 KB · Views: 700
Last edited:

Persistent log for IDE (developer) or APP (user)

I write for me, and share.
Add functionality to a log and logcolor functions.
Easy to implement.
Source Code for enhance or fix.
CSBuilder, TextWriter & TextReader implementation.



B4X:
...
 

Attachments

  • wlog.zip
    401.1 KB · Views: 290

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
    upload_2017-5-24_12-18-26.png
    7.3 KB · Views: 3,958
  • AppCompatExample.zip
    9.9 KB · Views: 3,359
Last edited:

ELM327wifi Terminal

- working with OBD ELM 327 Wifi, ex. V-Link interface.
 

Attachments

  • ELM327wifi_terminal.zip
    15.1 KB · Views: 470
  • log2.txt
    1.1 KB · Views: 430
  • ATWS.jpg
    ATWS.jpg
    64.5 KB · Views: 540
  • ATPPS.jpg
    ATPPS.jpg
    64.5 KB · Views: 526
  • ATMA.jpg
    ATMA.jpg
    81.1 KB · Views: 523

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

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: 532
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: 654
  • snap camera.zip
    477.9 KB · Views: 559

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,302
  • 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: 975
  • rain.zip
    9.1 KB · Views: 559

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

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

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

DigitalClock.png
 

Attachments

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