Tutorials & Examples

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

Share SQLite database between 2 devices

This is just a proof of concept to show that Device A behave like a server hosting a database and Device B connects to it accessing the "shared" database. It is a response to this question...
 

Attachments

  • ShareDB.zip
    17.6 KB · Views: 109
Last edited:

Share/Show file(s) from internal

Here's a small example how to show/share file(s) from the internal storage (benefits: no permissions are needed)

What it does:

- creates a folder called "shared" (under File.DirInternal)
- this...
 

Attachments

  • ShareFromInternal.zip
    8.6 KB · Views: 457

Shared Code Modules

Last edited:

Sharing files from your app with File Provider

Attachments

  • FilePicker.zip
    31.6 KB · Views: 2,486
Last edited:

Short tip for working with voice commands

Forward Word

So, while I'm building my first app, suddenly I came over this example from Erel. Great for my app but, as you may know, even though 75% of the worlds...
 

Attachments

  • muchWow.txt
    326.9 KB · Views: 480

Showing Google turn by turn

Hi,

Below some sample code to show directly Turn by Turn navigation instead of map:

Sub ShowNavigation (Latitude As String,Longitude As String)
'google place, just show map
Dim...
 

Shuffle a LIST (MP3 playlist for example)

In this example you can find a short example which shuffles a playlist (mp3´s for ex.).
Here i´m using the alphabet (A to Z)

B4X:
Sub Process_Globals
    'These global variables will be declared...
 

Attachments

  • playlistshuffle.zip
    7.5 KB · Views: 1,016

Signature Capture Tutorial

Several developers were interested in adding support for signature capturing in their Android application.
The attached code module makes it easy to capture the signature and save it to a file...
 

Attachments

  • SignatureCapture.zip
    6.4 KB · Views: 4,071

Signature Capturing with jSignature and WebViewExtras

Hi everyone:

After several test, now I can use the jSignature javascript plugin I was using in my web, in my B4A app, in order to update my database from b4a the same way I'm doing in my web. I...
 

Attachments

  • jsignature b4a.png
    jsignature b4a.png
    210.9 KB · Views: 883
  • jsignaturesample.zip
    57 KB · Views: 586

Signing your application before uploading to Google Play

The result of compiling your application is an APK file. This is a package file that contains the compiled source code and the assets files.
The APK file must be signed before installation...
 

Similar to FloatLabeledEditText

Someone asked me to do something like FloatLabeledEditText.

I made this example. It is not identical, but it is a track or a point of partenzs for those who want to create a similar one
 

Attachments

  • LabelExtended.zip
    9.4 KB · Views: 747

Simple BlueTooth printing

First, someone post nice simple demo for bluetooth printing(BTPrint.zip) but unfortunately I can't find this again for giving credits, but who ever is , thanks.
Now, here is also demo based on...
 

Attachments

  • BlueSimple.zip
    11.5 KB · Views: 883

Simple Code Module to implemente a License file using StringFunctions Encrypt

B4X:
Type=StaticCode
Version=6.48
ModulesStructureVersion=1
B4A=true
@EndOfDesignText@
'******************************************************************************************************
'*...
 

Attachments

  • Licensing.bas
    3.5 KB · Views: 340

Simple ComboBox concept: WORKS!

hey guys... since we cant enter text but only select in spinner...
i have a small simple concept that can make it like our old VB combo box

its got to do with... aligning an edittext and a...
 

Attachments

  • MyComboBox.zip
    7 KB · Views: 930

Simple Compass

Have done this just for the fun of it. Have wrapped this posting. The B4A code is short and sweet:

B4X:
#Region  Project Attributes
    #ApplicationLabel: Compass
    #VersionCode: 1...
 

Attachments

  • TheJavaCode.zip
    37.4 KB · Views: 920
  • b4aCompass.zip
    105.8 KB · Views: 1,241
  • CompassLibFiles.zip
    6.5 KB · Views: 1,247

Simple Currency Api (Brazilian)

Hi all.
I found this example in some old folders on my pc and decided to share here.
it is a simple example of how to get values from a website, on this example we get the bitcoin and dolar...
 

Attachments

  • bitcoin.zip
    48.1 KB · Views: 403

Simple example B4XDrawer sliding drawer class with materialicons and fontawesome icons

Good afternoon, I contribute to the community with a small example of the class B4XDrawer with material icons and fontawesome icons.

xIkVytQ.png


Thanks to the whole...
 

Attachments

  • Simple_example_B4XDrawer.zip
    12.4 KB · Views: 928
Last edited:

Simple Image viewer & pager

Hi all.

This example shows the images contained in a certain directory, with pinch zoom and smooth scroll -when image is zoomed- capabilities (provided by JSTouchImageView library, from...
 

Attachments

  • Simple_ImageViewer.zip
    7.9 KB · Views: 892

Simple Photogallery using a Scollview

hi,

this is a simple example that shows how you can use a scrollview and create a photo gallery.

(source code is included)

have fun :)
 

Attachments

  • ScrollView - B4A.zip
    49.9 KB · Views: 473
  • Screenshot_20181228-154021.jpg
    Screenshot_20181228-154021.jpg
    132 KB · Views: 684

Simple Pong Game

Hey guys!!

Here's a simple example of a 2 player Pong game, using nothing more than the core library.
Please keep in mind that this is just the frame-work for what could be a more advanced game...
 

Attachments

  • Pong.zip
    355.4 KB · Views: 1,501
Last edited:
Top