Tutorials & Examples

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

Comparison Operators in Select Case

Just a small request for the wishlist. It would be nice to be able to use Select Case using the 'greater than' and 'less than' operators <>. It makes for cleaner code than 'if' 'else' and 'end if'...
 

B4X - The best development tools for the connected world!

As B4R (Arduino) will soon be released, I've made a short video that shows some of the communication features available in B4X.

Make sure to watch it in HD mode:


The source...
 

Attachments

  • ConnectedWorld.zip
    25.5 KB · Views: 628

For beginners: How to communicate with a server using httputils2 (Part 3: php, MySql & JSON)

Attachments

  • Example_B4A.zip
    8.6 KB · Views: 2,924
  • php_example.zip
    552 bytes · Views: 2,523

Begin with the B4A Trial version

The B4A Trial Version allows to get a good impression of the possibilities of B4A.

The trial version is limited to 30 days.

Following steps are needed to use the trial version.

Two solutions...
 

keystore alias password

What is the keystore alias password? I know that alias is b4a but how about the password?
 

List with two columns and a checkbox

Hello,

I have a TabHost which holds 4 tabs.
I want to have a list with two columns and a checkbox for each line in the list on the forth tab of the TabHost.

How can I do it? In case it's...
 

MySQL: Load Excel Sheets (or other data) via .csv

Animation without timer

Hi Guys

I would like to share with you something that most of you maybe allready know but also if there are some people that still dont know that, it could be very helpfull for them.

There are...
 

Attachments

  • animation without timer.zip
    224.4 KB · Views: 1,873
Last edited:

How to change the XML element in file and save it, using XOM library

I learned to read XML file, thank you all! Now I need to learn how to change XML elements and save it. file. For example is XML file

<?xml version="1.0" encoding="UTF-8"?>
<group>...
 

Currency Converter - Http web services and more

Attachments

  • CurrencyConverter.zip
    9.8 KB · Views: 2,996

[Root] Using ADB over WIFI : B4A Bridge alternative

Hello all ,

Main advantage for this method over B4a Bridge is that it fixed issue I faced after updating my Huawei Honor 6 to Android 5.1.1 and B4A IDE stopped getting logs from Bridge .After...
 

One App - Two Activities (or more) - Two launcher icons

For my latest wear app i needed two different launcher icons, each one starting one different activity of the same app. It's really easy to accomplish, it only needs to edit the manifest file...
 

Android Compatibility Definition Guide in pdf

Really don't know where to post this. Thought this may be a good place.

Anyway, I found this Android Compatibility Definition Guide in pdf-format which could be handy. Of course, you can find...
 

Service Modules

This is an old tutorial. Most of the information here is no longer correct.



Basic4android v1.2 adds support for Service modules.
Service modules play an important role in...
 
Last edited:

Creating a Wear device avd / emulator

So, Google released the new Android Wear platform and obviously we all want to try it out. I have been very lucky and have managed to get my hands on a real device. A Samsung Gear Live to be...
 
Last edited:

CallSubDelayed - Avoid Black Screen

This has plagued me for months... (drove me nuts!)

I would try to insert a record in a table within an activity (using CallSubDelayed2) - then start another activity and presented with a Black...
 

Noobs Guide to Using AppCompat

I found myself increasingly frustrated by my attempts to use the all the amazing AppCompat libraries and tutorials only to end up with reams of Java errors.
So to help those who might have/be...
 
Last edited:

LayoutView: Automatic translation of layout views

Introduction

Internationalizing your app is nowadays the #1 task. Localized content if always preferred. LayoutView makes translating your layout views automatic and...
 
Last edited:

Designer Scripts Tutorial

Background

One of the most common issues that Android developers face is the need to adopt the user interface to devices with different screen sizes.
As described in the visual designer...
 
Last edited:

Share My Experience With B4A-Full Source "Youtube Download"

p/s: i have uploaded patch file audio.xml

you must replace this file to your core library folder
(Exam: C:\Program Files (x86)\Anywhere Software\Basic4android\Libraries)

Thank @Erel and...
 

Attachments

  • youtubedownload-tob4a.zip
    239.2 KB · Views: 1,302
  • Full-Liibrary.zip
    503.5 KB · Views: 1,622
  • Audio.zip
    4.8 KB · Views: 834
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…