Android Tutorial User's Guide

This guide is obsolete ! It is no more updated.
Please use the B4X Booklets.


A User's Guide in pdf format is available here : www.b4x.com/android/files/UserGuide.zip

This guide is a continuation of the Beginner's Guide which is also deprecated!

The latest edition is : Edition 1.7

Content:
- Libraries
-- IME Input Methods Editor
- SQLite Database this chapter has moved from the Beginner's Guide
- GPS this chapter has moved from the Beginner's Guide
- Widgets
- Advanced drawings

-- View Drawables
-- Layers with Panels / ImageViews / Images
-- Diagrams / Charts

Missing chapters.
- DBUtils
- Http / HttpUtils
- Network / AsyncStreams

Best regards.

EDIT 2012.04.11 Edition 1.1
- Added chapters
- DBUtils
- Http / HttpUtils
- Network / AsyncStreams

EDIT 2013.01.06 Edition 1.2
Some chapters updated
Added chapter
- Classes

EDIT 2013.05.28 Edition 1.3
Updated to Basic4Android version 2.70
- HttpUtils2
- CustomViews in Designer
- Properties in classes

EDIT 2014.06.15 Edition 1.4
- Updated to Basic4Android version 3.80
- New chapters:
-- Conditional Compilation
-- #AdditionalJar attribute
- Added the SQLiteLight examples
- Updated the SQLExample

EDIT 2015.08.27 Edition 1.5
- Updated to Basic4Android version 5.20

EDIT 2015.12.07 Edition 1.6
- Updated to B4A version 5.50
- SQLite chapter improved.

EDIT 2016.02.28 Edition 1.7
- Updated to B4A version 5.80
- Classes chapter rewritten.

Best regards.

Link in my signature.
 
Last edited:

stevel05

Expert
Licensed User
Longtime User
Hi Klaus,

I've just been looking at Gradient Drawable in the user guide V1.3. The first possible orientation TOP_DOWN gives an 'is not a constant' error. I think it should be TOP_BOTTOM.

Regards

Steve
 

klaus

Expert
Licensed User
Longtime User
A new Edition 1.4 of the User's Guide is available with the link below.

Updated to Basic4Android version 3.80
New chapters:
Conditional Compilation
#AdditionalJar attribute

Added the SQLiteLight examples

Updated the SQLExample

Best regards.
 

RauchG

Active Member
Licensed User
Longtime User
Hello Klaus,

in your example you Initialize SQL1 in Process_Global.
I don't understand something wrong?

starter.PNG

Greeting RauchG
 

Polaris

Member
Licensed User
Thank you very much Klaus, very helpful guide. The chapter on SQLite is really great !!

Just want to point out a small error on page 50 :

It seems that File.Copy(File.DirAssets………….. is called twice
and CreateDataBase is commented out .




B4X:
Sub Service_Create 

 File.Delete(File.DirInternal, "persons.db") ' only for testing, removes the database  

  'check if the database already exists  
If File.Exists(File.DirInternal, "persons.db") = False Then

   'copy the default DB  
 File.Copy(File.DirAssets, "persons.db", File.DirInternal, "persons.db")   'if not, initialize it    SQL1.Initialize(File.DirInternal, "persons.db", True)  

 'and create it
 'CreateDataBase  
 'copy the default DB 

  File.Copy(File.DirAssets, "persons.db", File.DirInternal, "persons.db")  Else   'if yes, initialize it   SQL1.Initialize(File.DirInternal, "persons.db", True)  End If End Sub 

Else  

 'if yes, initialize it   
SQL1.Initialize(File.DirInternal, "persons.db", True)

End If
 End Sub
 
Top