Tutorials & Examples

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

IDE Theme: Night Owl

Even though I don't know enough to help people with B4A code, I thought that I would give back what I can and share an IDE theme with you.

I ported one of my favourite VS Code themes, Night...
 

Attachments

  • Night Owl.zip
    1.2 KB · Views: 452
Last edited:

Meld: Nice tool for diffing files and directories

This isn't really a tutorial but rather a recommendation for a diff tool. Sometimes you need to compare files, or even directories, and doing it manually is just too painful and difficult. I've...
 
Last edited:

Please test reading your NFC credit card.....

Please test scanning of your NFC enabled credit card using the APK in the download link below. Please ensure that you have enabled NFC on your cell/device before you do a scan - the...
 
Last edited:

Dropbox SDK - get informed about changes in the used Dropbox

Related Libraries:
B4A Dropbox SDK V2
B4J Dropbox SDK V2

You need to know/remember the dropboxId of the account you are actually using/requesting. And the latest cursor.
Use...
 
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: 379
Last edited:

[B4X] Mobile App Website - No-Code Builder (Landingpage, Legal notice, privacy policy)

Hey, I found this interesting website today on Producthunt.com.
Create a mobile app website in ⏳ 60...
 

Running simultaneous tasks at different speeds

Introduction:

I came across this challenge about one year ago, when I was trying to integrate sprites that were designed to be displayed at 24 FPS on a 60 FPS game loop.
For the sake...
 
Last edited:

Firebasemessaging (FCM): Receive messages in doze/sleep mode

Issue: Device doesn't receive FCM messages while in sleep/doze mode

Important to know: Google uses 2 different api's with different keywords

1638195059390.png


So...
 

B4AServer tutorial

I have recently 'discovered' both Android and Basic4Android. I am really enjoying the experience.

The documentation for B4AServer is in a number of forum threads. I have summarised these...
 

Check Trial Period using Dropbox (new with admin tool)

Check Trial Period using Dropbox (first version, improved version in Post #2)

Hello,

I have tried to find a solution to solve the control of the trial period of an app using the...
 

Attachments

  • encryptpw.zip
    297.9 KB · Views: 400
  • jackson-core-2.7.4.jar
    247.1 KB · Views: 388
  • trialcheck.zip
    347.4 KB · Views: 371
Last edited:

Ventilator Example (it's really windy)

Hi all.
I found this example in some old folders on my pc and decided to share here.
it is a simple example of how notcreate a ventilator in B4A.

On this example have, image...
 
Last edited:

MidiSystem Drum sequencer

This example allows creation of loops on multiple tracks as they are played. Just like a drum sequencer. It demonstrates creating a midi sequence and tracks, and adding events and messages...
 

Attachments

  • DrumSequencer.zip
    30.5 KB · Views: 549

Broken LCD Source code

Hi to all,special Erel :)
I have a source code that i gift to forum and all programmer in this forum
It is look like the Broken LCD App in Android app store.

you can see tutorial from below link...
 

Native Ads Unified with MediaView

* This ads are still not available to all developers.

The code of the example are based in this code from @Erel (Thanks!)...
 

Attachments

  • nativeads_mediaview.zip
    8.4 KB · Views: 535

RTL Layout Support

1.Declare in your app manifest that your app supports RTL mirroring.
Specifically, add below code in your manifest.
B4X:
SetApplicationAttribute (android:supportsRtl, true)

2. Copy the code you...
 
Last edited:

Automatic backup of source files to zip after each compilation with Custom Build Action and 7zip

Here' s a batch file that will back up all your source files and zip it with 7zip with the datetime stamp on each successful compilation. Only external prerequisite is 7zip which is free.

It...
 

Attachments

  • Auto7Zip4B4A2016-08-31.zip
    1.1 KB · Views: 364
Last edited:

min3D framework Samples

Sample 1

A wrap for this Github project. Posting:
1. B4A sample project
2. Java Code - check the code inside the wrapper vs the Java sample code.
3. B4A lib files

A nice...
 

Attachments

  • b4aExampleTextureOffset.zip
    188 KB · Views: 343
  • b4aLibFiles.zip
    87.1 KB · Views: 307
  • JavaCode.zip
    61.8 KB · Views: 306
Last edited:

💡 [B4X] Using JSON generator, 5 simple examples - Newer developers

Hello all,
Well here we are with a simple example on how to use the JSON generator, this applies to B4A, B4J and also B4i.

I've created 5 different examples using B4XPages for new B4X developers...
 

Attachments

  • JSON Generator.zip
    14.9 KB · Views: 509
Last edited:

User Password Security

A couple of good advices, especially for beginners. :)

 

[B4X] Nested layouts

1587290214570.png


Lets say that we want to build a layout such as the above where the screen is split into two halves.

If we try to build this layout with a single layout file we will quickly meet a...
 

Attachments

  • NestedLayouts.zip
    12.8 KB · Views: 540
Top