Qr

query() method, 245 radio buttons creating, 108-110 defined, 101

radio image, 3

raw audio, manipulating, 158-163

rbutton.xml file, 109

reacting to touch events, 128-130

Recognizerlntent activity, 41-43

recording audio, 157-158 video, 166

recovery image, 3

registerForContextMenu() function, 124 registering audio files, 165

registerReceiver() method, 70 relative layout, setting, 89-90 RelativeLayout view, 89-90 releaseService() method, 291

remote procedure calls (RPCs), implementing, 289-294 renaming classes, 30 packages, 30 projects, 30 Representational State Transfer (REST), 205 requestLocationUpdates() method, 254 requestRestore() method, 297 res/anim/ directory, 79 res/drawable/ directory, 79 resistive touchscreen technology, 9 res/layout/ directory, 79 resource directories list of, 79

specifying alterate resources, 81-82 ResponderService activity, 200-203 res/raw/ directory, 79

REST ( Representational State Transfer), 205 restoring activity information, 34 res/values/ directory, 79 res/xml/ directory, 79 retrieving last location, 253-254

shared preferences, 222

returning device's rotational attitude, 176-179

reverse geocoding, 258-260

reviews in Android Market, 21-22

RFCOMM, 188

ring-tone songs, playing on button press, 51-55

ring-tone text transfer language (RTTTL), 53

R.java class, 27-28

robustness, 13-14

Roewe 350, 7

<rotate> attributes, 299

rotational attitude, returning, 176-179

rpc activity, 292-294

RPCs (remote procedure calls), mplementing, 289-294 rpcService activity, 289-290 run configuration, specifying, 303-304 runnable activities, creating, 55-57 runnable tasks from main thread, scheduling, 59-61 runtime data, backing up, 294-296

Samsung smartphones, 6 saving activity information, 34 files, 249-250 <scale> attributes, 299 scheduling runnable tasks from main thread, 59-61 screen orientation, forcing, 34 screens, 8

SEARCH KEY, utilizing, 127 SearchDialogExample activity, 128 SearchRecentSuggestions database, 244 secondary threads, launching, 51-55 security, 287-288 seek bars creating, 114-116 defined, 102 SeekBarEx activity, 114-115 self-contained services, creating, 65-69 sending SMSs through SmsManager, 195-197

sendMuiltTextMessage() method, 200 sendMultipartTextMessage() method, 197 sendTextMesssage() method, 195 SENSOR_DELAY_FASTEST 178 SENSOR_DELAY_GAME, 178 SENSOR_DELAY_UI, 178 SensorEventListener, 178 sensors, 9-10

returning device's rotational attitude,

176-179 sensors accessible from Android

SDK, 176 temperature and light sensors, 179-180

separate database packages creating, 232-235 utilizing, 236-239 services creating, 65-69 explained, 64 lifecycle, 64-65 stopping, 65 setBuiltInZoomControls() method, 269 setContentView() function, 25 setDaemon() method, 57 setGravity() method, 75 setIcon() method, 121 setListAdapter() function, 43 setMeasuredDimension() method, 277 setOnItemClickListener() function, 43-44 setPixel() method, 148 setPriority() function, 57 setRequestMethod() method, 209 setText() method, 278 setTextColor() method, 278 setTextSize() method, 278 Setting database, 244

SFH7743, 10

Shanghai Automotive Industry Corporation, 7

shared preferences changing UI based on stored data, 225-228

creating and retrieving, 222 End User License Agreement

(EULA), 228-232 explained, 221

preferences framework, 222-225

SharedPreferences interface. See shared preferences sharing threads between two applications, 58 ShowMyButton activity, 282-283 ShowNotification activity, 77-78 ShutterCallback() method, 171 signing, 18

SimpleActivity activity, 68-71 SimpleBroadcastReceiver activity, 71 SimpleOnGestureListener class, 131 SimpleService activity, 66-67 SimpleService2 activity, 71-72 SimpleWidgetProvider activity, 73 single task mode, forcing, 33-34 size() method, 267 sleep() method, 55 smartphones running Android 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

SMS (short message service)

autosending SMSs based on received

SMSs, 197-203 sending SMSs through SmsManager, 195-197 SmsManager class, 195-197 SMSResponder activity, 198-200 sockets (Bluetooth), opening, 188-191 soft keyboards, 11 sort() method, 151 SoundPool class, 163-164 speech to text, launching activities for results using speed to text, 41-43 spinner_entry.xml file, 110-111 SpinnerExample activity, 111 spinners, 101 spinner.xml file, 110 SQLite database creating personal diaries, 239-242 creating separate database package,

232-235 explained, 232

utilizing separate database packages, 236-239

ST Microelectronics, LIS331DLH, 10

startdiscovery() method, 187

starting. See launching startMethodTracing() function, 312

startMP() method, 155

StartScreen activity, 46-47

startTracking() method, 119

status bar, showing notifications in, 76-78

stop() method, 57

stopMethodTracing() method, 312

stopping services, 65

storage. See data storage

Streak, 7

String attribute, 80 strings, 12 strings.xml file, 40 supported media types, 147-148

surface acoustic wave touchscreen technology, 9 surfaceChanged() method, 172 surfaceCreated() method, 172 surfaceDestroyed() method, 172 SyncStateContract database, 244 system image, 3

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