Tutorials & Examples

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

Adding Tripod Mode to your DJI Mobile app

Adding Tripod Mode to your DJI Mobile app



Tripod mode for DJI drones, limits the speed of your drone to around 2 mph. So you're less
likely to hit something, when your in confined spaces, or...
 
Last edited:

Upload image to server, PostMultipart and PHP

A small example like loading an image with PostMultipart and PHP, I have been useful, you can adapt it needs.

Code B4A
B4X:
Sub CargaImagen
    Dim j As HttpJob
    Dim img As String =...
 
Last edited:

[B4A] MsMariaDb with Resumable Subs

Hi all,

I was looking into 'de-spaghettifying' my code that uses @DonManfred 's MsMariaDb...
 

B4A_CartoonCamera : Real Time Image Processing using Renderscript Intrinsics

This demo app shows how to use RenderScript ScriptIntrinsics in real time image processing. As an example the camera preview is converted into a cartoon like image. The processed image can be...
 

Attachments

  • B4A_CartoonCamera.apk
    148.4 KB · Views: 680
Last edited:

Global variables in Starter service not initializing

In my new app, I am using the Starter service. I have a few variables I am trying to create, and consume them in my "main" form.
But when I start my app, I get an error message of an undeclared...
 

[Coordinates] Distance Features

I added a new feature to my apps yesterday, this feature show you as text how far you are from the other coordinate.

This looks so:

within 1 kilometer: very close
More than 1...
 

Get all views or values of a CustomListView item

I developed a simple example about how I think you should handle easily views and values of a CustomListView item.

3 things:

1) constants pointing to the views order in the item;
2) two custom...
 

Attachments

  • Handle CustomListView.zip
    98.3 KB · Views: 565
  • Handle CustomListView 2.zip
    98.6 KB · Views: 645
Last edited:

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,409

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: 412

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...
 

Inline JavaCV/OpenCV

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: 615
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: 379
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,310
Last edited:

Highlight selection in a standard ListView

I found some code on the internet that works with a standard ListView, an example is attached. I use ListView's all the time with large lists >3000 items and I will find this one useful.

It uses...
 

Attachments

  • ListSelectColor.zip
    7.1 KB · Views: 1,720

A THANK YOU.. example in humility

:)

I just wanted to say thank you. I am new to coding:D, and trying to learn it. There is a lot of useful information if you search and dig for it.. no pain no gain LOL

Also some cool guys I...
 

Important: Phone energy settings!

I had some issues with one of my apps receiving FCM messages correctly (when the phone was off and when it was swiped away/killed by the user). The other day I had a problem with my Google...
 

Using MFColorMatrix (from my MFLib)

A short description using the MFColorMatrix class from my MFLib.

A color matrix is a 4x5 matrix for transforming the color and alpha components of a Bitmap.
The definition of...
 

Parse JSON Weather Files from openweathermap.org

App to sync photos using FileObserver library

I will thanks to warwound for FileObserver Library.
Also Thanks to all who share knowledge.

This App receive event when a new file (photo) is created al DCIM folder.
Also You can take photos...
 

Attachments

  • JSC_SyncSample.zip
    339.6 KB · Views: 446
Top