Android 4 programming Basics

Source: Internet
Author: User
Tags android sdk manager

Getting started with Android 4 Programming
Basic Information
Original Title: Beginning Android 4 pplication Development
Author: (beauty) Li weimeng [Translator's introduction]
Press: Tsinghua University Press
ISBN: 9787302301516
Mounting time:
Published on: February 1, November 2012
Start: 16
Page number: 1
Version: 1-1
Category: Computer> Software and programming> mobile development> android

For more information, see Introduction to Android 4 programming classics.
Introduction
Books
Computer books
The advent of Android 4 marks the arrival of Google's Android operating system in the smartphone and tablet camp. This guide will teach you everything you need to successfully develop Android applications. Android 4 programming entry classic covers all the foundations of Android Application Development, including user interfaces, networks, SMS message transmission, databases, and location-based services and deployment. Senior author Wei-Meng Lee has paved the way for you to successfully develop and deploy Android applications.
Main Content
This article discusses how to adapt to different display directions, how to understand the screen components, and how to handle user interface notifications.
Describes how to use textview, progressbar, AutoComplete-textview, timepicker, listview, and other views to design the user interface.
Elements involved
Demonstrate how to use a view to display images and menus
Explains how to use the content provider and how to create your own content provider
Demonstrate how to put long-running tasks in separate threads
Describes how to build an application that uses the SMS message delivery tracking location
Explains how to use JSON and socket programming to build your own chat Application
This article discusses how to prepare Android applications for release to the Android Market.
Directory
Getting started with Android 4 Programming
Chapter 1 Android programming 1
1.1 Introduction to Android 2
1.1.1 Android version 2
1.1.2 Android function 3
1.1.3 Android architecture 3
1.1.4 Android device 4 on the market
1.1.5 Android Market 7
1.1.6 Android development community 7
1.2 obtain required tools 8
1.2.1 Android SDK 8
1.2.2 install Android SDK tool 9
1.2.3 configure Android SDK Manager 10
1.2.4 eclipse 11
1.2.5 Android development tool 12
1.2.6 create an android Virtual Device (AVD) 14
1.3 create the first Android Application 17
1.4 Android Application Analysis 24
1.5 Chapter 28
Chapter 3 activity, fragment and intent 31
2.1 understanding activity 31
2.1.1 how to apply styles and themes to activities 36
2.1.2 hide Activity title 37
2.1.3 dialog box 38
2.1.4 show progress Dialog Box 43
2.1.5 show more complex progress dialog box 46
2.2 Use intent link activity 50
2.2.1 conflict resolution of intent filters 54
2.2.2 return Result 56 from intent
2.2.3 use intent objects to pass data 59
2.3 fragment 65
2.3.1 dynamically add fragment 70
2.3.2 fragment lifecycle 72
2.3.3 interaction between fragments 76
2.4 use intent call built-in application 80
2.4.1 understanding intent object 85
2.4.2 use intent filter 86
2.4.3 add category 91
2.5 display notification 93
2.6 Chapter 98
Chapter 2 Android User Interface 3rd
3.1 understand the composition of the screen 101
3.1.1 views and view group 102
3.1.2 linearlayout 103
3.1.3 absolutelayout 109
3.1.4 tablelayout 110
3.1.5 maid 111
3.1.6 maid 113
3.1.7 scrollview 115
3.2 adaptive display direction 118
3.2.1 anchoring view 119
3.2.2 adjust the size and reposition 121
3.3 change in the management screen direction 124
3.3.1 keep status 127 when configuration changes
3.3.2 detection direction changed by 128
3.3.3 control activity direction 129
3.4 use action bar 130
3.4.1 Add Action 132 to action bar
3.4.2 customize action items and application icons 138
3.5 create a user interface programmatically 139
3.6 listen to user interface notification 142
3.6.1 rewrite the method defined in the activity 142
3.6.2 view registration event 146
3.7 summary of this chapter 149
Chapter 5 use a view to design a user interface 4th
4.1 basic view 151
4.1.1 textview 152
4.1.2 views of Button, imagebutton, edittext, checkbox, togglebutton, radiobutton, and radiogroup 152
4.1.3 progressbar view 163
4.1.4 autocompletetextview 169
4.2 selector view 171
4.2.1 timepicker view 171
4.2.2 datepicker view 176
4.3 Use the List View to display the long list 183
4.3.1 listview view 183
4.3.2 Use the spinner view 191
4.4 learn about special fragments 194
4.4.1 use listfragment 194
4.4.2 use dialogfragment 199
4.4.3 use preferencefragment 202
4.5 summary of this chapter 206
Chapter 5 display images and menus in a view 5th
5.1 Use Image view to display images 209
5.1.1 gallery and imageview 209
5.1.2 imageswitcher 217
5.1.3 gridview 222
5.2 Use menus and views together 225
5.2.1 auxiliary method for creating 226
5.2.2 option menu 228
5.2.3 context menu 230
5.3 Other views 233
5.3.1 analogclock and digitalclock views 233
5.3.2 webview 234
5.4 summary of this chapter 240
Chapter 2 data persistence 6th
6.1 save and load user preferences 243
6.1.1 use activity access preferences 244
6.1.2 search and modify the preference value by programming 250
6.1.3 modify the default name of the preference file 252
6.2 persistent data in files 254
6.2.1 save to internal memory 254
6.2.2 save to external memory (SD card) 259
6.2.3 select the best storage option 262
6.2.4 use static resources 263
6.3 create and use a database 264
6.3.1 create dbadapter auxiliary class 265
6.3.2 programming Database 270
6.3.3 pre-create database 277
6.4 summary of this chapter 281
Chapter 2 content provider 7th
7.1 share data in Android 283
7.2 use content provider 284
7.2.1 pre-defined query string constant 289
7.2.2 projection 292
7.2.3 filter 293
7.2.4 sort 294
7.3 create your own content provider 295
7.4 use content provider 304
7.5 summary of this Chapter 309
Chapter 1 message transmission 8th
8.1 SMS message transmission 311
8.1.1 send SMS messages programmatically 312
8.1.2 get feedback after message sending 315
8.1.3 use intent to send SMS message 318
8.1.4 receive SMS message 319
8.1.5 instructions and warnings 334
8.2 send email 335
8.3 Summary of this chapter 338
Chapter 2 Location-Based Services 9th
9.1 display map 339
9.1.1 create a project 340
9.1.2 obtain the map API key 340
9.1.3 display map 343
9.1.4 display scaling control 346
9.1.5 change view 349
9.1.6 navigate to a specific location 350
9.1.7 Add a tag 353
9.1.8 obtain the touch position 356
9.1.9 geocode and reverse geocode 358
9.2 obtain location data 362
9.3 monitor a location 371
9.4 project-create a location tracking application 372
9.5 summary of this Chapter 378
Chapter 2 networking 10th
10.1 use web services over HTTP 381
10.1.1 download binary 384
10.1.2 Download text 390
10.1.3 use the get method to access web service 392
10.2 use the JSON service 397
10.3 socket programming 405
10.4 summary of this chapter 414
Chapter 2 Android Service Development 11th
11.1 create your own service 417
11.1.1 421 of tasks that run for a long time in the service
11.1.2 execute duplicate tasks in the service 426
11.1.3 use intentservice to execute asynchronous task 430 on a separate thread
11.2 communication between services and activities 433
11.3 bind activity to service 437
11.4 understand thread 442
11.5 summary of this chapter 448
Chapter 4 release Android applications 12th
12.1 prepare for release 451
12.1.1 version 451
12.1.2 digital signature 454 for the Android Application
12.2 deploy APK file 459
12.2.1 use adb.exe 459
12.2.2 use web server 461
12.2.3 release 462 on Android Market
12.3 Summary of this chapter 467
Appendix A use eclipse for Android development 469
Appendix B uses Android simulator 483
Appendix C exercise answer 595

Source of this book: China Interactive publishing network

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.