Tutorials & Examples

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

Android Drawables Demo

I wasn't sure were to put this, its simply a dev tool I built to view all the available drawables, as defined at http://androiddrawables.com/.

I built this small tool for myself, but...
 

Attachments

  • generate drawables code (Excel 97-2003).zip
    144.3 KB · Views: 334
  • AndroidDrawablesViewer_V2.zip
    36.8 KB · Views: 370
Last edited:

Android Dropbox / OAuth Tutorial

Attachments

  • Dropbox.zip
    12.6 KB · Views: 2,486
Last edited:

Android FTP tutorial

Last edited:

Android home screen widgets tutorial - part I

Edit: widgets are handled with receivers now. See the attached example.

This tutorial will explain how to implement your own home screen widgets (also named App Widgets).

It is important...
 

Attachments

  • HomeWidgets.zip
    24.6 KB · Views: 566
Last edited:

Android home screen widgets tutorial - part II

Please start with the first part of this tutorial if you haven't read it before.
In this part we will build a "quote of the day" widget...
 

Attachments

  • Quotes.zip
    12.3 KB · Views: 3,249
Last edited:

Android Http Multipart requests

Attachments

  • MultipartPost.bas
    2 KB · Views: 2,063
Last edited:

Android In-app Billing tutorial

Android In-App Billing v3 Tutorial

Last edited:

Android InApp Purchase Tutorial + Source Code

Hi,

in this tutorial i will show you how to add an in app product to your android app.

There is an official tutorial by @Erel so you should also check that out...
 

Attachments

  • InApp.zip
    3.2 KB · Views: 844
Last edited:

Android JSON tutorial

JSON format is a a format similar to XML but usually it is shorter and easier to parse.
Many web services now work with JSON. JSON official site: JSON

Using the new JSON library, you can...
 

Attachments

  • JSONExample.zip
    5.2 KB · Views: 5,947
Last edited:

Android Live Wallpaper tutorial

Using the new LiveWallpaper library you can now create your own live wallpapers. The user can set live wallpapers by long pressing on the home screen and choosing Wallpapers - Live Wallpapers...
 

Attachments

  • LiveWallpaperBall.zip
    8.3 KB · Views: 2,239
  • LiveWallpaperImage.zip
    8 KB · Views: 2,453
Last edited:

Android messages - Cool new feature for SMSing from everywhere

Hi everyone,

I do not know if this is a suitable tutorial for this forum but I just found out and I am absolutely thrilled with it. There is a way to send SMSs from your mobile phone even from...
 
Last edited:

Android multitouch tutorial

Using Agraham's Gestures library we can handle multitouch events.

This is an example of a simple drawing application that supports multitouch...
 

Attachments

  • MultitouchExample.zip
    7.3 KB · Views: 938
Last edited:

Android Native Contacts Phone Number Picker

This is an example of choosing a phone number from native android contacts picker.
 

Attachments

  • nativeandroidphonenumberpicker.zip
    11.8 KB · Views: 487

Android Network Tutorial

This is an old tutorial. All new implementations of network solutions should be based on AsyncStreams.

The Network library allows you to communicate over TCP/IP with other computers or...
 

Attachments

  • NetworkExample.zip
    23.7 KB · Views: 7,572
Last edited:

Android Process and activities life cycle

New video tutorial:



Lets start simple:
Each B4A program runs in its own process.
A process has one main thread which is also named the UI thread which lives as long as the...
 
Last edited:

Android push notification (C2DM) framework and tutorial

Android Serial tutorial

Attachments

  • SerialExample.zip
    6.3 KB · Views: 10,547
Last edited:

Android shake event with PhoneSensors

Using the phone accelerometer it is possible to handle shake events.
The problem is of course to decide if the stream of values represents a shake.

The Shake code module finds shake patterns and...
 

Attachments

  • Shake.zip
    27.9 KB · Views: 3,317

Android Sip / Voip tutorial

With the new Sip library you can make audio calls using Voip (Voice over IP) services.
Sip features were added in Android 2.3 (API level 9). Note that not all devices above Android 2.3 support Sip...
 

Attachments

  • Sip.zip
    6.9 KB · Views: 11,092
Top