Index

Numbers

3D images, drawing, 140-145

accelerometers, 9 accept() method, 188 ACCESS_COARSE_LOCATION permission, 252

ACCESS_FINE_LOCATION permission, 252 accessing camera, 169 content providers, 244 wireless networks, 191-193 ACTION_CALL implicit intent, 185 ACTION_DIALER implicit intent, 185 ACTION_DOWN event, 133 ACTION_MOVE event, 133 ACTION_POINTER_DOWN event, 133 ACTION_POINTER_UP event, 133 ACTION_UP event, 133 active-matrix organic LED displays

(AMOLED), 8 activities

AudioExamples, 155-157 AudioExamplesRaw, 161-163 AudioExamplesSP, 164 BackgroundTimer, 60-61 BuildingMenus, 122-124 CameraApplication, 172-175 ChangeFont, 96-97

CheckBoxExample, 106-107 CountDownTimerExample, 61-62 creating, 24-26 DataStorage, 224, 226-227 DataStorageTester, 247-248 Diary, 237-238

DiaryContentProvider, 245-246 DisplayDiaries, 240-242 EdgeDetection, 56-57 Eula, 228-231 FlingExample, 131-132 Gestures, 139-140 GoogleSearch, 206-208 HandleMessage, 63-64 HandlerUpdateUi, 93-94, 112-114 HardwareTelephony, 184-185 ImageManipulation, 149-150 launching from events, 37-40 launching with implicit intents, 44-46 lifecycle, 30-33

forcing screen orientation, 34 forcing single task mode, 33-34 ListActivity, 43-44 ListFiles, 151-152, 154 MainActivity, 127 MenuScreen, 37-38 multiple activities buttons, 36-37

creating activities with implicit intents, 44-46

explained, 35-36

implementing list of choices, 43-44 launching activities for results using speed to text, 41-43

launching activities from events, 37-40

passing primitive data types between activities, 46-49

TextView, 36-37 MultiTouch, 133-135 myanimation, 301-302 MyBandRActivity, 297-298 MyDB, 233-234 MyDBhelper, 234-235 MyLocation, 253-254-255, 256-257,

259-260, 261-262, 265-266, 269-273 MyMarkerLayer, 267-268 MyPreferences, 223 OpenGlExample, 144-145 OrientationMeasurements, 178-179

passing primitive data types between, 46-49

PhysicalKeyPress, 119-121

PlayGame, 38-39, 48-49

PressAndPlay, 54-55

ProgrammaticLayout, 91

Pyramid, 140-141

PyramidRenderer, 142-144

RecognizerIntent, 41-43

ResponderService, 200-203

rpc, 292-294

rpcService, 289-290

runnable activities, creating, 55-57

saving and restoring activity information, 34

SearchDialogExample, 128

SeekBarEx, 114-115

ShowMyButton, 282-283

ShowNotification, 77-78

SimpleActivity, 25, 68-71

SimpleBroadcastReceiver, 71

SimpleService, 66-67

SimpleService2, 71-72

SimpleWidgetProvider, 73

SMSResponder, 198-200

SpinnerExample, 111 StartScreen, 46-47 TelephonyApp, 181-182 testfactorial, 311-312 TouchExamples, 129 TwitterCookBook, 214-215 UpdateAndList, 215-219 activity element, 29 ActivityLifecycle, 32-33 ADB (Android Debug Bridge), 307-313 adb kill-server command, 307 adb logcat command, 307-309 adb pull command, 18 adb push command, 18 adb shell bmgr backup command, 297 adb shell bmgr restore command, 297 adb shell bmgr run command, 298 adb shell command, 18 adb shell dumpsys command, 314-315 adb shell ps command, 313 adb shell top command, 313 adb start-server command, 307 adb uninstall command, 18 add() method, 121 addOverlay() method, 267 addOverlayItem() method, 269 addresses translating addresses to locations, 261-262 translating locations to addresses, 258-260

addSubMenu() method, 124 AIDL (Android Interface Definition

Language), 288 AJAX (Google Asynchronous Javascript And

XML), 205 AK8976A, 10

AKM (Asahi Kasei Microsystems), 10 AlertDialog class, 75-76

alerts creating with AlertDialog class, 75-76

creating with Toast, 74-75

proximity alerts, 274-275

showing notifications in status bar, 76-78

<alpha> attributes, 299

alternate resources, specifying, 81-82

AMOLED (active-matrix organic LED displays), 8

Android Debug Bridge (ADB), 18, 307-313 Android Interface Definition Language

(AIDL), 288 Android Market alternatives to, 22

charging for applications, 20-21

differentiating applications, 20

End User License Agreement (EULA), 19

improving application visibility, 19-20

managing reviews and updates, 21-22

overview, 19

Android native components developing, 284-287

explained, 283-284

type mapping between Java and Android native components, 285

Android OS 1.5, 15

Android OS 1.6, 15

Android OS 2.0, 16

Android OS 2.0.1, 16

Android OS 2.1, 16

Android OS 2.2, 16

Android SDK, 16-17

ADB (Android Debug Bridge),

307-313 Android Debug Bridge, 18

emulator, 16-17 Hierarchy Viewer, 309-313 installing, 14-15 LogCat, 307-309 signing and publishing, 18 software features and API level, 15-16 upgrading, 14-15 Android smartphones hardware differences screens, 8 sensors, 9-10 user input methods, 9 HTC models, 6

marking device's current location on map, 274

Motorola models, 6

Samsung models, 6

table of, 3

AndroidManifest.xml file, 28-29, 40, 68, 152-153, 197-198, 211, 224, 238-239, 246-247, 252-253, 264, 291, 296-297

Android.mk file, 285-286

animated.xml file, 300-301

animation creating, 299-302 frame-by-frame animation, 298 Tween animation, 298-299 App Widgets creating, 72-74 explained, 11, 72 application element, 29 applications activities. See activities alerts creating with AlertDialog class, 75-76

creating with Toast, 74-75

showing notifications in status bar, 76-78

in Android Market charging for applications, 20-21

differentiating, 20

improving application visibility, 19

AndroidManifest.xml file, 28-30

App Widgets. See App Widgets autogenerated content, 26-28

broadcast receivers explained, 69-70

lifecycle, 70

starting services based on broadcasted events, 70-72 classes. See classes debugging

Android SDK debug tools,

307-313 Android system debug tools,

313-316 Eclipse built-in debug tools,

303-306 GNU project DeBugger (GDB), 315-316

overview, 303 development. See development multimedia. See multimedia overview, 23-24 packages, 28-30 projects creating, 24

directory structure, 26-28 renaming, 30 renaming parts of, 30 threads canceling, 57-58

creating runnable activities, 55-57

explained, 51-52 handlers, 58-64

launching secondary threads, 51-55

setting thread priorities, 57

sharing between two applications, 58

Archos, 7

ArrayAdapter constructor, 112 Asahi Kasei Microsystems (AKM), 10 AsyncTask class, 209 audio adding media and updating paths, 165 choosing and playing back, 154-157 explained, 154

manipulating raw audio, 158-163 recording, 157-158 SoundPool class, 163-164 AudioExamples activity, 155-157 AudioExamplesRaw activity, 161-163 AudioExamplesSP activity, 164 AudioRecord instance, 158-160 autogenerated content, 26-28 automobiles, Roewe 350, 7 autosending SMSs based on received SMSs, 197-203

Character Building Thought Power

Character Building Thought Power

Character-Building Thought Power by Ralph Waldo Trine. Ralph draws a distinct line between bad and good habits. In this book, every effort is made by the writer to explain what comprises good habits and why every one needs it early in life. It draws the conclusion that habits nurtured in early life concretize into impulses in future for the good or bad of the subject.

Get My Free Ebook


Post a comment