Tutorials & Examples

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

Firebase Messaging: Chat app without server

When you register to FCM your app will receive a FCM token. Another app can send a message to this token. Probem here: How do I know the token of another device/user? Usually you have a server...
 

Attachments

  • FCM_Show.zip
    33.5 KB · Views: 1,405

Update your app to take advantage of the larger aspect ratio on new Android flagship devices

To deliver more engaging viewing experiences to their users, many Android OEMs are experimenting with new, super widescreen smartphones. Samsung has just announced a new flagship device, the...
 
Last edited:

XML Parsing with the XmlSax library

Attachments

  • XmlSax.zip
    10 KB · Views: 6,070
Last edited:

[B4X] Tips for B4X developers

After making more than 58k posts in the forum, I decided that it is a good time to build a list of tips and common mistakes. 12 points, in no particular order:

  1. Separate code from...
 
Last edited:

ULV - combining drag/drop and swipe to delete with a hierarchical data structure

The attached example presents the user with a two-level hierarchical view of data and uses ULV to implement the following:
  • Showing the hierarchy using indentation of sub-items
  • Drag/Drop...
 

Attachments

  • ULV_Hierarchy_DragDrop_SwipeDelete.zip
    26.5 KB · Views: 411

RDC - Simple way to create your own back-end database

Remote Database Connector (RDC) is a middleware web server that allows you to easily connect your Android app to any type of remote database server.
Usually you will use it with a database...
 

OpenCVforB4A: basic image manipulation: OCVMats,OCVCore and OCVImgProc

(This is the first of a small series of code-based tutorials that I will post regarding OpenCV for B4A. I will try to focus mainly on how to use OpenCV in B4A, tips, best practices...
 

Attachments

  • imageManipulations.zip
    268.8 KB · Views: 1,316

How to send/receive Data SMS

Last edited:

The effect of pressing a button

While I'm new. I can not find a full and detailed example. How to make a beautiful effect for button when I click button. I like using a gradient fill please. I did not use in my work designer...
 
Last edited:

Manifest Editor

Basic4android v1.8 introduces a new tool named Manifest Editor.
Every Android application includes a file named AndroidManifest.xml.
This is an XML file that describes the application for the OS...
 
Last edited:

HttpUtils2 - Web services are now even simpler

Attachments

  • FlickrViewer.zip
    10.7 KB · Views: 9,000
  • HttpUtils2.zip
    8.5 KB · Views: 11,265
Last edited:

Wrapping a small and easy 3rd party library with java

Attachments

  • 1.Original.zip
    179.4 KB · Views: 861
  • 2.Find the main source folder.zip
    3.4 KB · Views: 738
  • 3. use Rgenerator.zip
    3.1 KB · Views: 775
  • 4.Cleanup.zip
    2.9 KB · Views: 709
  • 5.Start of a new Eclipse-project.zip
    13.4 KB · Views: 711
  • 6.Working in Eclipse.zip
    91.7 KB · Views: 739
  • 7.New Wrapper.zip
    20.1 KB · Views: 751
  • 9.Resulting Library.zip
    5.2 KB · Views: 700
  • 10.Example CircularButtonEx.zip
    12.1 KB · Views: 725

Tutorial - Online Scoreboard

I noticed this being asked a few times so I thought I'd share the version I've created.

This implementation requires that you have a server with PHP and MySQL. I am by no means a PHP or MySQL...
 
Last edited:

Inline JavaCV/OpenCV

Last edited:

Uncaught Exceptions

By default, when there is an uncaught exception the program will show a message box with the error title and the user will be asked whether they want to continue or not.

There are several...
 

Attachments

  • SendEmailWithCrashLogs.zip
    7.8 KB · Views: 1,889
Last edited:

B4Acalendar

Probably not the most elegant way to do this calendar but it is working. It displays 42 days and will "grey out" the days of the previous/next month within the calendar month being displayed. The...
 

Attachments

  • B4Acalendar.zip
    31.4 KB · Views: 614
Last edited:

B4J App for Firebase Notificatiion Sending

if you have android app with firebase notf.
this app for easy testing.
 

Attachments

  • FIREBASE_NOTFICATION_SENDER.zip
    26.9 KB · Views: 377
Last edited:

ImageView - Circular, Hexagonal, Triangular, Bubble, Star Imageviews (with inline Java code)

Parrots.png
See attached project with inline Java code to create round imageviews. You only need library JavaObject V2.01 to be enabled.
 

Attachments

  • RoundBitmap.zip
    57.1 KB · Views: 2,306
Last edited:

Accessing third party Jar with #Additionaljar and JavaObject - Picasso

The #AdditionalJar module attribute (introduced in B4A v3.80) allows us to reference external jars.
With the help of JavaObject it is now possible to integrate third party jars without a wrapper...
 

Developing library with Android Studio

I have moved all my projects from Eclipse to Android Studio, so decided to write how I have done for generating JAR and XML file for Basic4Android.

1. Create new project - File>New Project or if...
 
Last edited:
Top