Tutorials & Examples

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

CAM2FTP create time elapsed videos

This app save each image into a server via FTP
and if you want download all images to merge into a video

Esta App salva cada imagen en un servidor via FTP
y si lo deseas puedes bajar todas las...
 

Attachments

  • Capture+_2019-07-05-23-44-24-min.png
    Capture+_2019-07-05-23-44-24-min.png
    202 KB · Views: 296
  • Capture+_2019-07-05-23-44-57-min.png
    Capture+_2019-07-05-23-44-57-min.png
    26.8 KB · Views: 311
  • 2019-07-06_000441.jpg
    2019-07-06_000441.jpg
    21.1 KB · Views: 283
  • 2019-07-06_000511.jpg
    2019-07-06_000511.jpg
    38 KB · Views: 271
  • 2019-07-06_000526.jpg
    2019-07-06_000526.jpg
    10.7 KB · Views: 257

Camera2 - Still images and videos

Camera2 library is based on the Camera2 API introduced in Android 5 (API 21).
It is designed to work together with CamEx2 class.
It is supported by B4A v7.3+. The library will be included as...
 

Attachments

  • CamEx2.zip
    22.4 KB · Views: 885
Last edited:

Can you continue a program line across editor lines?

in some langauges you can do something like

B4X:
a=1000 _
  + 50

So _ means "continues on the next line"

Is there something similar in b4a?
 

Cannot sign apk with valid key in B4A

I have a couple of apps I created in appinventor and signed with my key but when I try to use the same, working, key in B4A it gives me this error:

"jarsigner: Certificate chain not found for...
 
Last edited:

Capture volume keys events while app is in the background

Could some Java guru kindly convert the following codes into B4A code for me, if possible, please? I would greatly appreciate it!

I'm looking for a reliable solution as a background service...
 

Cards list with CustomListView

Screenshot_20171228-125445.png


This example uses xCustomListView to implement a list of cards.

As the items layout is created with the designer, it is simple to implement any layout you like. You can also combine...
 

Attachments

  • CardsList.zip
    114.4 KB · Views: 4,026
Last edited:

Catch Webview Item's Longclick without late Javascript injection

Sample project to intercept clicks and longclicks on images or text portions in a webview.

The test project was created, because it became necessary to find a suitable solution from the very much...
 

Attachments

  • WebViewLongClick_03.zip
    242.2 KB · Views: 373

Change color of Android ProgressBar

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:

Change Icon and Assets Files based on the Build Configuration

This tutorial explains how the new conditional compilation feature can be used to change the app icon and the assets files based on the chosen build configuration.
See this tutorial for more...
 
Last edited:

Changing the theme at runtime

Using the hooks feature it is possible to change the Activity theme at runtime.

The theme is set before the activity is actually shown. This means that in order to change the theme we need to...
 

Attachments

  • ThemeChange.zip
    8.5 KB · Views: 1,499
Last edited:

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:

CHART JS IN ANDROID

Hi i make this example how you can add Chart JS in your project.


I was use this example...
 

Attachments

  • CHARTJS.zip
    218.7 KB · Views: 430

Chat Mqtt Over Internet Free Source Code B4A/B4J

Attachments

  • B4JChatMqtt.zip
    8.3 KB · Views: 488
  • B4AChatMqtt.zip
    13.7 KB · Views: 577
Last edited:

Check if Device Rooted

I hope this example helpful
It will check if the device is rooted or no.
 

Attachments

  • checkroot.zip
    9.3 KB · Views: 433

Check if the application is running on a Chromebook

If you want to check if the application is running on a Chromebook (for example to do some specific GUI reconfiguration to run in a resizable Window), you can use the following routine.
Hope it...
 

Check the Network State and Wifi SSID Name with reflection

============= MANIFEST =====================

B4X:
AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="19"/>
<supports-screens android:largeScreens="true"...
 

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: 398
  • jackson-core-2.7.4.jar
    247.1 KB · Views: 387
  • trialcheck.zip
    347.4 KB · Views: 370
Last edited:

Check your app presence on Google Play

Your app has been removed on Google Play.
Sample code for those who have previously installed the application not to use it again.

B4X:
Sub Globals
    Dim job1 As HttpJob
    Dim xui as XUI
End...
 
Last edited:

Class example - Galaxy system emulation

This "galaxy" example simulates planets movements based on the gravity forces.

The purpose of this example is to demonstrate the usage of classes in a graphical program...
 

Attachments

  • Stars.zip
    8 KB · Views: 1,147
Top