Professional Documents
Culture Documents
3-Introduction To Bada Toc
3-Introduction To Bada Toc
Contents About this Publication Acknowledgments Preface Introduction Overview of the Book What bada Is and Isnt
Just the Facts
Part I Chapter 1
About bada The Mobile Difference 1.1 The Mobile Context 1.2 Characteristics of Mobile Software
1.2.1 1.2.2 1.2.3 Technological Differences Differences Related to Usability and User Experiences Differences in the Ecosystem
7 9 9 11
11 12 13
1.3 Chapter 2
14 19
19 20
bada Basics
2.1
20
21 23 24 25 28
vii
viii
29
30 31 32 33
2.3
UI Builder
2.3.1 2.3.2 2.3.3
33
33 35 38
Hooking Up Your Forms to Your Code The App Icon Becoming Multilingual in Three Easy Steps
2.6.1 2.6.2 2.6.3 Add New Languages Add Text for Each Language Use String Resource IDs in Your Code
41 46 47
48 49 50
2.7 Chapter 3
50 63
63 63
3.1
64
65 65 69
3.2
70
70 71 75 77
3.3
Using Graphics
3.3.1 3.3.2 3.3.3 3.3.4
78
79 80 83 88
3.4
89
90 93 94
Chapter 4
bada Fundamentals
What You Will Learn What You Will Need
97
97 97
4.1
Architecture Overview
4.1.1 4.1.2 4.1.3 bada Features A Short bada History The Layered Model of the bada Platform
98
98 99 101
ix
103
103 104 104 104 106
4.3
117
117 118 121 121 124 124
4.4
125
126 127
Chapter 5
129
129 129
5.1
130
130 130 131 132 132
5.2
How It Works
5.2.1 5.2.2
132
132 133
5.3
Services in Detail
5.3.1 5.3.2 5.3.3 5.3.4 5.3.5
135
135 140 147 150 153
Chapter 6
bada Namespaces
What You Will Learn What You Will Need
157
157 158
using Directives and Declarations How This Chapter Is Organised Namespaces in Detail
Contents Part II Group 1 Recipes Fundamentals Recipe 1.1: Save to and Restore from the Registry
Problem Description The Recipe Hints, Pitfalls and Related Topics
217
217 217
224
224 224 228
228
228 228 235 236
236
236 236 239 239
239
239 239 243 243
243
243 243 250 250
Group 2
251 251
251 251 255
255
255 255 258 258
Contents Recipe 2.3: Add an Options Menu to a Form and Get User Selections
Problem Description The Recipe Hints, Pitfalls, and Related Topics Related Recipes
xi
258
258 258 263 263
263
263 264 268 269
269
269 269 270
272
272 272 279 279
280
280 280 285 286
286
286 286 290 290
291
291 291 298 298
298
298 298 309 309
309
309 309 312 313
xii
313
313 313 319 319
Group 3
Extended UI and Sensors Recipe 3.1: Use Gesture Input and Motion UI
Problem Description The Recipe Hints, Pitfalls, and Related Topics Related Recipe
321 321
321 321 326 327
327
327 327 331
332
332 332 336
337
337 337 341 342
342
342 342 346 346
Group 4
347 347
347 347 351 351
352
352 352 356 356
Recipe 4.3: Open the Camera and Get and Display Live Frames
Problem Description The Recipe
356
356 356
Contents
Hints, Pitfalls, and Related Topics Related Recipes 360 360
xiii
360
360 361 365 366
Recipe 4.5: Record Audio from the Microphone or Audio Input Device
Problem Description The Recipe Hints, Pitfalls, and Related Topics
366
366 366 369
369
369 370 373 374
Group 5
375 375
375 375
379
379 379 383
Recipe 5.3: Establish Normal and Pipeline Connection Modes for HTTP Sessions
Problem Description The Recipe Hints, Pitfalls, and Related Topics
383
383 383 387
388
388 388
Recipe 5.5: Use Non-blocking and Blocking TCP and UDP Sockets
Problem Description The Recipe Hints, Pitfalls, and Related Topics
395
395 395 401
401
401 401 406
406
406 406
xiv
Contents Group 6 Maps and Location 6.1 Get Geographic Data from a Provider and Show a Map
Problem Description The Recipe Hints, Pitfalls, and Related Topics
411 411
411 411 413
414
414 414 415
Group 7
Services and Social Networking 7.1 Create Content on the bada Server
Problem Description The Recipe Hints, Pitfalls, and Related Topics
417 417
417 417 421
7.2 Use the bada SNS Gateway to Access a Social Network Service such as Facebook
Problem Description The Recipe Hints, Pitfalls, and Related Topics Related Recipes
422
422 422 429 430
430
430 430 434 434
434
434 434 438 438
439
439 439 446 446
446
446 447 450
Contents Part III Appendices 451 453 459 459 460 463 464 465
465 466 466 466
xv
Appendix A Downloading and Installing the bada SDK Appendix B A UML Primer B.1 Class Diagrams B.2 Sequence Diagrams Appendix C A Software Engineering Model for Mobile App Development Some Mobile Software Engineering Best-practices Phase 1: Feasibility and Economic Efficiency Analysis
Stage 1.1: Requirements Engineering Stage 1.2: Design Drafting Stage 1.3: Early Prototyping Stage 1.4: User Acceptance Testing
467
467 467 467 468 468 468
Phase 3: Distribution
Stage 3.1: Marketing Stage 3.2: Preparing for Deployment Stage 3.3: Product Maintainance
469
469 469 469
Index
471