Tutorials & Examples

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

CharSequence / CSBuilder Tutorial

B4A v6.80 adds several new features related to the ability to format rich strings.

upload_2017-2-14_12-30-39-png.52855


CharSequence is a...
 
Last edited:

[B4X] [BitmapCreator] Creating cross platform games

Last edited:

Gnss Status Updates

Starting from Android 7 we can extract more information about the satellite navigation status.
GPS is the first satellites system (the American system). There are several more systems now...
 

Attachments

  • GnssStatus.zip
    10.1 KB · Views: 1,395

[B4X] Clipper FoxPro Xbase++ Functions

When I started again developing in B4A, I looked around my developed desktop applications to make something similar, as I will know what the result should be.

I choose my small attendance program...
 

Attachments

  • Clipper FoxPro Xbase Functions.txt
    1.7 KB · Views: 734

BLE - Heart Rate Monitor

HeartRateMonitor class searches for peripherals with the heart rate service (0x180D).

Once a peripheral device is found and connected then a notification is set for the heart rate measurement...
 

Attachments

  • HeartRateMonitor.bas
    1.9 KB · Views: 2,733

IDE Tip: Alt + N = Recent subs menu

Not sure how many developers are familiar with the list of recent subs:

SS-2018-10-22_15.39.07.png


You can open it with Alt + N.
It is very useful...
 

Android Charts Framework

The purpose of this framework is to allow you to easily add different types of charts to your projects.
The current version supports pie charts, line charts and bar charts.

The framework is...
 

Attachments

  • Charts.zip
    9.6 KB · Views: 8,121
Last edited:

SMS and CALL_LOG permissions are no longer available

Google has changed their policy regarding the following permissions:
READ_SMS, SEND_SMS, WRITE_SMS, RECEIVE_SMS
READ_CALL_LOG, WRITE_CALL_LOG, PROCESS_OUTGOING_CALLS

Only the default phone or...
 

Version safe APK installation

As explained in this tutorial all store apps will soon be forced to target the latest SDK.

This means that we can no longer rely on the OS backwards compatibility features and need to...
 

Attachments

  • InstallAPK.zip
    131.5 KB · Views: 3,651
Last edited:

B4x / PHP compatibility thread

A lot of developers like me use php as the backend component on a server to communicate with B4x apps. My intention is to create a thread with some "How to's" and best practices. Please feel free...
 

User's Guide

Last edited:

ImageDownloader - The simple way to download images

Attachments

  • ImageDownloader.zip
    8.1 KB · Views: 7,582
Last edited:

Basic difference between a Standard ListView and Amir_RecyclerView

During the introduction to Amir_RecyclerView (ARV), it was necessary to understand the basic relationships between data and display.

ListView is a view group that displays a list...
 

Attachments

  • Events_AmirRecyclerView.jpg
    Events_AmirRecyclerView.jpg
    107.7 KB · Views: 732
Last edited:

[B4X] ”The ultimate guide to proper use of animation in UX”

I happened to come across a very well written, and absolutely beautifully illustrated, article on how to best use animation in UX. I thought the forum might appreciate it, so here’s the link...
 

ScrollView example with a Panel higher than the screen

Attached you find an example with a ScrollView with a Panel higher than the screen.

The layouts are designed in the Designer, not in the code.

There are 2 layout files:
- Main with the...
 

Attachments

  • ScrollViewBigPanel1.jpg
    ScrollViewBigPanel1.jpg
    18.3 KB · Views: 23,315
  • ScrollViewBigPanel2.jpg
    ScrollViewBigPanel2.jpg
    28.6 KB · Views: 22,368
  • ScrollViewBigPanel.zip
    8.8 KB · Views: 1,582
Last edited:

Starter Service - Consistent & Single Entry Point

One of the challenges that developers of any non-small Android app need to deal with, is the multiple possible entry points.

During development in almost all cases the application will start from...
 
Last edited:

FCM message workflow explained by Google

[B4X] Sending emails with Gmail REST API

This solution is compatible with B4A, B4J and B4i.

Up until now there were two ways to send emails:

1. Using the default mobile app which required the user to actually send the message...
 

Attachments

  • Gmail.zip
    59.7 KB · Views: 3,258

Device Owner / TaskLock / Kiosk apps 2017

SS-2017-07-18_13.19.46.png


Starting from Android 5 (API 21) there is better support for kiosk applications.
Kiosk applications = applications that...
 

Attachments

  • Kiosk.zip
    8.6 KB · Views: 2,761

User registration using httputils2, php, MySql and mail

When you join a forum you have to define a username and type in your email address and a password. After that you receive an email to finish the registration. Today I want to show the process how...
 
Last edited:
Top