Tutorials & Examples

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

[B4XPages] jRDC2 + MySql CRUD + Login

Hi all:


I'm starting (at last) to work with B4XPages, so I've started to adapt the B4XPages + B4XDrawer example.
I think I’ve seen more examples with php + mysql, but no...
 

Attachments

  • jRDC_B4J.zip
    5.4 KB · Views: 1,047
  • sql.zip
    1.5 KB · Views: 1,067
  • Project.zip
    207.2 KB · Views: 1,272
Last edited:

Getting file info using uri from content chooser or from received shared file - example

example of getting file property information from uri provided by content chooser or received file shared to the app. Curtesy of Erel’s example: Received Share. Shows File name, Mime Type...
 

Attachments

  • Screenshot_uriexample.jpg
    Screenshot_uriexample.jpg
    341.8 KB · Views: 2,416
  • Uri.zip
    11 KB · Views: 2,303

Solution for: Google Sign In Error 12500 x Internal Testing

The problem: If anyone is using the Google Play's Internal Testing feature to make your app available for selected users, be aware that Google changes the app and therefore the APK signature...
 

WhatsApp Layout Example (Tabstrip + CLV)

Hi all.
I found this example in some old folders on my pc and decided to share here.
it is a simple layout example, the app is whatsapp

This example use a clv and tabstrip

Screenshot_2016-03-13-21-39-37.png...
 
Last edited:

ContentChooser Example (select image at phone)

Here is a ContentChooser Example project to choose a image at phone for use in a activity with image view. it works with B4A 9.x and Android 8.1...
 

Attachments

  • ContentChooser Example.zip
    9.4 KB · Views: 2,460
Last edited:

Downloading and Printing 1 Bit BMP to ESC/POS Printer

Using the feature of resident images of Datecs dpp250. This is the way I found with Erel help to convert a 1 Bit BMP to ESC format, download to the printer, clean printer memory, write printer...
 

Attachments

  • ESCPOSGraphic.zip
    337.2 KB · Views: 1,398

Clv Simple Chat Example (adjustable text size)

Hi All.
Here is a very very simple example of how make a chat using clv.
the text and name is ajustable automatic, you can receive any text and the code will ajust using the correct size.

The...
 

Attachments

  • exampleclv.zip
    301.3 KB · Views: 986

libGDX and Parallax (scrolling) background with multiple layers

Hi.

This is example with two simple classes "ParallaxLayer" and "ParallaxBackground".
It help us to make scrolling backgrounds very easily in just few lines of code and
"unlimited" number of...
 
Last edited:

Display musical notation in your apps

I have been looking for ages for a suitable music renderer to use with Android, I looked at ABC4j, but it is built for Swing views and is not an easy port for Android.

I recently came across ABC...
 

Attachments

  • Demo1.zip
    104 KB · Views: 944
  • Demo2.zip
    106.7 KB · Views: 777
Last edited:

Sudoku generator and solver

The attached project will generate and solve Sudoku puzzles (9x9). The code to solve the puzzles with was adapted from here (converted to B4A). The code to generate Sudoku puzzles with comes...
 

Attachments

  • src.zip
    4.1 KB · Views: 917
  • JHS_Sudoku.zip
    167.3 KB · Views: 933

FTP Example using a "Download-Queue"

It began in the english Forum.

In the english part of the forum i wrote an ftp example for @schimanski a few days ago which uses a "FTP Download Queue". all files are put into a list...
 

Attachments

  • ftpqueue.zip
    9.4 KB · Views: 1,248
Last edited:

Using Camera2 with Zxing for live scan of 1D and 2D barcodes

I have used @Erel's sample project from here:


Have added a timer to get the preview bitmap every...
 

Attachments

  • core-3.3.2.zip
    493.6 KB · Views: 1,035
  • Camera2.zip
    16.5 KB · Views: 985
Last edited:

Responsive Chat Example

Hi All.
I made this example for a chatbot app here on brasil and now i want to share it here.


chatclv.jpg


This example use xCLV and IME lib (Already in B4A).
The messages fit...
 

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,486
Last edited:

Bluetooth Printing to HP Deskjet 100 Mobile

I took the BTPrint.zip and modified it to print to my HP Deskjet 100 Mobile using Bluetooth

Attached find a new Zip BTPrint-2.zip (did not want to confuse it with the other one) and a PNG files...
 

Attachments

  • BTPrint-2.zip
    6.9 KB · Views: 893
  • PrintOutExample.png
    PrintOutExample.png
    38.1 KB · Views: 806

Perfect Crop + TouchImageView

Hi all i made a simple crop example, later many try and try its here
if this help someone :)

Im using the @warwound lib TouchImageView
many thx to @warwound

this sample have one...
 

Attachments

  • Crop Sample.zip
    496.3 KB · Views: 2,222
  • 10511109_807459332617618_2723995257439844685_n.jpg
    10511109_807459332617618_2723995257439844685_n.jpg
    41.9 KB · Views: 1,130
  • 10514572_807459602617591_7148849783199956125_n.jpg
    10514572_807459602617591_7148849783199956125_n.jpg
    47.5 KB · Views: 1,502
  • 10527643_807459462617605_5852512570621737594_n.jpg
    10527643_807459462617605_5852512570621737594_n.jpg
    57.2 KB · Views: 983
Last edited:

Left menu layout examples (jfeinstein10)

Hi all.
I found this example in some old folders on my pc and decided to share here.
it is a simple layout example of SlidingMenu

this example use this lib...
 

3D Spinning Cube

It is mostly based on this posting. It is a 3D spinning cube. The code is very simple (the lib does all the hard lifting). You can change the images of the 6 x faces of the cube by...
 

Attachments

  • b4aLibFiles.zip
    7 KB · Views: 666
  • b4aOpenGlesPhotoCube.zip
    9.2 KB · Views: 660
  • DemoRes.zip
    116.6 KB · Views: 698
  • TheJavaCode.zip
    4.9 KB · Views: 617
Last edited:

Create Personalised QR Codes

See attached project that you can use to make personalized QR codes with. Image that is superimposed over the QR code should preferably have a transparent background. You can do things like this...
 

Attachments

  • PersonalisedQRcodes.zip
    486.1 KB · Views: 1,486
Last edited:

Select,Upload,Display,Delete image from Server

Hello everyone,

First of all, I want thank Erel, DonManfred and KMatle because a lot of the codes for them.

In this example (Select an image from gallery and display it, Resize the image, Save...
 

Attachments

  • php_Files.zip
    2.3 KB · Views: 1,058
  • MyImage.png
    MyImage.png
    56.2 KB · Views: 4,239
  • Screenshot_2017-12-19-13-57-22.jpg
    Screenshot_2017-12-19-13-57-22.jpg
    406.4 KB · Views: 3,540
  • complete.zip
    94 KB · Views: 1,210
Last edited:
Top