Tutorials & Examples

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

MidiSystem Example PlayOnly USB

This example allows playing a midi file to an external USB device which you can select. It also allows delaying the messages send to the usb device so you can hear them at the same time as the...
 

Attachments

  • PlayOnlyUSB.zip
    16 KB · Views: 661
Last edited:

OAuth Facebook Feeds

Attachments

  • ff.zip
    9.8 KB · Views: 1,167

USB Serial service

Hi all,

My contribute to the community a USB Serial service, you can add more activitys...

If you like this please press "like"

Thanks

camolas
 

Attachments

  • UsbSerial_respose_service.zip
    9.7 KB · Views: 1,006

TTS service for 2 Activitys

Hi all,

My contribute to the community a TTS service for 2 Activitys, you can add more activitys...

If you like this please press "like"

Thanks

camolas
 

Attachments

  • Two Activites tts service.zip
    10.1 KB · Views: 423

WebView Tutorial

WebView tutorial

I wanted an easy way to provide in-app documentation such as help screens etc.

I was thinking of going with the CustomListView and then trying to colour some of the lines of...
 

Attachments

  • WebView2Empty.zip
    142.3 KB · Views: 4,891
Last edited:

Arduino ADk Consummation

Introduction

The big day has dawned at last. We are now going to connect our Arduino to our Android device and get the two to talk to each other and to their own IDE on the PC...
 

Attachments

  • AdruinoADK.zip
    8.6 KB · Views: 1,513
Last edited:

Pebble Example

This is an example of how to build an app and sent intents to your pebble.
 

Attachments

  • PebbleExample.zip
    9.2 KB · Views: 492

Googlemaps V3 In A Webview

Hi Everyone,

Until the mapview becomes available, I have managed to "squeeze" the googlemaps V3 JS API into a webview for an app I am working on :sign0060:

The benefit of the JS map over a...
 

Is possible Start Activity in a Panel?

I have many layouts split by a scroll view, and on any layout i have a lot functions. Is possible divide any of this in more activity starts on panel on scroll view? Thanks
 

JQMobile.Show

Sharing the goodness. An attempt to have JQuery Mobile controls inside a webview running inside B4A.

Check this post...
 

Open the browser with a specific web page

Opening the browser is very simple.
First you need to add a reference to the Phone library.
Then:
B4X:
    Dim p As PhoneIntents
    StartActivity(p.OpenBrowser("http://www.b4x.com"))
...
 

[TUTORIAL] Post to Facebook Wall via B4A app.

The attached project shows how to use the device's camera to snap a picture and upload it to your Facebook wall.

This sample is based on the code written by the one and only vb1992 found...
 

Attachments

  • FacebookCamSample.zip
    9.8 KB · Views: 2,400

Galaxy S4 AVD Emulator Settings

Setting up a new AVD (Android Virtual Device) for a Samsung Galaxy S4 proved to be a bit hit and miss so I am posting the settings that I used to get one working on Windows 7 64 bit.

The AVD uses...
 

Attachments

  • Galaxy4_small.png
    Galaxy4_small.png
    76.1 KB · Views: 1,801
  • DeviceDefs_small.jpg
    DeviceDefs_small.jpg
    59.4 KB · Views: 1,330
  • EditAvd_S4_small.png
    EditAvd_S4_small.png
    56.4 KB · Views: 1,334
  • EditDevice_small.jpg
    EditDevice_small.jpg
    43.7 KB · Views: 1,216
  • HAXM_small.jpg
    HAXM_small.jpg
    147.6 KB · Views: 1,081
  • S4_AVD_small.jpg
    S4_AVD_small.jpg
    70.9 KB · Views: 1,174

Create a REST API in php the easy way

There are numerous cases where you need to access data for your app and you need the simplest and fastest way of acquiring them. In those cases you definitely have to create an API which can be a...
 
Last edited:

URI content://media ... to real file

Hello
I created an application that manages about audio files, video and other files. I have used several things, including ContentChooser. ContentChooser returns files like "content://...
 
Last edited:

Download list of images with HttpUtils2 and CustomListView

Attachments

  • DownloadList.zip
    13.2 KB · Views: 6,015
Last edited:

Handling intents for images selected via a 'Share' menu

Thanks for your help Erel!!! I greatly appreciate your timely assistance, this active forum, the B4A community, and B4A itself!!! Gregg

Here's the Manifest file that incorporates two Intents...
 

SQLiteDB

Below you find an application with a SQLite database and a ScrollView based table.
What the program can do:
- Read a database, 'Load' button.
- Edit, modify or delete date sets (single- or...
 

Attachments

  • SQLiteDB1.jpg
    SQLiteDB1.jpg
    48 KB · Views: 14,113
  • SQLiteDB2.jpg
    SQLiteDB2.jpg
    50.7 KB · Views: 2,702
  • SQLiteDB3.jpg
    SQLiteDB3.jpg
    34.4 KB · Views: 20,193
  • SQLiteDB4.jpg
    SQLiteDB4.jpg
    41.4 KB · Views: 2,451
  • SQLiteDB5.jpg
    SQLiteDB5.jpg
    27.4 KB · Views: 2,679
  • SQLiteDB6.jpg
    SQLiteDB6.jpg
    49.7 KB · Views: 9,211
  • SQLiteDB7.jpg
    SQLiteDB7.jpg
    49.4 KB · Views: 2,671
  • SQLiteDB_V1_1.zip
    26.2 KB · Views: 4,087
  • SQLiteDB_2D_V1_5.zip
    28.5 KB · Views: 3,511
Last edited:

Dynamic creating of views "retrieved" from a database (php + MySql)

If you are lazy creating views "by hand" or you simply want a "form" depending on a MySql table take a look at this small app.

Type in the Database and Table Name and the IP-Address of the server...
 

Attachments

  • GetCol.zip
    479 bytes · Views: 1,390
  • MySqlViews.zip
    7 KB · Views: 1,525

Adding an animated gif to your app

Ya can do it like this.

Add a webview to your design, lets call it WebView1

make a file initially called whatever, banner1.txt in the Files folder of your project open it in notepad and write...
 
Last edited:
Top