Tutorials & Examples

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

Create online UI flow

Hi
I found a site that create ui(contain many views) and relate with together
I cannot explain complete please visit it
fluidui.com
 

Using standard Android search dialog with Basic4Android

Search is a core feature of Android. You can use a configurable standard search dialog for performing searches in your app. This search dialog can also be used within a Basic4Android App (with...
 

Attachments

  • SearchExample.zip
    8.1 KB · Views: 2,115
  • screenshot-1330509212682.jpg
    screenshot-1330509212682.jpg
    12.5 KB · Views: 2,459
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: 680

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:

Android based Closed Circuit TV (CCTV) example

Attachments

  • CCTVServer.zip
    30.1 KB · Views: 4,686
  • CameraCCTVClient.zip
    10.3 KB · Views: 4,523
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:

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,053
  • WSNET_VS2012.zip
    117.3 KB · Views: 853

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,194

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: 1,023
  • add site.png
    add site.png
    74.4 KB · Views: 923
  • register.png
    register.png
    77.3 KB · Views: 910
  • sites.png
    sites.png
    73.4 KB · Views: 916

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:

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
    ui_actionwithtabs.png
    12.5 KB · Views: 1,399
  • ui_actionwithpager.png
    ui_actionwithpager.png
    12.4 KB · Views: 1,388
  • ui_actionbar.png
    ui_actionbar.png
    10.2 KB · Views: 1,242
  • ui_drawer.png
    ui_drawer.png
    19.3 KB · Views: 1,477
  • ui_main.png
    ui_main.png
    21.3 KB · Views: 1,261
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...
 

Make your app compatible with Android 5.0 devices

This is an old thread. It is not relevant if you are using newer versions of B4A.

In order for your current applications to run properly on Android 5.0 devices you need to:

1. Compile your...
 
Last edited:

Game Physics: Gravity

Game Physics: Gravity

In this tutorial I will explain and exemplify through a simple "runner" game how to apply physics to any B4X object.
May it be a Panel, a Label, an ImageView...
 

Attachments

  • Sunset Run.zip
    22.7 KB · Views: 1,479
Last edited:
Top