0% found this document useful (0 votes)
18 views5 pages

Contents

The document is a comprehensive guide on developing Android applications using Basic4Android (B4A), covering installation, configuration, and essential programming concepts. It includes chapters on the integrated development environment, BASIC language fundamentals, process and activity life cycles, and screen design. Additionally, it features tutorials and a section addressing frequently asked questions to assist users in troubleshooting and enhancing their development skills.

Uploaded by

linnmobile216
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views5 pages

Contents

The document is a comprehensive guide on developing Android applications using Basic4Android (B4A), covering installation, configuration, and essential programming concepts. It includes chapters on the integrated development environment, BASIC language fundamentals, process and activity life cycles, and screen design. Additionally, it features tutorials and a section addressing frequently asked questions to assist users in troubleshooting and enhancing their development skills.

Uploaded by

linnmobile216
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Basic4Android ျဖင့္ Android Application ေရးနည္း (၁)

Chapter 1

Getting Started
1.1. JDK Installation 1

1.2. SDK Installation 4

1.3. B4A Installation and Configuration 4

1.4. Creating Android Virtual Device (AVD) or Emulator 14

1.5. Connecting A Real Device 15

1.6. First Program 24

1.7. Second Program 32

Chapter 2

Integrated Development Environment


2.1. Menu and Tool Bar 39

2.2. Code Area 54

2.3. Detail Area 66

2.4. Tabs 66

Chapter 3

BASIC Language
3.1. Variable and Object 70

3.2. Program Flow 87

i
3.3. Expression 88

3.4. Conditional Statement 92

3.5. Loop Structure 96

3.6. Sub 102

3.7. Event 106

3.8. Library 111

3.9. String Manipulation 114

3.10. Timer 121

3.11. File 123

3.12. TextReader/TextWriter 128

3.13. Text Encoding (Character Encoding) 131

3.14. List 135

3.15. Map 140

3.16. Regular Expression 150

3.17. Intent 154

Chapter 4

Process and Activity Life Cycle


4.1. Process 158

4.2. Activity 158

4.3. Variable 159

4.4. Activity_Create 161

4.5. FirstTime 162

4.6. Activity_Resume 163

ii
4.7. Activity_Pause 163

4.8. UserClosed 164

4.9. Activity Life Cycle 164

Chapter 5

Module
5.1. Activity Module 178

5.2. Class Module 178

5.3. Code Module 179

5.4. Service Module 181

Chapter 6

Screen Size and Resolution


6.1. Working with different Screen Sizes 189

6.2. Screen Orientation 191

Chapter 7

Designer
7.1. Menu 195

7.2. General Settings 251

7.3. Properties List 254

7.4. Image File 256

iii
7.5. Layout Variant 257

7.6. Abstract Designer 269

7.7. Adding Views by Code 274

7.8. Designer Scripts 278

7.9. Anchor 283

7.10. Auto Scale 285

7.11. UI Cloud 298

Chapter 8

Tutorials
8.1. Maths Trainer 302

8.2. Numeric Keyboard 331

8.3. Guess My Number 347

Chapter 9

Frequently Asked Questions


9.1. "You should first save the projects." Message 355

9.2. "Are you missing a library reference" Message 355

9.3. Library ကိုဘယ္လို load/update လုပ္မလဲ 356

9.4. View ကိုဘယ္အခ်ိန္မွာinitialize လုပ္ဘို႕လုိျပီး၊ ဘယ္အခ်ိန္မွာမလုိဘူးလဲ 357

9.5. စာေၾကာင္းရွည္ရင္ခြဲေရးျခင္း 357

9.6. Avoid closing an Application/capture Keycodes like Back/Menu 357

9.7. Activity ထဲသို႕ Menu Item ထည့္ျခင္း 358

9.8. Designer ကေန View ကုိဘယ္လိုဖ်က္မလဲ 360

iv
9.9. "Process has timeout" Message 360

9.10. Project ထဲက layout file သို႕မဟုတ္ အျခားဖုိင္တစ္ခုကိုဘယ္လိုဖ်က္မလဲ 361

9.11. Screen Orientation သတ္မွတ္ျခင္း 361

9.12. Activity ကုိပိတ္ျခင္း 362

9.13. Screenshot လုပ္ျခင္း 362

9.14. Compile လုပ္ျပီးရင္ဖုိင္ေတြဘယ္မွာရွိမွာလဲ 363

9.15. Array ကုိဘယ္လို pass လုပ္မလဲ 364

9.16. Device ရဲ႕ Language နဲ႕ Country ရယူျခင္း 365

9.17. ဘာေၾကာင့္ apk file name က result.apk ျဖစ္ရတာလဲ 365

9.18. ဘာေၾကာင့္ apk file name ဟာ xxx_DEBUG.apk ျဖစ္ရတာလဲ 366

9.19. Select True/Case Trick 366

9.20. Array ထဲမွာ random numberေတြမထပ္ေအာင္ထည့္ျခင္း 366

9.21. Detect Screen Orientation 367

9.22. Calling the Internal Calculator 368

9.23. Alpha/Red/Green/Blue 370

9.24. Devcie အမ်ိဳးအစားရယူျခင္း 371

9.25. Generate a Click Event 371

9.26. "Out of memory" Error/Bitmap 373

9.27. ScrollView မွ Scrollbar ကုိျဖဳတ္ျခင္း 374

9.28. Directory ရွိမရွိစစ္ျခင္း 374

9.29. Full Screenျဖစ္ေစရန္ Code ျဖင့္ျပဳလုပ္ျခင္း 375

9.30. EditText ရဲ႕ Input Mode ကုိေျပာင္းျခင္း 375

9.31. ေနာက္ဆံုး modify လုပခ


္ ဲ့တဲ့ အခ်ိန္အရ ဖိုင္မ်ားကိုစီျခင္း 376

9.32. Device ရဲ႕ dpi value ကုိရယူျခင္း 377

9.33. Java Program Line ကုိရွာျခင္း 378

You might also like