SetOnItem SelectedListener method

setOnItemSelectedListener()

method, 174 setOnKeyListener() method, 169 setOnLongClickListener()

method, 223 setProgress() method, 263 setSelection() method, 141, 173 setText() method, 147, 168,

205-207 setTextViewText() method, 311 setTheme() method, 350 Settings application, 38 settings screens adding avatars to, 219-220 adding resources to, 165-166 Button controls configuring, 170-171 handling button clicks, 171-172 defining features of, 100-101 designing, 161-163 EditText controls committing EditText input,

169-170 configuring, 168 handling text input, 168 SharedPreferences defining SharedPreferences entries, 175 reading settings from,

177-178 saving settings to, 176

Spinner controls, 172 configuring, 173 handling Spinner selections, 173-174 listening for selection events, 174 updating layout of, 166-167 updating to enable friend requests, 293-295

setTitle() method, 192 setup() method, 155, 376 SHA (Secure Hash Algorithm), 285 ShapeDrawable class, 67 SharedPreferences, 46-47 defining SharedPreferences entries, 175 reading settings from,

177-178 retrieving, 107-108 saving, 107 saving settings to, 176 updating to include game state settings, 208-209

sharing data content providers Browser, 360 CallLog, 360 Contacts, 360 explained, 360-361 live folders, 361 MediaStore, 360 UserDictionary, 360 directories, 358 files, 358

form data with SharedPreferences defining SharedPreferences entries, 175 reading settings from,

177-178 saving settings to, 176 overview, 358 SQLite databases, 359

SHOP4APPS, 404 showDialog() method, 53,

183-186, 193-194 signing applications, 387-390 SIM information, retrieving, 280 simulating incoming calls to emulator, 31-32

incoming SMS messages to emulator, 33

skins (emulator), 38-40 SlideME, 404 sliding drawer, 37 SMS messages, simulating incoming SMS messages to emulator, 33 SmsManager class, 281 SmsMessage class, 281 social features friend support displaying friends'

scores, 298 enabling friend requests,

293-298 enhancing player relationships, 299-300 explained, 292-293

0 0

Post a comment