Tutorials & Examples

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

Clv Simple Chat Example (adjustable text size)

Hi All.
Here is a very very simple example of how make a chat using clv.
the text and name is ajustable automatic, you can receive any text and the code will ajust using the correct size.

The...
 

Attachments

  • exampleclv.zip
    301.3 KB · Views: 1,268

For beginners: Playing with views (dynamic)

This simple example shows how to add & access views (buttont, labels, imageviews, scrollviews) to get a nice & good looking layout.

I don't use dip (except at one code line) to have a "fixed &...
 

Attachments

  • PlayWithViews.zip
    71.8 KB · Views: 919

Filter the Contents of a ListaVieW By Sql code

This example shows how to filter the contents of a database and load the results in a listview using an edittext. for each letter entered in edittext the results are shown in the listview. It...
 
Last edited:

Change DataSet in Amir_RecyclerView

During the basic training in Amir_RecyclerView (ARV), a small test project was created, which may help RV newcomers to familiarize themselves with RecyclerViews.

Topic: "React to...
 

Attachments

  • ARV_Testproject_SimpleRv.zip
    10.2 KB · Views: 659
Last edited:

Solving "Font asset not found" from library

I developed a class (compiled in library) that makes use of Typeface.MATERIALICONS, but when I tried using it there was this error:

HTML:
java.lang.RuntimeException: Font asset not found...
 

Signature Capturing with jSignature and WebViewExtras

Hi everyone:

After several test, now I can use the jSignature javascript plugin I was using in my web, in my B4A app, in order to update my database from b4a the same way I'm doing in my web. I...
 

Attachments

  • jsignature b4a.png
    jsignature b4a.png
    210.9 KB · Views: 1,262
  • jsignaturesample.zip
    57 KB · Views: 889

Read Key/Token from the B4A Manifest

I was busy with a project and wanted to allow users to enter their own Key/Token via the B4A manifest file and then have access to the key/token via B4A code. I did a quick search and could not...
 

Attachments

  • b4aReadManifestKey.zip
    9.6 KB · Views: 665

Foreground Service with Notification Builder

The app I'm building will allow the user to configure a series of timed actions, then execute them in order using "play" controls looking much like a music player (play/pause, skip...
 

Attachments

  • LongRunningService.zip
    11.6 KB · Views: 1,040
Last edited:

[TEST RESULT] a <> b vs. Not(a = b)

[UPDATED]

Lately I've fallen into the habit of using Not instead of <> for Boolean comparisons - eg: Not(a = b) instead of a <> b. I'm not sure why I started doing this - probably because I think it...
 
Last edited:

AES128/Rijndael cipher implementation animation

Hi everyone,

in the following link you can find an animation about how the AES128/Rijndael cipher is implemented. As you will see, it is a mix of shifting/mixing/substituting (simple or by matrix...
 
Last edited:

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

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: 496
  • DJIV2.5.zip
    82.8 KB · Views: 474

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: 1,135
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:

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: 924
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: 543
Top