Tutorials & Examples

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

SVN (source control) and Basic4android

Large projects and especially projects maintained by a group of developers usually require a source control system.
Using SVN with Basic4android is quite straightforward with a client tool such as...
 

Testing your app on real devices: pCloudy.com

Hi there

I'm hoping there are other methods of doing this..., if so, let's please share.

Anyway, a client was indicating the app I just sent does not work on their S7 samsung phone. So me, #bang...
 

Attachments

  • pCloudy.png
    97.8 KB · Views: 607
  • googlecrash.png
    18.2 KB · Views: 499
Last edited:

CuteR - with inlne Java Code

Attachments

  • CuteR.zip
    313.2 KB · Views: 371
  • core-3.2.1.zip
    483.9 KB · Views: 533

Simple time calculation based on EditText

On your form you use an EditText to input time. If you want to calculate with this, may be the following example will help:

B4X:
Sub AddTime(OriginalTime As EditText,HoursToAdd As Int,MinutesToAdd...
 

ScrollCoins - Using GameView to implement a scrolling grid

 

Attachments

  • ScrollingCoins.zip
    7.5 KB · Views: 1,229

Using App Deeplinking in your app (based on json Config file)

In this tutorial i will show a way of using MobileDeepLinking in your app.

To use App deeplinking in your app to you need to setup your manifet to do so

Lets start with it:

Edit your...
 

Attachments

  • MobileDeeplinkingExample.zip
    8.4 KB · Views: 699
  • libMobileDeeplinkingV1.0.0.zip
    11.9 KB · Views: 749

[IoT] XBee (ZigBee) Communication between Android and Raspberry Pi

Digi XBee modules are a great solution for wireless communication. Using two or more XBee modules you can create a wide area wireless network. The maximum range depends on the antenna and...
 

Attachments

  • RPiXBee.zip
    2 KB · Views: 1,361
  • AndroidXBee.zip
    10.6 KB · Views: 1,810

RDC: How to load blob and fill in to the imageview

Hi All,

With RDC i try to load blob and fill in to the imageview, but not success. Can anybody help me to find what is wrong wih my script :

B4X:
        If Job.JobName = "DBRequest" Then...
 

Praise to the data type Map.

As you know, Map is a kind of list of pairs of data; each pair is composed of a key and a value which can be of any type.

An example that I believe can be useful:

You have a beautiful table...
 
Last edited:

Mashy's Overview

Last edited:

INFO: AdMob v6.4.1 deprecation from 15th September 2016

Some more information regarding the deprecation of the AbMob SDK v6.4.1:

The email you have gotten about the SDK needing to be higher than v6.4.1 refers to a legacy, standalone Mobile Ads SDK...
 

For vs. While

While usually interchangeable, we should all be aware of one very important difference between these two cycles.
The For...Next cycle caches the "goal", the Do...Loop does not...
 

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: 374
Last edited:

Protect your Android application with the Licensing library

The licensing library allows you to use Android market licensing service to verify that the user is allowed to access your application.

Your applications sends a request to the local market...
 
Last edited:

Slide Switch - On / Off



This is a very, very simple project implementing a slide switch with B4A code only. Track flag1 and flag2 to know the state of the two switches (i.e are the switches on or off)...
 

Attachments

  • JHSswitch.zip
    12.4 KB · Views: 996
Last edited:

Localize your app using AndroidResources

Here's a short tutorial showing how you can add support for multiple languages to your B4A application using my AndroidResources library.

Native Android applications have built in support...
 

Attachments

  • Localization.zip
    7.6 KB · Views: 1,488

Bluetooth Printing to HP Deskjet 100 Mobile

I took the BTPrint.zip and modified it to print to my HP Deskjet 100 Mobile using Bluetooth

Attached find a new Zip BTPrint-2.zip (did not want to confuse it with the other one) and a PNG files...
 

Attachments

  • BTPrint-2.zip
    6.9 KB · Views: 915
  • PrintOutExample.png
    38.1 KB · Views: 819

FileTransfer - Send and receive files with AsyncStreams

Last edited:

B4A Book Updated

Last edited:

B4XObject - B4A /B4J / B4i objects serialization



The RandomAccessFile libraries (B4A, B4J and B4i libs) include two new methods: WriteB4XObject and ReadB4XObject.

These methods are similar to WriteObject and...
 
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…