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.basic4ppc.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:

klaus

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

Updated to Basic4Android version 2.70
- HttpUtils2 library
- CustomViews in Designer
- Properties in classes

Best regards.
 

stevel05

Expert
Licensed 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
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
Hello Klaus,

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

starter.PNG

Greeting RauchG
 

klaus

Expert
Licensed User
A new Edition of the B4A User's Guide is now available.
Edition 1.6 2015.12.07
- Updated to B4A version 5.50
- SQLite chapter improved.

Link in my signature.
 

klaus

Expert
Licensed User
A new Edition of the B4A User's Guide is now available.
EDIT 2016.02.28 Edition 1.7
- Updated to B4A version 5.80
- Classes chapter rewritten.

Link in my signature.
 

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
 

klaus

Expert
Licensed User
It seems that File.Copy(File.DirAssets………….. is called twice
You are right.
Thank you for reporting it, amended for the next edition.
 
Last edited:
Top