Android Tutorial B4A Beginners Guide

Roger Garstang

Well-Known Member
Licensed User
I like the split for the quick search type items often searched for so the whole guide isn't needed just for a reference to a view/data type.
 

oldeast

Active Member
Licensed User
:sign0098:Thanks very much for the walk through guys, it's been a pleasure to get started.
I can't imagine how much time and effort you have put into the product - its very impressive.
Best wishes to all the team.
 

Theera

Well-Known Member
Licensed User
the contents addition

Hi Klaus,
I have donwload your Guide.It 's useful.But I need you add the contents belows
1.How to create own Library?
2.Talk about UTF without BOM encoding for non-english developler,someone have my same problem.

P.S. I would like someone who is good at English help me to translate your guide to Thai

Best Regards
Theera
 

Theera

Well-Known Member
Licensed User
Still wish add How to create Library

This is far beyond a beginners level.

I will add it to the Text encoding chapter.

Best regards.
Hi Klaus,
I like your technique and your programming. I follow your codes every threads.
I wish you add How to create Library only simple example. I think that help my stupid me to clever.
P.S. If you don't write this, I think that no one write this.This Knowledge is lost.
I forget,Please add How to create Help document in the program and How to print out via bluetooth printer with give example too.
Best Regards
Theera
 
Last edited:

melmac3r

New Member
Licensed User
Thx, and a few quirks

Hi Klaus,

Thank you very much for this great guide. I just go thru it the first time, so I will take the chance to give some first read comments:

On page 7 you are writing about Java 7 64-Bit:
Android SDK doesn't work with Java 64bit JDK.
You should install the regular JDK for 64-bit computers as well.


In the same directory?

Later on (page 9 under common errors) you mention that Android SDK does only work with Java 6. So should I install v6, too or instead?


Page 9:
Screenshot and path sample is:
C:\Android\android-sdk-windows\platforms\android-8\android.jar

The windows is by default no longer in the path. So it will be:
C:\Android\android-sdk\platforms\android-8\android.jar

Thank you,
Renate
 

klaus

Expert
Licensed User
Hi melmac3r,
Welcome to the Basic4Android community and thank you for your comments.
Later on (page 9 under common errors) you mention that Android SDK does only work with Java 6. So should I install v6, too or instead?
This is no more valid. I have removed it for the next update.

Concerning the screenshot with the Path configuration it depends on what version is installed.
It can be:
C:\Android\android-sdk-windows\platforms\android-8\android.jar
or
C:\Android\android-sdk\platforms\android-8\android.jar

I will check it and adapt the text.

Best regards and thank you again.
 

nl1007

Member
Licensed User
Typo spotted in PDF..

I've recently bought B4A, and after trying "Hello World", started going through the guide.
On page 61 (v.2.2), it says:
Modify 'EventName' to the EventName of the button, 'bntOK' in our case.
- should be 'btnOK'.
Also, on page 79 it says:
PerXToCurrent(50) means 50% of the Activity widht.
Thanks for the guide. I've been using B4PPC for a while, so some parts are familiar, but there's plenty of new things to learn about Android..
 
Last edited:

klaus

Expert
Licensed User
Thank you for reporting these typos.
They will be amended in the next edition.

Best regards.
 

klaus

Expert
Licensed User
New updated versions of :
- Beginner's Guide Edition 2.3
- Keywords / Views / Collections Edition 1.2
- B4A Code snippets Edition 1.1
are available (link below).

Updated to Basic4Android 2.3 and updated some chapters.

Best regards.
 

klaus

Expert
Licensed User
Beginner's Guide New Edtion 2.4
Minor update with the changes of B4A Version 2.5

Best regards.
 

Vader

Well-Known Member
Licensed User
Klaus/Erel,

I am working on a new set of documentation for the Core Keywords, and would like to know your opinion.

The differences with this documentation is that each keyword will have the same level of information. In addition, each keyword is on it's own page. The plan is to put all of this information into the Wiki in exactly the same format.

Here is what I have for Abs:

Abs

Description
Returns the absolute value of a double-precision floating-point number.

Syntax
Abs(Value As Double) As Double

Parameters
Value
Type: Double

Return Value
Double

Remarks
The absolute value of a Double is its numeric value without its sign. For example, the absolute value of both -123.45 and 123.45 is 123.45.

Example
Dim Value As Double
Dim Result As Double

Value = -123.45

Result = Abs(Value)

' Result will equal 123.45

See Also
What do you think?

Dave
 

Attachments

Erel

Administrator
Staff member
Licensed User
The official documentation is generated automatically from the Java libraries. This makes it easier to keep the documentation and the code up to date.
 

klaus

Expert
Licensed User
I find that you would spend a lot of time to reproduce something already existing.
I agree with Erel that the maintenace of the documentation will be a problem.

Did you have a look at this program B4A XML file help viewer ?
Advantage, the source is the official documentation and it's off line.
On my computer this program runs all time when I do any programing.

Best regards.
 

Vader

Well-Known Member
Licensed User
To be honest, I don't like the formatting for the official documentation.

However as I know and understand that criticism is usually viewed negatively, someone offering help or at least constructive criticism is usually viewed more favorably.

So, in line with the above, I was offering to put new documentation together, both in a downloadable and also online manner.

But it looks like it is in vain. I agree that documentation created from the Java files is better, however, how often is there a point release? Not that often that the documentation couldn't be updated in a timely manner (I would think anyway).

If Erel doesn't want to change things that's cool. I will just finish it and keep it to myself.
 
Top