Tutorials & Examples

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

Debugging with Firebase / Android GPU Inspector

Hello,

(this is not a full tutorial, just a overview of this 2 tools)

I wrote my first animation in a app and with no idea what im doing i was running poorly...

While debugging i struggled with...
 

Debugging android applications

Tutorial covering the new "Rapid Debugger" deployment mode is available here:
Rapid Debugger


This tutorial explains the debugging features added in Basic4android v1.50 as well as the...
 
Last edited:

DDMS - Dalvik Debug Monitor

Here is a tip for exploring the folders on the emulator and also its mounted SD-card (if you have added one like I did). I couldn't find a file-explorer in the emulator.

You can use a program...
 
Last edited:

DBUtils - Android databases are now simple!

Attachments

  • DBUtils.zip
    14.4 KB · Views: 5,493
Last edited:

Database Design - Introduction

This tutorial describes the steps I took to design the database for the Pre-Algebra Tester app available on Google Play.

This is Part 1 of a potential series that will describe how I...
 

Attachments

  • test_type_A.PNG
    test_type_A.PNG
    4.3 KB · Views: 381
  • test_type_B.PNG
    test_type_B.PNG
    1.3 KB · Views: 367
  • test_A.PNG
    test_A.PNG
    10 KB · Views: 349
  • test_B.PNG
    test_B.PNG
    4.9 KB · Views: 366
  • test_question_A.PNG
    test_question_A.PNG
    5.7 KB · Views: 339
  • test_question_B.PNG
    test_question_B.PNG
    11.6 KB · Views: 334
  • question_A.PNG
    question_A.PNG
    4.1 KB · Views: 377
  • question_B.PNG
    question_B.PNG
    13.1 KB · Views: 337
  • test_result_A.PNG
    test_result_A.PNG
    5.9 KB · Views: 330
  • test_result_B.PNG
    test_result_B.PNG
    2.1 KB · Views: 312
Last edited:

Data Type and Range

Where do I find data range for B4A;
float
int
double
long
single
decimal
currency
etc...
List from VB.

Thanks.
 

Data Safety Admob

Hello team,

If you recieved an email about submiting Data Safety form at Google Play Console and your apps using Admob, you can watch this video to guide you.

More infos you can find...
 

CuteR - with inlne Java Code

Attachments

  • CuteR.zip
    313.2 KB · Views: 357
  • core-3.2.1.zip
    483.9 KB · Views: 512

CustomFloatingMenuButton - B4A Library source code

The attached code shows how to create a Floating Menu Button, you can show the button by clicking on a button or a swipe gesture (right edge of the screen).

This is a guide that hopefully will...
 

Attachments

  • CustomFMB.apk
    277.8 KB · Views: 771
  • CustomFloatingMenuButton_SourceCode.zip
    15.4 KB · Views: 1,483
Last edited:

CustomCardView Base On CustomListview Module

This is a module base on CustomListview, all function same with CustomListview I call it CustomCardView. Hope this help.

B4X:
For I = 0 To 5
'(the 47%x is cardview width, and the 45%y is the...
 

Attachments

  • CustomCardViewExample.zip
    14.2 KB · Views: 523
  • CustomCardView.bas
    8.6 KB · Views: 492

CustomBottomSheet - B4A Library source code

Since I've seen a lot of downloads on my previous tutorial HERE I've decided to write another nice looking (and hopefully useful) custom view written in 100% B4A, and I also hope you guys...
 

Attachments

  • CustomBottomSheet_SourceCode.zip
    13.9 KB · Views: 1,092

Custom WebSocket Based Push Framework

The online example is currently disabled due to spam :(

Now that both B4A and B4J support WebSockets it is possible to implement a full push framework solution.
The solution is made of two...
 

Attachments

  • Push_Client.zip
    11.5 KB · Views: 4,369
  • WebSocketPush.apk
    143.7 KB · Views: 2,796
Last edited:

Custom View with Designer Support

Last edited:

Custom transitions between activities (+10 effects)

Attachments

  • Screenshot_20210203-174943.png
    Screenshot_20210203-174943.png
    89.1 KB · Views: 274

Custom transitions between activities

This short tutorial will explain how to create custom transitions between activities.

The transitions must be declared in an XML file as described here: Animation Resources | Android...
 

Attachments

  • FlickrViewer_WithActivityAnimation.zip
    11.1 KB · Views: 3,561

Custom ListView library

Here's a library tutorial to hopefully show the basic steps required to create a custom ListView.

The custom ListView creates each ListView ListItem from a layout XML file - your...
 

Attachments

  • MyListView.zip
    31.1 KB · Views: 4,551

Custom Intent Provider Requester Services, updated for Android 11 (API 30)

Attachments

  • ProviderService.zip
    9.5 KB · Views: 253
  • RequesterService.zip
    9.3 KB · Views: 263

Custom Expandable ListView

This code is an example of creating an expandable listview using a scrollview.
The layout of each item in the list is created in code and is customizable on a per item basis.
The example is...
 

Attachments

  • expandablelv.png
    expandablelv.png
    8.5 KB · Views: 21,033
  • ExpandableListView.zip
    10.3 KB · Views: 4,959

Custom Context Menu for Text Selection

SS-2017-07-13_10.43.43.png


This example uses inline Java with JavaObject to allow creating custom context menus when the user selects text.

To use...
 

Attachments

  • CustomContextMenu.zip
    8.4 KB · Views: 1,511

Custom "push" notifications (server included)

[Reworked] Custom "push" notifications (server included)

So I have come up with a better(?) way of doing push notifications.

This time I will provide a usable server executable.
Download the...
 
Last edited:
Top