Tutorials & Examples

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

Transparent activity

Ok here is the transparent activity project, it is very simple, i used it in the fake virus app.

Make a folder in the objects->res folder, and name it values.
Copy the file from the folder in...
 

Attachments

  • transparent.zip
    4.9 KB · Views: 1,560

Scrolling Marquee with ListViews

Wanted to have a smooth scrolling message for an initial screen in one of my programs, and couldn't find anything pre-built into Android, so of course, something that should have taken just a few...
 

Attachments

  • AdvMarquee.91.zip
    12.2 KB · Views: 812

Grid Sample

Hey all,

This grid is like an open source project. It is completely written in a seperate B4A module and allows paging, 'custom' column types, horizontal and vertical scrolling, summation and...
 

Attachments

  • ProAppGridDBSample.zip
    51.7 KB · Views: 1,649
  • ProAppGridSample.zip
    35.5 KB · Views: 1,405
  • ProAppGridAdvSample.zip
    37.9 KB · Views: 1,291
Last edited:

Accessing remote DBs with B4A using HttpUtils2, Classic ASP, IIS 5.1 and MSAccess

Note: the attached project contains CLASSIC asp scripts and NOT asp.net scripts.


I have a propriatary PC app that uses MSAccess.
The author is good enough to leave the MSAccess .mdb tables...
 

Attachments

  • HttpUtils2withASPandMSAccess.zip
    24.9 KB · Views: 1,210
Last edited:

Very light and simple to use SQLite database browser, editor and creation

I used this simple and free Windows app tool to create my android SQL databases.

SQLite Database Browser

windowsxp.jpg
 

Your own content - chooser

Hi!

some days ago i shared my ahaShareLibrary and if you like to do your own library with your own code, this small tutorial may help you..

The project need following:
o) Reflection
o)...
 

Attachments

  • shareExample.zip
    44.8 KB · Views: 531

How to make screenshots!

I think one of the easiest way is using Android SDK tools. I'll explain this method using Windows, but in Linux or Mac should be similar. This is what you have to do:
-Connect your mobile to...
 

Keep app from closing on back key press

I have an app that opens web pages from a menu. Having trouble getting it to NOT close every time you click the android back button (drops out of app).

Tried this code:

Sub...
 

B4AServer tutorial

I have recently 'discovered' both Android and Basic4Android. I am really enjoying the experience.

The documentation for B4AServer is in a number of forum threads. I have summarised these...
 

Design News B4A Online Class

Online classes featuring B4A-based Android Accessory, Bluetooth and TCP/IP applications will be offered by Design News beginning June 24, 2013. The 5-day run of classes will be presented by EDTP...
 

Google Elevation API Service Code

Hi,

Further to a post I made in another thread. Below is a service code that can be called to get the elevation data from the google API.

B4X:
#Region  Service Attributes 
   #StartAtBoot...
 

Arduino ADK IDE Installation

Introduction

This tutorial deals with installing the Arduino IDE onto the PC and ensuring that we can compile a program. We are following the “Installing the Arduino software and necessary...
 
Last edited:

Convert you MySQL database to SQLite fast and simple (Linux / Debian 6 - ok)

Hi,

i would like to share a code to transform and compress a database of MySQL to SQLite. I use it in Cron (automated task) to create a clone of my main database. It's hard to find a real good...
 
Last edited:

The super quick way to knock-up a test app!

With thanks to NJDude who helped me with the designer script.

Say you have a function or a class that isn't working right and you need some help from the forums. Its a good idea to include a...
 

Attachments

  • QickTestApp.zip
    7.1 KB · Views: 516
Last edited:

Variables and Subs visibility

Basic4android v2.00 adds two new access modifiers: Public and Private.
This tutorial will cover the rules which determine when a variable or a sub can be accessed from outside.

Note that the...
 

The application failed to initialize properly

I have installed the trial (b4a-trial.exe 3215KB) on WinXP and get error :
"The application failed to initialize properly (0xc0000135)"
Can somebody help?
thks
 

byref mimic and performances

Hi all,
I've found and interesting article posted by Erel inside the "bugs & wishlist" section that deserves to be post in this section (and maybe as evidence article inside tutorials"). It deals...
 

Implode - Converting String Array to String

Needed this for my program, maybe it will be of some use to others, too:

B4X:
Sub Implode(glue As String, pieces() As String)
   Dim result As StringBuilder

   If pieces.Length = 0 Then Return ""...
 

Finding random RGB colors

In building apps, content and appearance are both important, as it is in the design of most everything.

Unique colors make your apps pop and look different from the run of the mill stuff out...
 

Attachments

  • rcol2.png
    rcol2.png
    38 KB · Views: 627
  • rcol3.png
    rcol3.png
    76.5 KB · Views: 492
  • rndColors.zip
    86.7 KB · Views: 642
Last edited:

How do I read the content of a basic web page into a text variable?

Top