Tutorials & Examples

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

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: 565
  • src.zip
    4.4 KB · Views: 520

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: 838
  • WSNET_VS2012.zip
    117.3 KB · Views: 654

Alternative way to create Progress Indicators



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: 969
  • 27.zip
    309.5 KB · Views: 759
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,578
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: 961

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
    74.6 KB · Views: 801
  • add site.png
    74.4 KB · Views: 677
  • register.png
    77.3 KB · Views: 668
  • sites.png
    73.4 KB · Views: 670

World Time - 7 segment digital clocks x 6



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,228
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:

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:

Writing good documentation

When you finally finish your gee wiz killer app and want to write the documentation for it explaining how to use it, there are some things you need to consider.

First, find someone with no...
 

Arduino ADK Programming

Introduction

This tutorial deals with connecting the Arduino to your PC and ensuring that we can run programs on it. It includes a brief description of the programming language for the...
 
Last edited:

Parse HTML code

Here is my module to parse HTML code, tag by tag.
It's specific to my needs, but you can alter it to suit specific tags. If you need help, don't hesitate to ask.
As a warning, I probably didn't...
 
Last edited:

Full Android 4.x UI

Hi,

In the past creating a UI in B4A annoyed me a lot, not because of a bad designer but the lack of nice UI components. With the StdActionbar and some AH libraries it all got better and it...
 

Attachments

  • ui_actionwithtabs.png
    12.5 KB · Views: 1,214
  • ui_actionwithpager.png
    12.4 KB · Views: 1,182
  • ui_actionbar.png
    10.2 KB · Views: 1,085
  • ui_drawer.png
    19.3 KB · Views: 1,293
  • ui_main.png
    21.3 KB · Views: 1,097
Last edited:

Fancy Code

Just like the clothes you wear, the code you write will also reflect your personal style.
Let's get fancy, shall we?
B4X:
'Ugly:
     Dim validation As Boolean
     Dim sum = 1 + 1 As Int...
 

LoadBitmapSample -- How Well It Works

I thought I'd provide an interesting look at how well LoadBitmapSample works.

My current Game App that I'm working on generates a Release APK of 10MBytes in size.
The App has the following...
 
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…