Android Tutorial User's Guide

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.
 

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
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…