index
Symbols
.apk file 524 .dex files 51 @ symbol 24 extended by user classes 17 host processes killed 73 initiates DayTime Server query 360 key 112 lifecycle diagram 72 exploring 71 navigation between 130, 301 onCreate 72 RefreshJobs 319 separation of responsibilities 112 ShowJob 323 Adapter BaseAdapter 83 custom 82 defined 68 ReviewAdapter 82 AdapterView 78 adb 41, 71, 138, 549 arguments 343 interacting with Android SDK 549 kill-server 549 shell 343, 355 start-server 549 See also DDMS addProximityAlert 277 Address 289 addresses, converting with Geocoder 288 addToDB 259 ADT 32, 528 configuring 536 installing 534 plug-in for Eclipse 34 AIDL 101–102, 119 allowed types 120 aidl tool 119, 122 automatically invoked 120 Ajax 423 Alarm Manager 481 AlarmManager 220 public methods 215 supports four Alarm types 218 Alarms 215–220, 463 alarms, compared to services 481 AlertDialog 70, 287 AMR-NB 247 AMR-WB 247 Android application building in Eclipse 43–51 mapping flow 298–302 requires manifest file 302 Bluetooth capabilities 368–375 building application in Eclipse 43–51 building apps without the SDK 339–344 calling an Intent 108 common sensors 376 components 17–23 Activity 17 BroadcastReceiver 19 ContentProvider 22 Service 18 contact model 388–393 core packages 33 Cursor object 145
Numerics
2D shapes 223 3D cube, rotating 244 shapes 241 3GPP 247 324-M 247 7mA 379
A
AAC 247 AAC+ 247 aapt 40, 89 abortBroadcast 198 AbsoluteLayout 85 access permissions 133 AccountAuthenticator 410 AccountManager service 405 accounts, add and manage 404 ACTION_DOWN 331 ACTION_MOVE 331 ACTION_PICK 15 actions, using built-ins 108 ACTION_UP 331 Activity 24, 36, 55, 298, 327, 405 creating 65–74 displaying UI elements 17
551
552 Android (continued) designing application 294–298 See also field service application development requires Java skills 11 discourages direct file sharing 22 displaying progress 319 drawing graphics 223–227 emulator 39, 51–56 setting up environment 52 splash screen 303 working with an SD card 141 environment, should vs. can 184 and Exchange account 390 and Google account 390 Javadocs 76 licensing 9 Linux applications 338 kernel-based OS 4 logging mechanism 19 MediaPlayer 247 moving from Activity to Activity 130 Music Player 259 only encrypted connections 369 optimizing web applications 424–431 packages, world x permission 134 philosophy 391 platform 4–9 runtime 345 same-but-different 7 screen layout 84 SenseBot. See SenseBot shell 26 stack 10–12 stock icon 301 taking a photo 521 two versions of platform 54 user applications written in Java 4 using resources 89, 98 version 2.0 or later 367 vs. iPhone 9 vs. itself 8 web development 422–424 Android 2.2 371
INDEX
Android Activity 455 Android ARM. See ARM Android Asset Packaging Tool. See aapt Android Debug Bridge. See adb Android Development Tools. See ADT Android development, Intent 12 Android device security 295 touch screen-capable 300 android id 93 Android Interface Definition Language. See AIDL Android Market 9 merit-based system 548 publishing to 544, 548 rules 545 Android Native Developer Kit. See NDK Android NDK. See NDK Android Open Source Platform. See AOSP Android Project Wizard 43 Android SDK 32 installing 530 Android Service 481 Android Virtual Device. See AVD android:id attribute 46 android.bluetooth package 369 android.graphics package 223 android.intent.action.MAIN application entry point 24 android.intent.category. LAUNCHER 24 Android.jar 45 android.net 160 android.provider.Telephony. SMS_RECEIVED 22 android.telephony 191, 199 android.view 75 Android/Java, refers to Java 339 Android/Linux environments and tools 342 nontrivial activities 353 refers to Linux 339 startup code appearance 350 system libraries 345 AndroidManifest, understanding the file 98–99 AndroidManifest.xml 21, 23, 43, 64, 98, 206, 488 @symbol 24 application descriptor file 14
AppWidget 477 deployment descriptors 24 animations Android supports four types 97 ball as a sprite 230 creating programmatically 230 creating with Graphical API 227–233 frame-by-frame 227 ANR 81 AOSP 8 Apache 10 commons.io package 144 HttpClient 169 ResponseHandler 171 Apache Software License. See ASL API dummy request 413 linkedin-j 408 API key, LinkedIn APIs 393 Apple 7 AppStore 9 application distribution, Android vs. iPhone 9 Application Layer 162 Application Not Responding. See ANR Application, pass state between activities 70 applications distribution beyond Market 548 getting to Market 545 hybrid, building 440 made for mobile 430 link to full site 431 simplify, reduce, and eliminate 431 manifest 157 mapping to processes 25 preparing for distribution 538–541 AppWidget configuring 476 data elements 465 data handling 465–468 deployment patterns 458 metadata file 477 updating 480–487 AppWidgetHost 456 AppWidgetProvider 469–473 argc 349
INDEX
553
argv 349 ARM 339 Android/Linux application on 350 processor family 350 arm-none-linux-gnueabigcc 340–341, 344 arm-none-linux-gnueabi-ld 340 arm-none-linux-gnueabiobjdump 340 arrays defined 96 helpfulness 96 asInterface 120 ASL, friendlier toward commercial use 9 assembly language 340 Atom Publishing Protocol. See AtomPub AtomPub 179, 181 audio capturing 257 playback choppy 250 playing 248, 250 auth token 405 authenticating to LinkedIn 407 authentication 405 key. See Ki lightweight service wrapper 413 authority 107 AuthScope 175 AVC H.264 247 AVD 270 management Eclipse 34 AVD Manager 52, 531
B
background task 116 BaseColumns 152 BasicNameValuePair 177 batch builds without using IDE 49 batch operations on contacts 399 Binary Runtime Environment for Wireless. See BREW bind to data 78 Binder 102 onTransact method 121 binding from another application 123 bindService 124, 126
Bitmap 331, 515, 518 bitmaps 223 BlackBerry 7, 9 email capabilities 8 Bluetooth 10 capturing events 374 classes, Android 370 close-range wireless networking 160 peer 374 permissions 375 and SenseBot 368 Bluetooth Serial Port Profile 369 BluetoothAdapter 373 bonded 370 BOOT_COMPLETED 111 BounceActivity.java file 230 boundary conditions 424 BREW 7 broadcast actions 114 events 113 permissions 114 BroadcastReceiver 113, 202, 374, 456, 482 associating with IntentFilter 115 in every Android application 24 no asynchronous operations 115 no UI 19 tags 25 browser control, add to UI layout 440 browser detection examination of user agent string 428 media query 429 browsers overriding behavior 441 storing data directly 431 WebView 443 buffer, depth, comparing values 241 BufferedOutputStream 333 BufferedReader 166 BufferedWriter 167 build script, need for 344 Builder pattern, add parameters to AlertDialog 71 building a native library 508 Bundle 20, 70, 178, 208, 311 Button 67–68 buttons, tied to UI elements 70
C
C 338 application 338 application build script 344 times where better than Java 507 Camera application 510 camera on cell phone 252 Canvas 331 canvas 223 CAPTCHA and GData ClientLogin 184 carrier. See mobile operators Cascading Style Sheets. See CSS category 99 CATEGORY_LAUNCHER 14 CDMA 33, 188 primary rival to GSM 189 characters method 316 checkForZombies 472 client/server 163 ClientLogin 181, 184 clipping planes, OpenGL 240 CodeSourcery 339, 342 colors, values expressed 95 com.google.android.maps 282 com.google.android.phone. Dialer 15 ComponentName 103 conditional global replacement 400 configuration activity 463 connecting to a remote device 372 connection, wireless internet 295 ConnectivityManager 164 mobile or WiFi 160 contacts adding 400 conditional global replacement 400 identifiers 398 managing 395–402 modifying database 399 multiple insertions 402 single logical 392 table 396 content provider 23 selectively loading 428 staying up to date 151 ContentObserver 151
554 ContentProvider 22, 70, 129, 199, 297, 465 accessible by any application 151 additional properties 158 classes 149–157 creating 151, 157 extending 152 in every Android application 24 URI variations 150 ContentResolver 22, 150, 257 CONTENT_URI 150–151 ContentValues 257 Context 19, 68, 113, 134, 192, 306, 322 converttogray function 516 convolution 518 createPackageContext 134 creation, widget instance 479 CSS 95 multiple files per page 429 selectively choose file 428 ctime 355 Cursor 23, 130 data items changed 156
INDEX
D
DAL 145 Dalvik Debug Monitor Server. See DDMS Dalvik VM 10 relies on Linux kernal 12 result is innovation 12 dashboard 457 data bind to 78 contacts, good citizen principles 393 persistence 70 raw contact, storing 392 sample, properly set up 539 storage requirements 297 structures 309 values 498 Data Access Layer. See DAL Data Definition Language. See DDL data handling, AppWidget 465–468 data table 396 database modifying contacts 399 not WORLD_READABLE 149
open a connection 148 opening 435 persisting data to 144 server 23 datagram 162 Date & Time settings 494 Daytime Client 359–362 single Activity 360 special permission 362 testing 362 DayTime Server 355 application has two parts 353 listens on TCP port 352, 361 DBHelper inner classes 145 outer class 146 DBOpenHelper 145, 148 DDL 357 DDMS 34, 214, 537 option in Eclipse 209 perspective dashboard-like view 37 LogCat view 38 DDMS tool requires decimal format 270 supports KML 272 two contexts 269 working with a GPX file 272 Debug Certificate 284 perspective 35, 57–58 debugging 57 DEFAULT_FOCUS 87 Delicious 179 depth buffer, comparing values 241 developer API, LinkedIn 393 device ID 192 dex files 12 digital signature 541–544 jarsigner 542 keystores 541 keytool 542 dimensions, units of expression 95 directory change 343 disassembling 340 Drawable 233 drawables 45, 303, 382 managing 497 shapes in XML 225 drawBitmap 331 drawColor 331 drawing with XML 224 dummy API request 413 dynamic linking 344–352
E
Eclipse build SMSNotifyExample 206 DDMS perspective 35 view 342 debugging Android application 57 default perspective 529 Emulator Control 269 installing 528 Java perspective 35 launch recording application 259 and NDK 524 Package Explorer 35 plug-in, File Explorer view 133 setting up development environment 13 workspace prompt 529 Eclipse IDE 528, 530 See also ADT edge detection 507 routine 511 edges, finding 523 Editor 306 EditText 28, 67 EditView 308 Electronic Serial Number. See ESN ELF 350 email addresses, conditional global replacement 400 emulator switches 537 vs. simulator 52 Emulator Control, testing connectivity 39 endElement method 316 end-user license agreement. See EULA Enterprise Information Systems 7 equator, base for latitude 270 Error Console, WebKit 439 ESN swap 190 EULA 540 event handling 68, 87 executable and linkable format. See ELF exit 349 external links, adding 104 externalize string 94
INDEX
555
F
FAT 141 field service application assumptions 295 manifest file 302 resource files 301 source code 302–316 source files 300 steps 298 FieldService Activity goal 304 implementing 306 File Allocation Table. See FAT File Explorer view, Eclipse 39 file_get_contents 336 FileInputStream 143, 313, 333 FileOutputStream 137, 143, 333 files accessing 137 read and write 137 filesystem, based on Linux 136 FILL_PARENT 86 findViewById 29, 93 method 28 finish 319 fixed-length record 388 focus 86 override default behavior 87 for additional locales 496 format, simple value 95 formatNumber 197 FrameLayout 85 fromBundle 311, 323
G
gcc 340, 346 GData API implementation of AtomPub 181 not true REST 181 GData ClientLogin and CAPTCHA 184 geo fix 271 query 299 Geocoder 288–289 creating 289 map between point and place 269 geocoding 288 GeoPoint 269, 281 getEmail 306
getExtras 80, 323 getJob 323 getProvider 277 getSharedPreferences 130 getSystemService 165, 192, 277 getTelephonyOverview, reset screen details 194 getView 84 Gibara, Tom 252 global start directive 351 state 70 global number 197 Global Positioning System. See GPS global replacement, conditional 400 Global System for Mobile. See GSM GNU General Public License. See GPL Google Android Market 9 Base Atom API 77 Contacts 181 GData 179, 181 Maps 26 and Open Handset Alliance 3 Google APIs 54 Google Maps API key, requesting 283 support through MapView 283 GPL 9 GPS 6 data stamped on job 331 most common location provider 268 obtaining provider directly 278 services 456 GPS Exchange Format. See GPX GPX DDMS tool 272 storing points 271 graphics 2D and 3D 234 drawing in Android 223–227 Graphics API called with Java 223 creating animations 227–233 GSM 33, 188 Android standard 189 gsm command 194
H
H.263 247 Handango 9 handle 435 Handler 79, 91, 231, 304, 314, 319 relationship diagram 172 send a Message 112 updating Adapter 81 HandlerThread 81 height class 85 setting minimum 76 hotspot 460 HTML5 422 HTTP 160 authentication 176 creating helper 172 defines internet rules 163 GET 169, 175 headers 175 and java.net 169 parameters 175 POST 169, 175, 331 protocol stateless 168 working with 168–178 HttpClient 172 HttpEntity 172 HttpPost 177 HttpRequestHelper 169, 174, 180 HttpRequestInterceptor 176 HTTPS 179 creating helper 172 HttpUrlConnection 169
I
IBinder 118, 405 base of remoting protocol 121 onBind 122 transact method 121 ICANN 164 ICCID 189 identifies SIM card 189 identity matrix, OpenGL 240 IDL 119 ifconfig 167 ImageView 93, 303 IMEI, identifies device 189 IMSI 192 subscriber and network identifier 189
556 independent software vendor. See ISV index.html file 442 InputStream 313 integer primitive, int 465 Intent 12, 70, 179, 195, 299 actions 105 broadcasting 113 data 107 defined 14 defined and invoked 102 definitions express 103 explicit 15 handlers 106 implicit 15 and IntentFilter 113 object components 102 receiving 19 requests, late binding 102 resolution 16 specify a permission 114 working with 109, 113 Intent classes receiving 208 registered with Alarm 215 IntentFilter 19, 102 classes defined 107 defined 14 defines relationship 14 object 106 works with Intent 113 intent-filter 24, 106 IntentFilter action 456 intents, making calls 195 interface definition language. See IDL International Mobile Equipment Identity. See IMEI International Mobile Subscriber Identity. See IMSI Internet Layer 162 Internet Protocol. See IP interprocess communication. See IPC IP 160 address 162 finding 167 network data 160 IPC 102 ipconfig 167 iPhone 7 vs. Android 9 ISO format 493 ISV 16
INDEX
ItemizedOverlay 285 handles details 287 iTunes, as an example 163
J
jar 51 jarsigner 542 Java 4, 339 array 437 connecting UI to a DayTime Server 360 locale-specific data classes 498 Runnable interface 320 Java bytecodes, convert to dex file 50 Java development tools. See JDT Java ME 7 Java Native Interface. See JNI Java packages, included in Android SDK 33 Java Perspective 35 Eclipse default 529 Java Platform, Micro Edition. See Java ME Java Runtime Environment. See JRE java.net 160, 169 Javadocs android.provider package 151 view 36 JavaScript errors found at runtime 433 implementing handler 443 interface code 445 multiple handlers 446 overriding alert() 452 security matters 447 JDK 528 JDT 528 Eclipse 36 JNI building a library 512–519 functions 519 library 508 compiling 518 load at runtime 522 JobEntry 310 JobListHandler 314, 317 jobs data managing 309–316 ManageJobs Activity 320 managing 316–333
with GPS data stamp 331 working with the ShowJob Activity 323 JPEG 247 captured signature 333 converting to 331 JQuery 423 JRE 528
K
KDE 422 Keyhole Markup Language. See KML keystore, keys require an alias 542 keytool 542 Ki, authenticates SIM card 189 KML 272 checks files for Placemark 274 drawbacks 274 international standard 275 kSOAP, documentation 185
L
LAI, region device is in 189 Language & Keyboard 493 languages, target 495 latitude, how expressed 270 launch screen 301 Layout 45 layout 76, 455 alternative to absolute 85 create a screen 67 dimentions of a view 86 managing 497 screen 84 two-step process 86 XML 407 LayoutParams 85, 93 ld 346 LD_LIBRARY_PATH. 348 LED 210 LEGO Mindstorms NXT. See robot LEGO robot. See robot libsqlite.so 355 License Verification Library. See LVL lifecycle callback methods control state 72 high-level methods 73
INDEX
557 MD5 fingerprint 284 media, capturing 251, 259 MediaPlayer.create() 248 MediaRecorder 257, 259, 261 MEID 190 Menu 69 vs. onscreen buttons 70 MenuItem 69, 104 Message 112, 118, 172, 178, 362 class 319 handleMessage method 81 instances 319 object, do not reuse 320 sendEmptyMessage method 82 MessageQueue 81 metadata file, AppWidget 477 metrics, location-related 267 Microsoft Exchange 390 Microsoft, platforms compelling 8 MIME type 107 MIME_TYPE 151, 257 mkdir, command on adb shell 343 mksdcard 251 tool 141 Mobile Equipment Identifier. See MEID mobile in mind, designing 424 mobile operators challenges 6 response to Android 5 mobile phone, basic states 193 Mobile Safari 7 iPhone 7 MotionEvent 331 MP3 247 file play back 248 MPEG-4 247 multiple accounts 390 convenience and complications 390 My Location 270 MyLocationOverlay 285 MySQL 297, 334
lifecycle (continued) methods 72 phases 72 See also Activity, lifecycle lightweight authentication service wrapper 413 LinearLayout 29, 85 Link Layer 162 LinkedIn 388 contacts, expanded details 400 creating account 406–413 developer API key 393 logging in a two-stage process 408 synchronizing 414 transactions 419 linkedin-j API 408 project 394 linker 345 arm-none-linux-gnueabi-ld 346 options 348 Linux 4 building applications 338 DayTime Server 352 finding IP address 167 kernel 10 Linux kernel and Dalvik VM 12 why use 11 Linux security system prevents ad hoc file access 22 ListActivity 78 ListView 77, 81, 321 locale 493 localization multiple locales 494 need for 492–499 obstacles 504 translation team 499 See also localizing localizing applications 498 entire infrastructure 495 in Java code 502 strategies 494 Location 275, 281 location simulating 269–275 specify coordinates 269 updates 279 Location Area Identity. See LAI location-based service. See GPS
LocationListener 275, 279 onProviderDisabled 281 onProviderEnabled 281 receive updates 269 LocationManager 112, 275 Criteria 278 find available providers 268 getProvider 278 GPS_PROVIDER 277 NETWORK_PROVIDER 277 LocationProvider 267, 275, 277 COARSE 278 FINE 278 permissions 278 LogCat 38, 49, 537 functionality 514 superfluous statements 539 values displayed 58 longitude, how expressed 270 lookup key 398 loopback 162 don’t connect to 167 Looper 81, 320 LVL 544
M
Mac 7 finding IP address 167 MAIN LAUNCHER, intentfilter 111 main.xml 45–46 makeText 208 managedQuery method 150 manifest 98–99 MapActivity 268, 277 extending 282 writing with MapView 284 MapController 277 get from MapView 285 mapping, applications to processes 25 Maps application 270, 299 maps, working with 281 MapView 268, 277 Google Maps API key 283 limited version of Google Maps API 282 and Overlay classes 282 set zoom level 285 updating 269 writing MapActivity 284 MapViewActivity 275 screen 282 margins 85
N
NANP 198 National Data Buoy Center. See NDBC Native Developer Kit. See NDK native library, building 508
558 navigation, detecting events 449 NBDC 268 feeds 285 NDK 4, 339, 506 build subsystem 512 building an application 509 directory 524 installing 508 integrating into Eclipse 524 uses for 507 netstat 355 network protocols 161 NetworkInfo 165 networking, overview 161–164 NexusOne device 371 Nintendo Wii 368 NOAA 268 node 161 nop 350 North American Numbering Plan. See NANP nostdlib 348 Notification 116, 118 fields 210 NotificationManager 213 notifications 210–214 debugging 539 from Toast to status bar 211 with Alarms 218 NT Lan Manager. See NTLM NTLM 176 number, global 197
INDEX
O
-o switch 341 objdump 340, 350 Observable pattern 87 Observer pattern 87 OCR 507 OGC 273 onActivityResult 306–307, 323, 327 onBind method 19 onCallStateChanged 194 onClick 309 onClickListener 68, 87 onCreate 19, 79 onCreateOptionsMenu 329 onDraw 84, 331 OnFocusChangeListener 87, 198 onLayout method 84 onListItemClick method 80
onLocationChanged 281 onMeasure method 84 onMenuItemSelected 80, 104 onOptionsItemSelected 329 onPause 72 onReceive 115, 198 onSaveInstanceState method 74 onscreen buttons vs. Menu 70 onServiceConnected 126 onServiceDisconnected 126 onTouchEvent 331 onVisibilityChanged method 84 Open Geospatial Consortium. See OGC Open GL clipping planes 240 identity matrix 240 and link command 347 Open Handset Alliance and Google 3 open source, double-edged sword 8 OPEN, CLOSED 504 OpenCORE 246–247 multimedia platform 247 open-ended records 389 openFileInput 137 openFileOutput 136, 313 OpenGL 345 primitives 238 descriptions 239 OpenGL ES 10, 233 3D shapes 241 Android support for 227 API 234 drawing a rectangle 238 graphically intensive applications 234 visualization 237 OpenGL libraries 507 OpenGL-Context 234 openInputStream method 22 openRawResource 138 Oracle, Java VM licensing 12 org.apache.httpclient 160 outbound calls, intercepting 198 output switch. See -o switch OutputStream 331 Overlay classes display on MapView 282 draw on top of map 269
onTap 287 placing data on map with 285 OverlayItem 285
P
Package Explorer, Eclipse 35 packet 162 PacketVideo, OpenCORE 10 padding 76 paint 223 paired 370 Palm 9 Parcelable 122 parse Uri 105 path 107 patterns AppWidget deployment 458 Builder 71 Observable 87 Observer 87 PDU mode is superior 208 SMS data packet 203 PendingIntent 200, 277 permissions 99 access 133 phone-related 196 world x 134 perspectives 241 DDMS 37 Debug 35, 57 Eclipse 34 Java 35–36 pESN 190 phone home screen 455 number 192 Phone 7 7 PhoneGap 447 PhoneNumberUtils formatNumber helper method 197 parse and validate 196 PhoneStateListener 187, 191, 194 phone-top 454 PHP 297 for exchanging data 297 mobile integration code 336 server-side dispatcher system 335 PictureCallback 253 PID 38, 71
INDEX
559 RISC 340 robot communicating with 384 controlling with phone orientation 382 driving 383 rotating 3D cube 244 router 163 rows, inserting and deleting 438 rpath 348 Runnable, Java interface 81, 320
PIN value 372 pipe-delimited return string 460 pixels, OpenGL primitives 238 placement 85 places, converting with Geocoder 288 plain old XML over HTTP. See POX Point 233 polygons, OpenGL primitives 238 POP3 email program 403 port 352 identifying number 43 three ranges 164 Portable Operating System Interface for UNIX. See POSIX POSIX 165 POST data 333 postDelayed 304 Power Control AppWidget 455 Power Control widget 455, 457 POX 160 exposes chunks of XML 178 using a service 180 preferences 130 preinit_array 351 prime meridian base for longitude 270 primitives 223 printf 341 process placed on a stack 71 pruning 71 process ID. See PID produce information URL 299 progress, displaying 319 ProgressDialog 299, 314, 319, 328–329 ProgressDialog.show method 80 projection matrix 244 projectname.apk 51 protocol data unit 203 See also PDU protocol layers 162 Prototype 423 Proxy 120 ps -a 26 Pseudo Electronic Serial Number. See pESN publishing 122 Android Market 544, 548 putExtras 80
Q
Qualcomm 7 queryString 112 queuing, local 328
R
R class 29, 89 R.java 29, 44 file 300 serves as a bridge 64 updating 46 raw contact data, storing 392 raw resources 96 read-only interface, AppWidget 455 Receiver 216 receiver 111, 456 tag 25 RecordHit, inserts record into SQLite DB 355 records 389 fixed-length 388 open-ended 389 choosing 388 RefreshJobs 317 regression testing 540 relational database, built-in 144 RelativeLayout 85, 94 remote device, connecting 372 RemoteViews, working with 473 remoting 121 removeProximityAlert 277 Representational State Transfer. See REST requestLocationUpdates 281 use time parameter carefully 281 Research in Motion 7 Resources 139 raw resources 138 XML resources 139 resources 89–98 referencing in Java 89 types 89 ResponseHandler 172, 175 REST 160, 184 methods 181 uses URL-style approach 178 return, replace with exit call 349 ReviewAdapter, extends ReviewAdapter 83 RFCOMM 369 cable replacement profile 369
S
Safari 7 Samsung 371 save 306 SAX 77 parser 313, 316 style of tree traversal 141 XML parser 314 scaling 427 scheme 107 SD card 129, 141–144, 251 and the emulator 141 handles large files 141 sdcard path 141 SDK 4 upgrades 533 searching, Set Search Term button 448 Secure Digital. See SD card secure shell 343 Secure Sockets Layer. See SSL security risks 447–448 select 357 sendBroadcast 113 sendDataMessage 199 sendMultipartTextMessage 199 sendTextMessage 199 SenseBot 368 building the application 379 uses Bluetooth to drive robot 368 SensorEvent fields 377 SensorManager 375–379 classes 376 sensors enabling and disabling 378 events 375 SEO 426 Serial Port Profile. See SPP
560 server 333–337 communicating with 165 relies on MySQL and PHP 334 role 167 ServerSocket 166 Service 18, 24, 404 background task 116 binding vs. starting 126 building 115, 118 cleaning up after stopped 128 explicitly stopping 127 lifecycle 118, 127 onBind 118 onCreate 118 onDestroy 118 starting vs. binding 126 tags 24 Service-bound lifecycle 127 ServiceConnection 124 service-oriented architecture. See SOA services compared to alarms 481 long-running 119 tag 24 two purposes in Android 126 Service-started lifecycle 127 setAudioEncoder 257, 261 setAudioSource 257, 261 setContentView 91 setContentView method 28 setEmail 306 setIcon 69 setMediaController 251 setNotificationUri 156 setOutputFormat 257, 261 setResult method 333 Settings button 299 setVideoPath 251 SGL 10 ShapeDrawable 224 SharedPreferences 305–306 access mode 132 Context 130 Editor 132 objects 133 storing with different modes 130 XML files permissions 133 sharedUserId 138 Short Message Service. See SMS ShutterCallback 253 signature capturing with CloseJob Activity 327
INDEX
electronic 295 JPEG image 300 SIM cards stored identifiers 189 used by GSM devices 189 Simple API for XML. See SAX Simple Object Access Protocol. See SOAP SimpleAlarm class 216 simulator vs. emulator 52 single logical contact 392 SiteMonitor application architecture 462–465 basics 458–461 monitors website health 459 supports multiple conditions 460 SiteMonitorModel class, two logical sections 465 SiteMonitorService 480 smart shortcut 457 smartphone, major players 7 SMS 39–203 pdus 203 permissions 201 receiving messages 202, 207 send message to emulator 21 sending messages 199, 201 SMS messages permissions 207 sending 199, 201 SmsManager 199 SmsMessage 199, 203, 206 SMTP rigorous procedures 163 SOA 102 SOAP 160, 184, 297 imposes strict rules 178 kSOAP 185 proxy 185 Sobel Edge Detection 507 convolution 518 highlighting image edges 511 Socket 166, 362 socket interface 369 software development kit. See SDK software version 192 source-level debugging, Eclipse 34 Spinner 67–68 Splash Activity 301 splash page, functionality 303 splash screen 298, 302 splashhandler 304
SPP 369 SQL 22 functionality 422 local database 432 SQLite 10, 70, 112, 297, 345 built-in database system 144 database 355 insert, update, and delete data 148 insertion of data 353 and link command 347 query 148 supports WeatherReporter 129 sqlite database 389 SQLite3 355 sqlite3 144 tool 149 SQLiteDatabase 148, 154 SQLiteOpenHelper 145 SQLQueryBuilder 156 src folder 44 SSL 296 stack 368 Stagefright, replacing OpenCORE 247 start routine 349 startActivity 17, 70, 105 startActivityForResult 17, 306– 307, 323 startDocument method 316 startElement 316 starting path 134 startRecording 259 startService 18, 115 state instance 74 manage between activities 70 persistent 73 –static command-line switch 341 –static flag, applications selfcontained 345 static method 465 status code, should be internal 504 storing raw contact data 392 String 316, 465 StringBuilder 316 strings comparison 451 identifying and managing 495 in resources 500 pipe-delimited return 460
INDEX
561 View 233, 331 classes 75 lifecycle methods 84 single-threaded interface 88 widgets 382 ViewGroup 84 subclass related to layout 76 viewport meta tag options 427 tag, adding 426 views common 75 creating custom 82 defined in XML 91 Devices 38 Eclipse 35 Emulator Control 39 File Explorer 39, 133 Javadoc 36 Layout 46 LogCat 38, 48, 58 Package Explorer 35, 44 Problems 36, 49 working with 74–89 XML 46 XML defined 92 vnd.android.cursor.dir 152 vnd.android.cursor.item 152
strings.xml file 45, 497 Structured Query Language. See SQL Stub 119 style sheet 429 styles helpfulness 95 vs. themes 96 stylus 300, 327 SurfaceHolder 237 SurfaceView 237 sync 403 across multiple terminals 403 retrying 404 synchronization. See sync synchronizing lifecycle 414
Transport Layer 162 triangles, OpenGL primitives 238 troubleshooting 418 try/catch blocks 49
U
U.S. National Oceanic and Atmospheric Administration. See NOAA UDP, fire and forget 163 UI changes 45 distortion 498 unbindService 126 Unix, DayTime Server 352 update, triggering 482 Uri object 102 UriMatcher 154 URIs 13 Content 22 examples 14 syntax 150 using those built-in 108 URL 13 product information 299 Usage Stats 537 user ID 138 input 77 user agent 428 user friendly 455 UsernamePasswordCredentials 175 uses-library 282 uses-permission 25, 362 tag 25
T
takePicture 252 TCP 353 reliable 163 sockets 355 TCP/IP 161 TDMA 189 telephony 188 alphabetic keypad 197 format number 197 outgoing call 198 permission 193 TelephonyManager 187, 190 telnet 42 testing, run under varied conditions 540 .text 350 text mode 208 TextView 93, 360 presents job details 323 themes vs. styles 96 Thread 79 TimerTask 118, 229 timestamp, appending 143 titled 383 Toast 206–210, 397 toBundle 323 tool chain, cross compiling 339 tools aidl 119 linker 339 toString method, displaying jobs 311 toXMLString 311, 313 transaction function, unpacking 436 translation team 499
W
WEAK_FOCUS 87 weather, checking with custom URI 109 WeatherAlertService 116–128 WeatherReporter 109–118, 149 displaying alerts 113 web control, desired behavior 441 Web Inspector, WebKit 439 web services 178–185 Web Tools Platform 528 WebChromeClient class 452 WebKit 6, 10 and KDE 422 tools Error Console 439 for testing 439 Web Inspector 439 WebView browser 443 WebViewClient 448 widget instance, create 479 widgets 46 zombie 472
V
Values 45 values, externalizing 94 Vector 313 Verizon, Get It Now 7 versionCode 539 versionName 539 vertex, coordinates per 240 video playback choppy 250 playing 250–251 video recording, specific to phone vendor 248 VideoView 250
562 width class 85 setting minimum 76 Wi-Fi 160 Bluetooth similar to 368 no emulation layer 160 WiMAX 160 Windows 7 finding IP address 167 NTLM 176 Windows Mobile 9 WinRAR 51 WinZip 51 Workbench 529
INDEX
Worldwide Interoperability for Microwave Access. See WiMAX WRAP_CONTENT 86 WS-* 185
stream 336 using to create a drawing 224 XML tag 228 XmlPullParser 141
X
XML drawable shapes 225 file not needed 67 parsing 181 resources 139 Schema 184
Y
Yahoo! Weather API 102, 109, 118
Z
zombie widgets 472
- contentresolver > index
-
index
下载该文档 文档格式:PDF 更新时间:2014-03-03 下载次数:0 点击次数:1
- 下载地址 (推荐使用迅雷下载地址,速度快,支持断点续传)
- PDF格式下载
- 更多文档...
-
上一篇:2014招生简章(最新).pdf
下一篇:Asynchronous/Isochronous
点击查看更多关于contentresolver的相关文档
- 您可能感兴趣的
- resolver getcontentresolver contentprovider excelsolver multipartresolver 获取contentresolver solver sudokusolver simulinksolver localsolver
- 大家在找
-
- · barron模考软件
- · 暗黑21.11装备库
- · 环境学原理
- · 昆明理工工程力学
- · 2011高考英语满分作文
- · 水浒传回目
- · tods鞋专柜价格
- · linux图形编程
- · 测网速软件下载
- · "台达能源有限公司","龚晓峰"
- · 口腔内科学精华总结
- · 江苏农林网
- · 受电弓滑块
- · 山东学籍管理平台
- · 暑期实习论文
- · 沧州大棚毛毡
- · 试音碟下载
- · 宝宝11个月
- · 山东海事局船员考试
- · 余热电厂汽轮机
- · 湖北省交通厅网站
- · 桃花源记及译文
- · 腕式臂式血压计
- · 成都大学生兼职网
- · followyourheart
- · 瓷瓶39度五粮液价格
- · 北京独生子女老人每月
- · 七彩虹n78
- · 昆仑天歌柴油机油
- · 广告专区bydiscuz
- · 大学生职业生涯教育
- · html源码之家
- · 北京通州诺丁山地图
- · 东奥会计在线网校首页
- · 宁波自动车床
- · 九年级英语新课堂答案
- · 四层平房外观设计图片
- · 湖北创业学校09届学生
- · 支撑圈毕业设计
- · 2011期末考试成绩查询
- 赞助商链接