图书介绍
Android Cookbook2025|PDF|Epub|mobi|kindle电子书版本百度云盘下载

- (加)达尔文编;影印本 著
- 出版社: 东南大学出版社
- ISBN:
- 出版时间:2013
- 标注页数:666页
- 文件大小:102MB
- 文件页数:678页
- 主题词:
PDF下载
下载说明
Android CookbookPDF格式电子书版下载
下载的文件为RAR压缩包。需要使用解压软件进行解压得到PDF格式图书。建议使用BT下载工具Free Download Manager进行下载,简称FDM(免费,没有广告,支持多平台)。本站资源全部打包为BT种子。所以需要使用专业的BT下载软件进行下载。如BitComet qBittorrent uTorrent等BT下载工具。迅雷目前由于本站不是热门资源。不推荐使用!后期资源热门了。安装了迅雷也可以迅雷进行下载!
(文件页数 要大于 标注页数,上中下等多册电子书除外)
注意:本站所有压缩包均有解压码: 点击下载压缩包解压工具
图书目录
1.Getting Started1
1.1 Introduction:Getting Started1
1.2 Learning the Java Language1
1.3 Creating a"Hello,World"Application from the Command Line3
1.4 Creating a"Hello,World"Application in Eclipse6
1.5 Setting Up an IDE on Windows to Develop for Android13
1.6 Understanding the Android Life Cycle20
1.7 Installing.apk Files onto an Emulator via the ADB21
1.8 Installing Apps onto an Emulator via SlideME22
1.9 Sharing Java Classes from Another Eclipse Project23
1.10 Referencing Libraries to Implement External Functionality26
1.11 Using SDK Samples to Help Avoid Head Scratching29
1.12 Keeping the Android SDK Updated32
1.13 Taking a Screenshot from the Emulator/Android Device39
1.14 Program:A Simple CountDownTimer Example41
1.15 Program:Tipster,a Tip Calculator for the Android OS44
2.Designing a Successful Application63
2.1 Introduction:Designing a Successful Android Application63
2.2 Exception Handling66
2.3 Accessing Android's Application Object as a"Singleton"69
2.4 Keeping Data When the User Rotates the Device71
2.5 Monitoring the Battery Level of an Android Device74
2.6 Creating Splash Screens in Android75
2.7 Designing a Conference/Camp/Hackathon/Institution App79
2.8 Using Google Analytics in an Android Application81
2.9 A Simple Torch/Flashlight83
2.10 Adapting an Android Phone Application to Be Used on a Tablet86
2.11 Setting First-Run Preferences88
2.12 Formatting the Time and Date for Display89
2.13 Controlling Input with KeyListeners91
2.14 Backing Up Android Application Data95
2.15 Using Hints Instead of Tool Tips101
3.Testing103
3.1 Introduction:Testing103
3.2 Doing Test-Driven Development(TDD)in Android103
3.3 Setting Up an Android Virtual Device(AVD)for App Testing104
3.4 Testing on a Huge Range of Devices with Cloud-based Testing113
3.5 Creating and Using a Test Project114
3.6 Troubleshooting Application Crashes118
3.7 Debugging Using Log.d and Log Cat122
3.8 Getting Bug Reports from Users Automatically with BugSense123
3.9 Using a Local Runtime Application Log for Analysis of Field Errors or Situations125
3.10 Reproducing Activity Life-Cycle Scenarios for Testing129
3.11 Keeping Your App Snappy with StrictMode134
3.12 Running the Monkey Program135
3.13 Sending Text Messages and Placing Calls Between AVDs137
4.Inter-/Intra-Process Communication141
4.1 Introduction:Inter-/Intra-Process Communication141
4.2 Opening a Web Page,Phone Number,or Anything Else with an Intent142
4.3 Emailing Text from a View143
4.4 Sending an Email with Attachments146
4.5 Pushing String Values Using Intent.putExtra()147
4.6 Retrieving Data from a Subactivity Back to Your Main Activity149
4.7 Keeping a Service Running While Other Apps Are on Display151
4.8 Sending/Receiving a Broadcast Message153
4.9 Starting a Service After Device Reboot154
4.10 Creating a Responsive Application Using Threads155
4.11 Using AsyncTask to Do Background Processing157
4.12 Sending Messages Between Threads Using an Activity Thread Queue and Handler165
4.13 Creating an Android Epoch HTML/JavaScript Calendar167
5.Content Providers173
5.1 Introduction:Content Providers173
5.2 Retrieving Data from a Content Provider173
5.3 Writing a Content Provider175
5.4 Writing an Android Remote Service177
6.Graphics183
6.1 Introduction:Graphics183
6.2 Using a Custom Font183
6.3 Drawing a Spinning Cube with OpenGL ES186
6.4 Adding Controls to the OpenGL Spinning Cube190
6.5 Freehand Drawing Smooth Curves193
6.6 Taking a Picture Using an Intent199
6.7 Taking a Picture Using android.media.Camera201
6.8 Scanning a Barcode or QR Code with the Google ZXing Barcode Scanner204
6.9 Using AndroidPlot to Display Charts and Graphs208
6.10 Using Inkscape to Create an Android Launcher Icon210
6.11 Creating Easy Launcher Icons from OpenClipArt.org Using Paint.NET217
6.12 Using Nine Patch Files224
6.13 Creating HTML5 Charts with Android RGraph227
6.14 Adding a Simple Raster Animation231
6.15 Using Pinch to Zoom234
7.Graphical User Interface239
7.1 Introduction:GUI239
7.2 Understanding and Following User Interface Guidelines240
7.3 Handling Configuration Changes by Decoupling the View from the Model242
7.4 Creating a Button and Its Click Event Listener245
7.5 Wiring Up an Event Listener in Five Different Ways246
7.6 Using CheckBoxes and RadioButtons250
7.7 Enhancing UI Design Using Image Buttons254
7.8 Offering a Drop-Down Chooser via the Spinner Class256
7.9 Handling Long-Press/Long-Click Events258
7.10 Displaying Text Fields with TextView and EditText259
7.11 Constraining EditText Values with Attributes and the TextWatcher Interface260
7.12 Implementing AutoCompleteTextView263
7.13 Feeding AutoCompleteTextView Using an SQLite Database Query265
7.14 Turning Edit Fields into Password Fields267
7.15 Changing the Enter Key to"Next"on the Soft Keyboard268
7.16 Processing Key-Press Events in an Activity270
7.17 Let Them See Stars:Using RatingBar272
7.18 Making a View Shake276
7.19 Providing Haptic Feedback277
7.20 Navigating Different Activities Within a TabView281
7.21 Creating a Custom Title Bar283
7.22 Formatting Numbers285
7.23 Formatting with Correct Plurals289
7.24 Starting a Second Screen from the First292
7.25 Creating a Loading Screen That Will Appear Between Two Activities301
7.26 Using SlidingDrawer to Overlap Other Components303
7.27 Customizing the SlidingDrawer Component to Animate/Transition from the Top Down305
7.28 Adding a Border with Rounded Corners to a Layout307
7.29 Detecting Gestures in Android309
7.30 Building a UI Using Android 3.0 Fragments in Android 1.6 and Later316
7.31 Using the Android 3.0 Photo Gallery321
7.32 Creating a Simple App Widget324
8.GUI Alerts:Menus,Dialogs,Toasts,and Notifications329
8.1 Introduction:GUI Alerts329
8.2 Creating and Displaying a Menu330
8.3 Handling Choice Selection in a Menu331
8.4 Creating a Submenu333
8.5 Creating a Pop-up/Alert Dialog336
8.6 Using a Timepicker Widget338
8.7 Creating an iPhone-like Wheel Picker for Selection340
8.8 Creating a Tabbed Dialog343
8.9 Creating a Progress Dialog346
8.10 Creating a Custom Dialog with Buttons,Images,and Text347
8.11 Creating a Reusable About Box Class349
8.12 Customizing the Appearance of a Toast353
8.13 Creating a Notification in the Status Bar354
9.GUI:ListView361
9.1 Introduction:ListView361
9.2 Building List-Based Applications with ListView361
9.3 Creating a"No Data"View for ListViews366
9.4 Creating an Advanced ListView with Images and Text367
9.5 Using Section Headers in ListViews372
9.6 Keeping the ListView with the User's Focus377
9.7 Writing a Custom List Adapter377
9.8 Handling Orientation Changes:From ListView Data Values to Landscape Charting381
10.Multimedia387
10.1 Introduction:Multimedia387
10.2 Playing a YouTube Video387
10.3 Using the Gallery with the ImageSwitcher View388
10.4 Capturing Video Using MediaRecorder391
10.5 Using Android's Face Detection Capability394
10.6 Playing Audio from a File398
10.7 Playing Audio Without Interaction400
10.8 Using Speech to Text402
10.9 Making the Device Speak with Text-to-Speech403
11.Data Persistence407
11.1 Introduction:Data Persistence407
11.2 Getting File Information407
11.3 Reading a File Shipped with the App Rather Than in the Filesystem411
11.4 Listing a Directory413
11.5 Getting Total and Free Space Information About the SD Card414
11.6 Providing User Preference Activity with Minimal Effort415
11.7 Checking the Consistency of Default Shared Preferences419
11.8 Performing Advanced Text Searches421
11.9 Creating an SQLite Database in an Android Application427
11.10 Inserting Values into an SQLite Database428
11.11 Loading Values from an Existing SQLite Database428
11.12 Working with Dates in SQLite429
11.13 Parsing JSON Using JSONObject432
11.14 Parsing an XML Document Using the DOM API433
11.15 Parsing an XML Document Using an XmlPullParser435
11.16 Adding a Contact439
11.17 Reading Contact Data442
12.Telephone Applications445
12.1 Introduction:Telephone Applications445
12.2 Doing Something When the Phone Rings445
12.3 Processing Outgoing Phone Calls449
12.4 Dialing the Phone453
12.5 Sending Single-Part or Multipart SMS Messages454
12.6 Receiving an SMS Message in an Android Application457
12.7 Using Emulator Controls to Send SMS Messages to the Emulator458
12.8 Using Android's TelephonyManager to Obtain Device Information459
13.Networked Applications471
13.1 Introduction:Networking471
13.2 Using a RESTful Web Service472
13.3 Extracting Information from Unstructured Text Using Regular Expressions474
13.4 Parsing RSS/Atom Feeds Using ROME476
13.5 Using MD5 to Digest Clear Text481
13.6 Converting Text into Hyperlinks481
13.7 Accessing a Web Page Using WebView482
13.8 Customizing a WebView484
14.Gaming and Animation485
14.1 Introduction:Gaming and Animation485
14.2 Building an Android Game Using flixel-android486
14.3 Building an Android Game Using AndEngine(Android-Engine)489
14.4 Processing Timed Keyboard Input495
15.Social Networking497
15.1 Introduction:Social Networking497
15.2 Integrating Social Networking Using HTTP497
15.3 Loading a User's Twitter Timeline Using JSON500
16.Location and Map Applications503
16.1 Introduction:Location-Aware Applications503
16.2 Getting Location Information503
16.3 Accessing GPS Information in Your Application505
16.4 Mocking GPS Coordinates on a Device508
16.5 Using Geocoding and Reverse Geocoding510
16.6 Getting Ready for Google Maps Development511
16.7 Adding a Device's Current Location to Google Maps517
16.8 Drawing a Location Marker on a Google MapView519
16.9 Drawing Multiple Location Markers on a MapView523
16.10 Creating Overlays for a Google MapView528
16.11 Changing Modes of a Google MapView529
16.12 Drawing an Overlay Icon Without Using a Drawable530
16.13 Implementing Location Search on Google Maps535
16.14 Placing a MapView Inside a TabView537
16.15 Handling a Long-Press in a MapView541
16.16 Using OpenStreetMap544
16.17 Creating Overlays in OpenStreetMap Maps547
16.18 Using a Scale on an OpenStreetMap Map550
16.19 Handling Touch Events on an OpenStreetMap Overlay551
16.20 Getting Location Updates with OpenStreetMap Maps554
17.Accelerometer559
17.1 Introduction:Sensors559
17.2 Checking for the Presence or Absence of a Sensor560
17.3 Using the Accelerometer to Detect Shaking of the Device561
17.4 Checking Whether a Device Is Facing Up or Facing Down Based on Screen Orientation Using an Accelerometer564
17.5 Finding the Orientation of an Android Device Using an Orientation Sensor565
17.6 Reading the Temperature Sensor567
18.Bluetooth569
18.1 Introduction:Bluetooth569
18.2 Enabling Bluetooth and Making the Device Discoverable569
18.3 Connecting to a Bluetooth-Enabled Device571
18.4 Listening for and Accepting Bluetooth Connection Requests574
18.5 Implementing Bluetooth Device Discovery575
19.System and Device Control577
19.1 Introduction:System and Device Control577
19.2 Accessing Phone Network/Connectivity Information577
19.3 Obtaining Information from the Manifest File578
19.4 Changing Incoming Call Notification to Silent,Vibrate,or Normal579
19.5 Copying Text and Getting Text from the Clipboard581
19.6 Using LED-Based Notifications582
19.7 Making the Device Vibrate583
19.8 Running Shell Commands from Your Application584
19.9 Determining Whether a Given Application Is Running586
20.Other Programming Languages and Frameworks587
20.1 Introduction:Other Programming Languages587
20.2 Running an External/Native Unix/Linux Command588
20.3 Running Native C/C++Code with JNI on the NDK589
20.4 Getting Started with the Scripting Layer for Android(SL4A,Formerly Android Scripting Environment)594
20.5 Creating Alerts in SL4A597
20.6 Fetching Your Google Documents and Displaying Them in a ListView Using SL4A600
20.7 Sharing SL4A Scripts in QR Codes603
20.8 Using Native Handset Functionality from WebView via JavaScript607
20.9 Creating a Platform-Independent Application Using PhoneGap/Cordova608
21.Strings and Internationalization611
21.1 Introduction:Internationalization611
21.2 Internationalizing Application Text612
21.3 Finding and Translating Strings615
21.4 Handling the Nuances of strings.xml617
22.Packaging,Deploying,and Distributing/Selling Your App623
22.1 Introduction:Packaging,Deploying,and Distributing623
22.2 Creating a Signing Certificate623
22.3 Signing Your Application626
22.4 Distributing Your Application via Android Play(formerly the Android Market)627
22.5 Integrating AdMob into Your App629
22.6 Obfuscating and Optimizing with ProGuard633
22.7 Providing a Link to Other Published Apps in the Google Play Market636
Index641
热门推荐
- 622448.html
- 1145790.html
- 1033802.html
- 1779481.html
- 3789630.html
- 3458890.html
- 3572419.html
- 654043.html
- 2477496.html
- 2355690.html
- http://www.ickdjs.cc/book_1418181.html
- http://www.ickdjs.cc/book_1696252.html
- http://www.ickdjs.cc/book_2228445.html
- http://www.ickdjs.cc/book_1583519.html
- http://www.ickdjs.cc/book_2451664.html
- http://www.ickdjs.cc/book_1362802.html
- http://www.ickdjs.cc/book_3385690.html
- http://www.ickdjs.cc/book_1040005.html
- http://www.ickdjs.cc/book_2190397.html
- http://www.ickdjs.cc/book_2490468.html