Tutorials & Examples

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

Add border to Views and change Checkbox graphic

Here are a couple of routines that may come in handy.

The first adds a background to a view which can have a fill color, rounded corners and a border color. This is useful for picking out views...
 

Attachments

  • screenshot.png
    screenshot.png
    25 KB · Views: 3,623
  • AddBorder.zip
    8.8 KB · Views: 1,769
Last edited:

Very simple push service with a txt file

With this service, you can make some push notification with a .txt file.
 

Attachments

  • verysimplepush.zip
    10.1 KB · Views: 648

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: 1,124

Debugging android applications

Tutorial covering the new "Rapid Debugger" deployment mode is available here:
Rapid Debugger


This tutorial explains the debugging features added in Basic4android v1.50 as well as the...
 
Last edited:

Create your layouts based on percentages

Attachments

  • lm PercLayout.zip
    16.6 KB · Views: 668
Last edited:

Android based Closed Circuit TV (CCTV) example

Attachments

  • CCTVServer.zip
    30.1 KB · Views: 4,623
  • CameraCCTVClient.zip
    10.3 KB · Views: 4,472
Last edited:

game scailing (ui game objects ... etc)

So Erel pointed out to me about my question about ui and scailing. He said to use percentages. So I did some research. I looked up how to do it in html5 and verious other languages. So I was...
 
Last edited:

BitmapMeshView

You can play around with this. Posting the following:

B4A project (BitmapMeshView.zip)
Java Code (src.zip)

Amend the Java code to your liking.
Click on the blank screen once the project has...
 

Attachments

  • BitmapMeshView.zip
    209.8 KB · Views: 711
  • src.zip
    4.4 KB · Views: 699

Broken LCD Source code

Hi to all,special Erel :)
I have a source code that i gift to forum and all programmer in this forum
It is look like the Broken LCD App in Android app store.

you can see tutorial from below link...
 

Android In-app Billing tutorial

ASMX Soap call,automatic call,response,parse and redirect to activity/service.

Attachments

  • B4A_WSNET_Sample.zip
    71.3 KB · Views: 1,016
  • WSNET_VS2012.zip
    117.3 KB · Views: 812

Alternative way to create Progress Indicators

gifProgressIndicator.png


The attached project is a "short cut" that will enable you to create Progress Indicators for your projects. It makes use of GIF files to simulate the progress indicators. The B4A...
 

Attachments

  • JHS GIF LOADERS.zip
    433.2 KB · Views: 1,138
  • 27.zip
    309.5 KB · Views: 922
Last edited:

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

Google ARC Welder

Embedding files in compiled libraries

It is possible to embed files directly in the compiled libraries by following these steps:

1. Add the attached class module, JarFileLoader, to your code (Project - Add Existing Module).
2...
 

Attachments

  • JarFileLoader.bas
    837 bytes · Views: 1,161

Protect your Database against SQL Injection

Hi guys!

This might not the sexiest nor the most elegant piece of code, but it works for me.
Hopefully, someone will find it useful... :)

SQL injection is a code injection technique, used...
 
Last edited:

User Password Security

A couple of good advices, especially for beginners. :)

 

Creating a Prototype Mobile App Using JQuery Mobile

I have been working on a tool to create a prototype app using JQuery Mobile inside B4A. Currently the only way to create a prototype is via code. You can later distribute this prototype as an apk...
 

Attachments

  • login.png
    login.png
    74.6 KB · Views: 970
  • add site.png
    add site.png
    74.4 KB · Views: 878
  • register.png
    register.png
    77.3 KB · Views: 847
  • sites.png
    sites.png
    73.4 KB · Views: 855

World Time - 7 segment digital clocks x 6

WorldClock.png


The attached project creates 6 x digital clocks (simulating 7 segment display). It will display the default time of your device on all 6 the clocks when the app is launched. Click on...
 

Attachments

  • DigitalClockWorld.zip
    64.1 KB · Views: 1,403
Last edited:

make your app more flexible AND/OR compatible with ios (b4i)

Here's a little sample skeleton for using classes vs activities and making your app more compatible with b4i ;))

It's more flexible (i.e. create multiple "pages" of the same form, a good example...
 
Last edited:
Top