Tutorials & Examples

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

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
 

The effect of pressing a button

While I'm new. I can not find a full and detailed example. How to make a beautiful effect for button when I click button. I like using a gradient fill please. I did not use in my work designer...
 
Last edited:

The result of swiping an app from the recent apps list

One of the new features of Android 4 is the more powerful recent apps list. The user can remove tasks or applications from the list with a swipe gesture.

The result of this action is not fully...
 
Last edited:

The SMB library uses a Java structure

I'm getting no where trying to use the SMB library.
Specifically I need to read a text file, but the DownloadFile2 function uses a Java InputStream structure, and I'm not familiar with Java or...
 

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: 506
Last edited:

Theme based on version Tutorial

What is this?
As the title suggests, this tutorial shows you how to select an android theme based on what version of Android your app is run on.

Why do I need this?
You don't, but...
 
Last edited:

Third party tool for screen recording

I'm mostly using B4A-Bridge to connect the IDE to the Android devices. The built-in video recording feature doesn't work with B4A-Bridge.

I found a good alternative...
 

Tick Tock Test Timers Class

Works fine but the timer keeps cutting off in my rather big and complex app.... oh well I'll have to figure that out then.

Still perhaps useful to some.

You send it a number of milliseconds like...
 

Attachments

  • TickTockTest.zip
    8.3 KB · Views: 614
Last edited:

Tinyurl shortening

Here's a quick little example of how to shorten your urls using tinyurl.com.

Thanks to TDS, who provided the solution.
 

Attachments

  • TinyUrlSample.zip
    7.7 KB · Views: 292
Last edited:

Tip: Distributing your app on iis web server

After hours of research i was able to create a download link for my app on a windows server. here are the instructions for doing so.

under iis create a mime type by right clicking on your...
 
Last edited:

TIP: Replace your Floats by Doubles

It may happen sometimes that, if your dealing with complex non-integer calculations, your code may not perform exactly the way you want to. I came across this problem when I was trying so create a...
 
Last edited:

Tips or Tricks for using Android Emulator

I want to share a few tricks when using the Android Virtual Device or Emulator.

1. Increase font and icon size
Go to Settings (gear icons) from drawer/desktop/slide down menu and choose...
 
Last edited:

ToggleButton on MenuItem

Hi,

Is it possible to use a kind of ToggleButton as a MenuItem?

I tried to us a bitmap variable and changed it after the menuclick, but the image is not refreshed, so this won't work...
 

Torch plus Morse code from the Flash and the Vibrator

The attached project has a dual purpose:
1. Send Morse Codes with the camera flash
2. Serve as a Torch

The Morse Code functionality might be useful when you are lost in mid ocean and need to...
 

Attachments

  • JHSflashMorse.zip
    84.4 KB · Views: 1,049
  • morseCode1.zip
    2.8 KB · Views: 796

Transfer files across memory boundary

Hi all,

This is a simple example of moving files across the internal/external memory boundary.
EG Transferring a CSV file from an external location to an internal folder to load a database in the...
 

Attachments

  • XFer.zip
    13 KB · Views: 338

Translucent Status bar / Navigation keys

NOTE: there may be a way to achieve this already in B4A that I'm not aware of.

This little tutorial will show you how to create an app with translucent status bar And/Or navigation keys...
 

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

Trial - Version problem?

Hi,

I just dloaded the Trial version today and wanted to start with the hello world sample, but when compiling I get the following error:


javac 1.5.0_22...
 

Trial Period using FTP

Here is a method using FTP to create a trial period for your app. Since there is no local file with trial information, the user cannot defeat it by manipulating stored data. Also, FTP calls are...
 
Last edited:

Trial Tutorial

Hey everyone,

Here I will explain how you can make an evaluation/trial version of your app using an online database.
With this, the user will be able to open up the app x times. When 0 is...
 

Attachments

  • ServerPHP.zip
    739 bytes · Views: 723
Last edited:
Top