exportingjava
java抽奖程序 时间:2021-02-16 阅读:(
)
11411141IndexSpecialCharacters&Numbers#sign,93$JAVA_HOME/bindirectory,25*(asterisk)symbol,138*.
dbfiles,94(/res/xml/bday_appwidget_provider.
xml)file,7253Dgraphics,123GPP(3rdGenerationPartnershipProject),600100ANDROdirectory,579AAcommand,38AAPT(AndroidAssetPackagingTool),42,70AbsoluteLayoutlayoutmanager,198AbstractWindowToolkit(AWT),JavaSE,2abstractingcommontexturehandling,669–672AbstractRendererclass,639,648–649,665AbstractRenderer.
javafile,647accelerate_decelerateinterpolator,1065accelerate_decelerate.
xmlfile,1066accelerateInterpolatortag,506AccelerometerRecordToFileAlwaysOnproject,904accelerometers,interpretingdatafrom,908–914anddisplayorientation,910andgravity,910–913andmagneticfieldsensorstogether,915usingtomeasuredeviceangle,914ACCESS_ALL_DOWNLOADSpermission,334,337access.
logfile,904AccountFunctionTester.
javafile,960account_namefield,954accountscontactsAPI,938–943,960–968driveractivityclasses,963–966enumerating,943functiontester-relatedfiles,961–962menufile,961relevancetocontacts,942–943runningprogram,966–968screens,938–942Google,994"Accounts&syncsettings"screen,939AccountsFunctionTester.
javafile,962account_typefield,954acos()method,914ActionIconarea,1071Actionicons,1071actionkeys,inAndroidsearch,818–821tag,351,361ACTION_ANSWER,570ActionBarAPI,1069–1095anatomy,1070–1071listnavigation,1084–1089AndroidManifest.
xmlfile,1087BaseActionBarActivityclass,1087examining,1088–1089listlistener,1086settingup,1086–1087SpinnerAdapterinterface,1085–1086standardnavigation,1090–1095AndroidManifest.
xmlfile,1092BaseActionBarActivityclass,1091–1092examining,1092–1095sourcecode,1090–1091tabbednavigation,1071–1084actionbarandmenuinteraction,1081–1083assigninguniformbehavior,1075–1077baseclasses,1073–1075examining,1084manifestfile,1083–1084navigationmodes,1079–1080obtainingactionbarinstance,1079scrollabledebugtextviewlayout,1080–1081tabbedlistener,1077–1078ActionBar.
OnNavigationListener,1086ACTION_CALLactivity,129ACTION_CANCELaction,846,852ACTION_DIALactivity,129ACTION_DOWNaction,846,852ACTION_DOWNevent,846,854–855,859,862,868–870ACTION_DOWNmethod,861ACTION_DRAG_ENDEDaction,1125,1131,1136,1138ACTION_DRAG_ENTEREDaction,1124,1131,1138ACTION_DRAG_EXITEDaction,1124,1131Index1142ACTION_DRAG_LOCATIONaction,1124,1131ACTION_DRAG_STARTEDaction,1124,1136,1138ACTION_DROPaction,1124,1131,1136actionEnum,1083ACTION_GET_CONTENTintent,141–142actionKeyelement,819ACTION_KEY,SearchManagerclass,820ACTION_MASKconstant,MotionEventclass,870ACTION_MOVEaction,846,852,877ACTION_MOVEevents,852–853,855,859,868–869,878ACTION_MSGstring,SearchManagerclass,820ACTION_OUTSIDEaction,846,852ACTION_PICKaction,139–141ACTION_PICKcode,142ACTION_PICKintent,140–141ACTION_POINTER_3_DOWNconstant,MotionEventclass,870ACTION_POINTER_DOWNaction,877ACTION_POINTER_DOWNevent,868ACTION_POINTER_ID_MASKconstant,MotionEventclass,870ACTION_POINTER_ID_SHIFTconstant,MotionEventclass,870ACTION_POINTER_INDEX_MASKconstants,871ACTION_POINTER_INDEX_SHIFTconstants,871ACTION_POINTER_UPaction,877ACTION_POINTER_UPevent,869ACTION_SEARCHaction,784,787,807,810–811,816,820ACTION_SEND,567ACTION_TTS_QUEUE_PROCESSING_COMPLETEDbroadcast,842ACTION_UPaction,846,852ACTION_UPevent,846,853–855,859,862,869–870,877–878ACTION_VIEW,807,810–811,816activities,9,29,400codeforlayoutanimation,501directlyinvokingwithcomponents,133filesfor,414,416invokingseparate,1041–1043lifecyclesof,52,418–419regular,758–765relatedtolocalsearch,771–777simplesuggestionprovidersearch,784–789widgetconfiguration,738–742Activityclass,67,141,191,224,228,234,240,266,392,872activitynode,725activityobject,77tags,345,606,1002activitywindows,managementof,9activity.
onCreateContextMenu()method,232activity.
registerForContextMenu()method,232AdapterContextMenuInfoclass,234adaptersArrayAdapter,172–174creating,188–193,213overview,170SimpleCursorAdapter,171–172usingwithAdapterViewsListViewcontrol,175–183overview,174AdapterViewclass,171AdaptiveMulti-Rate(AMR),600adb(AndroidDebugBridge)command,55,576(adb)AndroidDebugBridgetool,91adbpull,886adbshell,94adbtool,294,578Addgesturebutton,882–883add()method,174,1035,1042addContact()function,987AddContactFunctionTester.
javafile,986addEarcon()method,839addFrame()method,496addIntentOptionsmethodMenuclass,236MenuBuilderclass,237addMovementmethod,857addPart()method,312addPreferencesFromResource()method,267,276addRegularMenuItemsfunction,225Addressclass,15addressContainer,149addSpeech()method,837,839addSubMenumethod,231ADP(AndroidDeveloperPhone),997–998ADT(AndroidDevelopmentTools)Eclipseplug-in,8,92settingupenvironments,26–29ADTplug-in,Eclipse,8AdvancedRISCMachine(ARM),9advancedUI(UserInterface)concepts,11–13AGC(AutoGainControl),600agg_exceptionstable,988–989aggregatedcontacts,968–977AggregatedContactclass,970AggregatedFunctionTester,971aggregation,controlling,988–989AIDL(AndroidInterfaceDefinitionLanguage)definingserviceinterfacein,347–349implementinginterfacein,349–351services,346AIDL-supportingservice.
SeeremoteservicesAlarmClockapplication,751–752alarmmanager,465–489cancellingalarm,479–480intentprimacyinsettingoffalarms,484–487multiplealarms,480–484persistenceofalarms,487predicates,487–489repeatingalarm,476–479Index1143simplealarm,465–476obtainingalarmmanager,466PendingIntentclasssuitableforalarm,467–468receiverforalarm,467settingalarm,468testproject,468–476timeforalarm,466–467AlarmManagerclass,726alarmvalue,280AlarmClockapplication,18AlarmManagerclass,721alert-dialogbuilder,settingupwithuserview,248alertdialogs,244–246alertfunction,244AlertBuilderclass,1050AlertBuilderframework,1061AlertDialogbuilderclass,264AlertDialogFragmentdialogfragment,1061–1062AlertDialogFragment.
javafile,1050Alerts.
showPrompt()method,252aliasargument,289–290Alloption,1010allvalue,280AllContactsLiveFolderCreatorActivity.
javafile,700–703ALongRunningNonStickyBroadcastServiceclass,445–446,460ALongRunningNonStickyBroadcastService.
javafile,462ALongRunningReceiverclass,448ALongRunningReceiver.
javafile,460,462alphaanimation,498AlphaAnimationclass,17alphabeticShortcuttag,242ALTERNATIVEactivity,135alternativemenus,234–238Alwaysusemysettingsoption,826AMR(AdaptiveMulti-Rate),600AnalogClockcontrol,169AnalogClockview,718AnalogClockwidget,17Android2.
0,5Android2.
3,5Android3.
0,5AndroidAssetPackagingTool(AAPT),42,70.
android\AVDfolder,38android/AVDfolder,39Androidcomputingplatform,overview,1–3AndroidContentGuidelines,1010androidcreateavdcommand,39Androidcursors,100,694AndroidDDMSnode,27AndroidDebugBridge(adb)command,55,576AndroidDeveloperPhone(ADP),997–998AndroidDevelopmentTools.
SeeADTAndroidemulator,8–9androidfile,37–38Androidfortablets,5Androidfoundationalcomponents,10–11Androidhomepage,695,1070,1082,1088–1089,1092,1103,1122–1123AndroidInc.
,4AndroidInterfaceDefinitionLanguage.
SeeAIDLAndroidJavaAPI'smainlibraries,8AndroidJavapackages,14–18android\:launchMode,345androidlisttargetcommand,39AndroidLiveFolderframework,707Androidmanifesteditortool,Eclipse,297AndroidMarketbecomingpublisher,994–1001DeveloperDistributionAgreement,994directingusersbackto,1005–1006mirrorsitesof,1012PaymentProcessor,995preparingapplicationsforsale,1001uploadingapplications,1007–1010userexperience,1010–1012Androidmediaandtelephonycomponents,13–14android\:onClickattribute,343AndroidOSversion1.
6,5android\:pathattribute,304android/:pathPrefix,304android\:permissionattribute,305Androidplatform,3AndroidProjectoption,42,422android\:readPermissionattribute,305AndroidSDKadvancedUIconcepts,11–13Androidemulator,8–9Androidfoundationalcomponents,10–11AndroidJavapackages,14–18Androidmediaandtelephonycomponents,13–14Androidservicecomponents,13AndroidUI,9ReleaseCandidate1.
0,5settingupenvironments,23–26forsmartphones,5updatingPATHenvironmentvariable,25–26AndroidSDK/platforms//data/res/values/folder,197Androidservicecomponents,13Androidsettingspage,754AndroidSmsMessageobject,565android\:srcproperty,159android\:textattribute,151AndroidUI(UserInterface),9AndroidURIs(UniformResourceIdentifiers),14AndroidUser'sGuide,944Androidviews,694AndroidVirtualDevice(AVD),30–39,92,576,1001android\:writePermissionattribute,305android:apiKeyattribute,MapViewcontrol,524Index1144android:apiKeyproperty,522android.
apppackage,14,1017android.
app.
Activityclass,298,522,541android.
app.
AlertDialog.
Builderclass,244android.
app.
Applicationclass,53,318android.
app.
ListActivity,175android.
app.
Service,338android.
appwidget.
provider,725android.
batprogram,39android.
bluetoothpackage,14android:bottomPaddingproperty,205android:clickable="true"attribute,526android:collapseColumnsproperty,204android.
contentpackage,14android.
content.
BroadcastReceiver,563android.
content.
ContentProviderinterface,16,108android.
content.
ContentResolver,106android.
content.
ContentValuesclass,106android.
content.
pmpackage,14android.
content.
respackage,14android.
databasepackage,14–15android.
database.
sqlitepackage,15,105android:defaultValueattribute,268android:descriptionattribute,300android:dialogTitleattribute,268android:drawabletag,496android:entriesattribute,268android:entryValuesattribute,268android.
gesturepackage,15android:gestureStrokeType,888android.
graphicspackage,15android.
graphics.
drawablepackage,15android.
graphics.
drawable.
shapespackage,15android:gravityattribute,200–201android:gravityversusandroid:layout_gravity,201–202android.
hardwarepackage,15android:hintattribute,774AndroidHttpClientclass,319–320android:iconattribute,300,1002android.
intent.
action.
CREATE_LIVE_FOLDERintent,701android.
intent.
action.
MAINaction,44android.
intent.
category.
DEFAULT,139android.
intent.
extra.
EMAIL,132android.
intent.
extra.
SUBJECT,132android.
jarfile,18–19android.
jarsourcefiles,19android:keyattribute,268android:labelattribute,300,774android:layout_alignParentBottomproperty,207android:layout_alignParentTopproperty,207android:layoutAnimationtag,504android:layout_belowproperty,207android:layout_gravityattribute,201android:layout_gravityversusandroid:gravity,201–202android:layout_heightattribute,204android:layout_marginproperty,205android:layout_weightattribute,200android:leftPaddingproperty,205android.
locationpackage,15,533,541android.
location.
Geocoderclass,534AndroidManfiest.
xmlfileAndroid3.
0,1121–1122exploringActionBar,1072,1085listnavigation,1087andlivefolders,700–702NotesListactivity,45preparingforuploading,1002–1003standardnavigation,1090,1092tweaking,228–229vs.
web.
xmlfile,30android.
mediapackage,15,575android.
media.
MediaPlayerclass,575android.
media.
MediaRecorderclass,596android:nameattribute,300android.
netpackage,15android.
net.
wifipackage,16android.
nfcpackage,931android.
openglpackage,16,638,690android:orderingattribute,1067android.
ospackage,16android.
os.
Bundleclass,131android.
os.
Debugclass,55android.
os.
Handlerclass,540android.
os.
Parcelableinterface,131,355android.
os.
Parcelable.
Creatorinterface,357android:paddingproperty,204–205android:permissionattribute,299,305android.
permission.
ACCESS_COARSE_LOCATION,296android.
permission.
ACCESS_COARSE_LOCATIONpermission,542android.
permission.
ACCESS_FINE_LOCATION,296android.
permission.
BATTERY_STATS,296android.
permission.
BLUETOOTH,296android.
permission.
CALL_PHONEpermission,571android.
permission.
CAMERApermission,296,613android:permissionGroupattribute,300android.
permission.
INTERNETpermission,296,574,584,594android.
permission.
READ_CALENDAR,296android.
permission.
READ_CONTACTS,296android.
permission.
READ_PHONE_STATEpermission,570android.
permission.
READ_SMSpermission,565android.
permission.
RECEIVE_SMSpermission,563android.
permission.
RECORD_AUDIOpermission,296,600,613android.
permission.
USE_SIP,574Index1145android.
permission.
WRITE_CALENDAR,296android.
permission.
WRITE_CONTACTS,296android.
permission.
WRITE_EXTERNAL_STORAGE,837android.
permission.
WRITE_EXTERNAL_STORAGE,permission,613android.
preferencepackage,16android.
preference.
PreferenceActivityclass,267android:propertyNameattribute,1066android:protectionLevelattribute,300android.
providerpackage,16android.
provider.
Contacts.
PeopleColumnsclass,102android.
provider.
LiveFoldersclass,702android.
providers.
Contactspackage,102android.
provider.
Telephony.
SMS_RECEIVEDaction,563android.
R.
colornamespace,76android:requiredattribute,1003android:resourcenode,725android.
R.
id.
home,1071android:rightPaddingproperty,205android.
saxpackage,16android:scaleTypeattribute,880android:screenOrientation="landscape"attribute,606android:shrinkColumnsproperty,204android.
speechpackage,16android.
speech.
ttspackage,16android:srcattribute,880android:srcproperty,159android:stretchColumnsproperty,204android:summaryattribute,268android.
telephonypackage,16android.
telephony.
cdmapackage,17android.
telephony.
gsmpackage,17android.
telephony.
SmsManagerclass,559android.
telephony.
TelephonyManagermanager,568android:textattribute,160android.
textpackage,17android.
text.
methodpackage,17android:textOffproperty,160android:textOnproperty,160android.
text.
stylepackage,17android.
text.
util.
Linkifyclass,154android:titleattribute,268android:topPaddingproperty,205android.
util.
Logclass,54android.
utilspackage,17android:valueFromattribute,1066android:valueToattribute,1066android:valueTypeattribute,1066android.
viewpackage,17android.
view.
animationpackage,17,499android.
view.
animation.
Animationclass,511android.
view.
inputmethodpackage,17android.
view.
LayoutInflaterclass,248android.
view.
Menuclass,217,220android.
view.
MenuInflaterclass,239android.
view.
MenuItem,217android.
view.
SubMenu,217android.
view.
Viewclass,145,233android.
view.
ViewGroupclass,145android.
webkitpackage,17android.
widgetpackage,17android.
widget.
AdapterView,170android.
widget.
Buttonclass,157android.
widget.
CheckBox,160android.
widget.
ListAdapter,183android.
widget.
RadioButton,162android.
widget.
RadioGroup,162android.
widget.
VideoViewcontrol,593android.
widget.
View,203android.
widget.
ViewGroup,171,199anim/accelerate_interpolator,506animdirectory,41,70animate()method,497AnimatedSimpleTriangleRendererclass,652–653animateListView()method,510animateListViewmethod,516Animationclass,17,515animation-listtag,496AnimationDrawableclass,494–496AnimationListenerclass,515–516animations2Dframe-by-frame,492–497addingtoactivity,494–497creatingactivity,493–494planningfor,492–4932Dlayout,498–507animatingListView,502–505creatingactivityandListView,500–502interpolators,506–507planningtestharness,499typesof,498–4992Dview,507–516addinganimationtoListView,511–514AnimationListenerclass,515–516overview,507–510providingdepthperceptionwithcamera,514–515transformationmatrices,516custom,withObjectAnimatorclass,1064–1067FragmentTransactionobjects,1034–1035frame-by-frame,11tweening,11,17AnimatorSetclass,1067ANR(ApplicationNotResponding),399,425apache-httplibraries,18ApacheHttpClient,307–309ApacheLicense,Version2.
0,4apkfiles,292,575,585–586,722,874,1002,1007,1012aPositionvariable,683appendText()method,412Index1146Applicationclass,14,58,318applicationelement,428Applicationmodel,14applicationnode,725ApplicationNotResponding(ANR),399,425applicationpreferences,265application-specificsearchcontext,821–822tag,55,59,1002applicationDataBundleargument,822ApplicationInfoobject,59applicationsdemoversionsof,995distributing,viaothermethods,1012–1013distributionof,1010labelsfor,1004licensingservicefor,1006–1007localizing,1003–1004paid,considerationsfor,1004–1005preparingforsale,1001preparingiconsfor,1004reinstallsof,996screenshotsfor,1008sellingthroughAndroidMarket,997textualinformationfor,1008updatingandsigning,294uploading,1007–1010viewing,1011applyTransformationmethod,511appSearchDataargument,769APPWIDGET_CONFIGUREaction,725AppWidgetManagerclass,719,721–722,740AppWidgetProviderclass,717,719–721,723AppWidgetProviderInfoclass,718APrefWidgetModelclass,732APrefWidgetModelfile,723arbitraryXMLresourcefiles,80–81architectureofcontentproviders,96–108ArcShape,15areDefaultsEnforced()method,842arguments,forearcon,839ARM(AdvancedRISCMachine),9arrayindexvalues,271ArrayAdapter,172–174,1086ArrayAdapter.
createFromResource()method,187ArrayAdapteradapter,174ArrayListvariable,841arrays,string,73AssetFileDescriptor,586AssetManagerclass,14,82assetsfolder,40–41,82,575Associatebutton,834,837asterisk(*)symbol,138AsyncPlayer,591–592AsyncTaskclassandconfigurationchanges,327–331overview,320–326attachToRootparameter,1021,1058attrs.
xmlfile,1126,1135audibleicon.
SeeearconsaudiofilesforTTSAPIs,832–838playingcontent,581–585recordingwithAudioRecord,600–604overview,596requiredpermissionfor,296usingintent,615–618settingstreamswithTTSAPIs,839audioBufferSampleSize,603audioBufferSize,603AudioManagerclass,15AudioManager.
STREAM_MUSICvalue,590AUDIO_PATHvariable,586,595AudioRecordclass,592AudioTrackclass,592authority,96AutoGainControl(AGC),600AutoCompleteTextViewcontrol,155–156autoPause()method,590–591autoResume()method,590autoTextproperty,154AVD(AndroidVirtualDevice),30–39,92,576,1001AWT(AbstractWindowToolkit),JavaSE,2awt.
fontpackage,18BBackbutton,700,1016,1082backstacks,fragment,1032–1035backgroundthreads,geocodingwith,538–540BackgroundService,339,346baseclasses,tabbednavigation,1073–1075BaseActionBarActivityclasslistnavigation,1087standardnavigation,1091–1092BaseActionBarActivityjavafile,1072–1085,1090BaseAdapterclass,188BaseColumnsclass,110BaseListenerjavafile,1072–1086BaseTester.
javafile,960–962BasicResponseHandlerobject,317–318BasicViewActivityclass,126,133batteryinformation,requiredpermissionfor,296BatteryManagerclass,16BCRs(broadcastreceivers)accommodatingmultiple,431–433codingsimple,samplecode,426–427compilingcode,461–463extendingIntentServiceimplementationfor,445–455abstractingwakelockswithLightedGreenRoomabstraction,449–455broadcastserviceabstractions,445–447long-runningreceivers,447–449notificationsfrom,434–440Index1147monitoringthroughnotificationmanager,435–437sending,437–440out-of-process,projectfor,433–434protocol,441–442references,464registeringinmanifestfile,427–428sendingbroadcasts,426–431bdayfield,735BDayAppWidgetProvider,724BDayWidgetModelclass,729–730,738BDayWidgetModelfile,723BDayWidgetProviderclass,717,731BDayWidgetProviderfile,723BeginRecordingbutton,610beginRecording()method,599,612Bellard,Fabrice,8BerkeleySoftwareDistribution(BSD),7BetterCursorWrapperclass,708–709BetterCursorWrapper.
javafile,700,708–709bind()method,346Binderclass,16bindService()method,30,352,354birthdaywidget,714–716Bitmapclass,15,323BitmapDrawableclass,80Bluetooth,requiredpermissionfor,296BluetoothAdapterclass,14BluetoothClassclass,14BluetoothDeviceclass,14BluetoothServerSocketclass,14BluetoothSocketclass,14BookProvidercontentprovider,118–119BookProviderMetaDataclass,109–110BookTableMetaDataclass,110,116BooleanButtonclass,849,854Bornstein,Dan,6BounceInterpolator,507boundCenter()method,532boundCenterBottom()method,532boundingbox,629boundingvolume,629box1.
xmlfile,727,1103broadcastmenuitem,431,434broadcastreceivers.
SeeBCRsBroadcastReceiverclass,427,562–565,842BROWSABLEactivity,135Browserapplication,16,18BSD(BerkeleySoftwareDistribution),7build()method,58Builderclass,58,244,247built-incontentproviders,90–95BundleAPIreference,821bundleobject,823Buttonclass,158,846,848Buttoncontrols,157–165Button,157–158CheckBox,160–162ImageButton,158–159RadioButton,162–165ToggleButton,159–160Buttontag,343Buttonview,718,855Buttonwidget,17buttons,settingupforpromptdialog,248CC\:\androiddirectory,23c\:\android\release\myappraw.
apkfile,292c\:\avd\folder,38ccommand,38C\:\eclipsefolder,23Cruntimelibrary(libc),7CacheManagerclass,17calcArraysmethod,664,669calcTextureArraysmethod,669Calculatorapplication,18Calendarapplication,18CalendarProviderproject,19CALLaction,129callvalue,820callbacks,handleMessagemethod,408call_column,821callService()method,364CALL_STATE_RINGINGstate,570CAMCORDERaudiosource,599camcorderprofiles,613–614Cameraapplication,18Cameraclass,12,15,515,624Cameradirectory,579Camera.
getCameraInfo()method,614camera.
getMatrix()method,515Camera.
getNumberOfCameras()method,614camera.
rotateYmethod,515camerasandCoordinatesglFrustumandviewingvolume,636–637gluLookAtandcamerasymbolism,634–635glViewportandscreensize,637providingdepthperceptionfor2Dviewanimation,514–515requiredpermissionfor,296cancel()method,246,1048cancelAll()method,342Canvasclass,15captureImage()method,618CATEGORY_ALTERNATIVEcategory,135,235CATEGORY_BROWSABLEcategory,135CATEGORY_DEFAULTcategory,135CATEGORY_EMBEDcategory,135CATEGORY_GADGETcategory,134–135CATEGORY_HOMEcategory,134–135CATEGORY_LAUNCHERcategory,134–136CATEGORY_PREFERENCEcategory,135CATEGORY_SAMPLE_CODEcategory,135Index1148CATEGORY_SELECTED_ALTERNATIVEcategory,135CATEGORY_TABcategory,135CATEGORY_TESTcategory,135CellLocationclass,16certificates,self-signed,288–291CHANNEL*values,603check-boxwidget,275CheckforUpdatesoption,Eclipse,27checkablebehaviortags,241CheckBoxcontrol,160–162Checkboxwidget,17CheckBoxPreferenceclass,16,275–277CheckBoxPreferenceview,275checkedtag,241Checkout,Google,994–995,999,1009,1011CHECK_VOICE_DATA_PASSintent,829–830chkbox.
xmlfile,276CHOICE_MODE_MULTIPLEmode,181ChooseFlightOptionsview,267chowncommand,383Chronometercontrol,194Chronometerview,718Chronometerwidget,17ClassCastException,1057ClassNotFoundException,59Cleanoption,Eclipse,43clear()method,859clearAllData()method,730clearAllPreferences()method,729–730clearCheck()method,164ClickReceiverclass,874–875ClickReceiveroverlay,877ClickReceiver.
javafile,872clientapplications,callingservicesfrom,351–355ClientManifestFile,302ClientConnectionManager,317ClientCustPermMainActivityclass,302client.
execute()method,309Closebutton,1060Closeableobject,58cloud-computingmodel,5Cochran,WayneO.
,690Colorclass,15ColorDrawablesresources,72,79–80colorresources,76colored-ballNpattern,493colors,localizing,1003Colorsresource,71Columnsinterface,102com.
androidbook.
bcrpackage,462com.
androidbook.
handlerspackage,422com.
androidbook.
hellopackagename,32com.
androidbook.
intents.
testbcaction,427com.
androidbook.
provider.
BookProvider,110com.
androidbook.
salbcrpackage,463com.
androidbook.
samplepackage1package,384com.
androidbook.
stockquoteclient,351com.
android.
browserpackage,379com.
cust.
permpackage,302com.
cust.
perm.
PrivActivity,302com.
google.
android.
mapspackage,17,519commacharacter,831command-linetools,8CommaTokenizer,156commit()method,285,734,1035CommonDataKindsclasses,956CommonDataKinds.
Emailclass,952CommonsIOwebsite,311commons-langJARfile,375communications,betweenfragments,1063–1064CompassSensorapplication,914compiledresources,70compilingcode,instructionsfor,421–422complextypes,passingtoservices,355–366componentsAndroid,10–11,13–14directlyinvokingactivitieswith,133lifetimesof,418–421activities,418–419providers,421receivers,420–421services,420rulesforresolvingintentsto,137–139andthreading,399–403contentproviders,401externalservicecomponents,401mainthread,400–401threadpools,401threadutilities,401,403computeCurrentVelocitymethod,858computingplatform,Android,1–3com.
syhpackage,357configurationactivityclass,726configurationqualifiers,84configureattribute,726ConfigureBDayWidgetActivityactivity,719,724ConfigureBDayWidgetActivityclass,738ConfigureBDayWidgetActivity.
javafile,724ConnectivityManagerclass,15consoles,Eclipse,814constantintent.
ACTION_SEARCH,786constructors,RemoteViewsFactoryinterface,1107contacttablefield,988ContactDatastructure,988ContactDataFunctionTester,982,984ContactData.
javafile,982Contact_entities_view,984ContactFunctionTester.
javafile,983contact_idcolumn,981contact_idfield,954contactsaggregatedcontacts,956–958contact_entities_viewview,959datatables,955–956Index1149editing,699live-folder,698rawcontacts,953–955view_contactsview,958–959contactsAPI,937–991accounts,938–943,960–968driveractivityclasses,963–966enumerating,943functiontester-relatedfiles,961–962menufile,961relevancetocontacts,942–943runningprogram,966–968screens,938–942contacts,952–959addingwithdetails,985–988aggregated,956–958,968–977contact_entities_viewview,959datatable,955–956examiningcontentsSQLitedatabase,952–953raw,953–955,977–982view_contactsview,958–959contactsapplication,944–952contactdatatypes,951–952editcontactscreen,946–948exportingcontacts,949–951photosettingscreen,948–949showcontactdetailscreen,945showcontactsscreen,944controllingaggregation,988–989impactsofsyncing,989–991Contactsapplication,18Contactscontentprovider,693,707ContactsLFfolder,698,700ContactsLFicon,698,709Contactsprovider,100contacts2.
db,952ContactsContract.
AggregationExceptionsclass,989ContactsContract.
CommonDataKinds,956ContactsContract.
Contacts.
CONTENT_URI,976ContactsContract.
Data,955ContactsContract.
RawContactclass,954ContactsContract.
RawContacts.
RawContactsEntityclass,959contacts.
dbdatabase,102contacts.
dbfile,94,952Contacts.
People.
CONTENT_URI,101ContactsProviderproject,19containers,descriptionof,146ContentGuidelines,Android,1010contentprovidersaddingfilesto,107architectureof,96–108built-in,90–95conceptof,10,694cursor,102–104databasesonemulatorandavailabledevices,91–95deletesfrom,108extendingContentProvider,110–111fulfillingMIME-Typecontracts,116implementingdeletemethod,117implementinginsertmethod,116–117implementingquerymethod,116implementingupdatemethod,117insertingrecordsin,106–107planningdatabase,109–110readingdatawithURIs,100–102registering,119–123settingupdevelopmentenvironment,30SQLiteprimer,95structureofMIMEtypes,98–100structureofURIs,97–98updatesof,108usingprojectionmaps,119usingUriMatchertofigureoutURIs,117–118whereclauses,104–106explicit,105–106passingthroughURIs,104–105(content\://sms/inbox),566content\://sms/sent,567ContentProviderclass,49–50,108,110–111ContentResolverobject,106–108,707,710contentsSQLitedatabase,952–953CONTENT_URI,46ContentValuesargument,108ContentValuesclass,106,618ContentValuesdictionary,106Contextclass,425,586contextmenus,231–233populating,233–234registeringviewfor,233respondingtoitemson,234context.
getSharedPreferences()method,734CONTEXT_IGNORE_SECURITYflag,384CONTEXT_INCLUDE_CODEflag,384ContextMenuclass,231–233ContextMenuInfoclass,233–234Context.
NOTIFICATION_SERVICEservice,438CONTEXT_RESTRICTEDflag,384Context.
startService()method,338–339,346context.
startService(newIntent(MyService.
class))method,443Context.
stopService()method,339controls,152–198buttons,157–165Button,157–158CheckBox,160–162ImageButton,158–159RadioButton,162–165ToggleButton,159–160dateandtimeAnalogClock,169DatePicker,167–168DigitalClock,169TimePicker,167–168Index1150descriptionof,146Gallery,187–188GridViewcontrol,183–185ImageViewcontrol,165–166MapView,169–170Spinner,185–187text,152–157AutoCompleteTextView,155–156EditText,154–155MultiAutoCompleteTextView,156–157TextView,153–154convertViewvalue,193CookieManagerclass,17Copyprojectsintoworkspaceoption,Eclipse,421,461CountDownTimerclass,194createavdcommand,38create()method,585Createnewprojectinworkspaceoption,422Createprojectfromexistingsampleoption,Eclipse,882createstatement,95createAlertDialog()method,254createFromResource()method,173createHttpClient()method,ApplicationEx,317createItemmethod,531CREATE_LIVE_FOLDERintent,701createLiveFoldermethod,703createPackageContext()API,383createScaledBitmap()method,193Criteriaobject,543CrossProcessCursor,708cryptopackage,18crypto.
specpackage,18CupcakeMaps.
inifile,39Cursorinterface,14cursorobject,97,337,751CursorAdapteradapter,174cursors,100,102–104,693–694,700,707cursor.
setNotificationUri,707CursorWrapperclass,181,708customgestures,881custommethod,854customsuggestionproviders,796–818manifestfile,813–814planning,796searchmetadata,804–805SuggestURLProviderclass,797–807SuggestURLProviderprojectimplementationfiles,796–797userexperience,814–818CustomHttpClientclass,317,323CustPermMainActivity,298DDalvikDebugMonitorService(DDMS),577,1008DalvikExecutable(.
dex)file,6DalvikVM(VirtualMachine),6–8_datacolumn,107/datadirectory,271,586dataelement,130_datafield,107dataportion,ofintents,129/data/res/animdirectory,1034/data/res/animatordirectory,1034,1066/data/res/interpolatordirectory,1066databasemodesforSearchRecentSuggestionsProvider,781–783DatabaseHelperclass,50DATABASE_MODE_2LINES,782DATABASE_MODE_QUERIES,782–783databases,planning,109–110data.
getData()method,616dateandtimecontrolsAnalogClock,169DatePicker,167–168DigitalClock,169TimePicker,167–168date-relatedutilities,737–738DatePickercontrol,167–168DatePickerwidget,17DatePickerDialog,264DCIMdirectory,579DDMS(DalvikDebugMonitorService),577,1008DDMSnode,Android,27dealWithThisAction()method,1112–1113DebugBridge(adb)command,Android,55,576debuglog,793debugtextviewlayout,scrollable,1080–1081DebugActivityjavafile,960,963–964,1072–1073,1077–1081debug_activity_layout.
xmlfile,960,963DebugActvity.
javafile,963debuggingapplications,54–62usingToastobjects,263debug_layout_activity.
javafile,964Debug.
startMethodTracing()method,55DebugUtilsclass,17declaringmenus,11DEFAULTactivity,135DEFAULTcategory,139,1043DefaultHttpClient()method,315,317defaultValueattribute,267DeferWorkHandlerclass,408,412–413,417DeferWorkHandlerhandler,405,407–408deletemethod,108,110,117deletingfromcontentproviders,108widgetinstances,722demoversions,distributing,995density-independentpixels,206describeEvent()method,868DESCRIPTIONfield,706Index1151DESCRIPTIONvalue,618designingwidgets,743DetailsFragmentclass,1028,1030–1031,1042details.
xmlfile,1031–1032detectAll()method,58,60detectDiskReads()method,60detectingsensors,892(detectOpenGLES20)function,679DeveloperAccount,994DeveloperCompositeScore,997,1009DeveloperConsole,994,997–1001,1007developername,1006DevelopmentToolsnode,Android,27Deviceview,1008Devicesscreen,HierarchyViewer,214devices,testing,1001.
dex(DalvikExecutable)file,6dialogfragments,1044–1063DialogFragmentclass,1045–1049constructing,1045–1047dismissing,1048–1049displaying,1047sampleapplicationAlertDialogFragmentdialogfragment,1061–1062HelpDialogFragmentdialogfragment,1058–1061MainLayoutmain.
xmlapplication,1062–1063MainActivityclass,1051–1053OnDialogDoneListenerinterface,1053–1054PromptDialogFragmentdialogfragment,1054–1058Dialogobject,264dialog1.
getValue1()method,255dialog1.
show()method,255dialogFinished()method,255,259,262DialogFragmentclass,1045–1049constructing,1045–1047overridingonCreateDialogmethod,1046–1047overridingonCreateViewmethod,1046dismissing,1048–1049displaying,1047DialogInterface,246DialogRegistryclass,259dialogs,243alert,244–246natureofinAndroid,251–252prompt,246–251creatingandshowing,249PromptListenerclass,249rearchitecting,252settingupalert-dialogbuilderwithuserview,248settingupbuttonsandlisteners,248XMLlayoutfilefor,247recastingasmanageddialogs,253–255dialog.
show()method,244dialogTitleattribute,267dictionary,free,816DigitalCameraImagesdirectory,579digitalcertificates,288DigitalClockcontrol,169DigitalClockwidget,17Dimensionsresource,71,77DIRECTORY_ALARMSdirectory,579DIRECTORY_DCIMdirectory,579DIRECTORY_DOWNLOADSdirectory,579DIRECTORY_MOVIESdirectory,579DIRECTORY_MUSICdirectory,580DIRECTORY_NOTIFICATIONSdirectory,580DIRECTORY_PICTURESdirectory,580DIRECTORY_PODCASTSdirectory,580DIRECTORY_RINGTONESdirectory,580disabledoption,957disablingsearchactivity,766–767Dismissbutton,1058dismiss()method,246,1048–1049,1058displayorientation,andaccelerometers,910Display.
getOrientation()method,910Display.
getRotation()method,910display_namefield,954displayNotificationMessage()method,341distanceBetween()method,543distanceTo()method,543divideMessage()method,563doClick()method,325,334,344,540,599doDeferredWork()method,405doInBackground()method,323–324,326Doneoption,882doSearchQuery()method,786,810–811doShow()method,921doSpeak()method,831Dotclass,859Dotelement,859Dotview,862Dot.
javafile,1126doUpdate()method,920doView()function,810doView()method,810,812downloadImage()method,323,331DownloadImageTaskclass,323,326,328DownloadManagerclass,331–337DownloadManager.
Queryobject,337DownloadManager.
Requestobject,334,336DownloadProviderproject,19DOWNLOAD_SERVICEservice,334draganddrop,859–862DragandDropAPI,sampleapplication,1124–1137dragsourceviews,1132–1137layingout,1126–1129listoffiles,1125–1126overview,1124–1125respondingtoonDrag()callbackmethodindropzone,1129–1132Index1152testing,1137–1139dragsourceviews,1132–1137DragShadowBuilderbehavior,1136Draw9-patchtool,79draw()method,532,624,639–640,665,674,676,861,1136drawable\box1.
xmlfile,1114Drawableclass,166,494–496,532drawabledirectory,41,70value,72drawingwithOpenGLES,628–633withtextures,672–673driveractivityclasses,963–966DebugActivity.
java,963–964debug_layout_activity.
javafile,964manifestfile,966TestContactsDriverActivity.
java,965driverclasses,examples,413–418activityfile,414,416layoutfile,417manifestfile,417–418menufile,417DrmProviderproject,19dropzone,respondingtoonDrag()callbackmethodin,1129–1132DropZoneclass,1132DropZone.
javafile,1126dropzone.
xmlfile,1126dump()method,1036dynamicmenus,238Ee-mail,SMS(ShortMessageService),567–568earcons,839–840clair,873Eclipse3.
5,settingupenvironments,23EclipseADTplug-in,8Eclipseconsole,814EclipseFileExplorertool,577,950edgeflags,853editcontactscreen,contactsAPI,946–948editingcontacts,699EditTextcontrol,154–155,205EditTextfield,156,537,561EditTextview,829,837EditTextwidget,17EditTextPreferenceview,275,277–278EGLNativePlatformGraphicsInterface,625Elementclass,16ElementListenerinterface,16Emailapplication,18emo_im_happy.
pngimagefile,360emo_im_winkingdrawable,342EmptyOnClickListener,254emulator,8–9,36–37,43enableDebugLogging()method,1036enableDefaults()method,59–60enablingNFC(NearFieldCommunication)sensors,925EndUserLicenseAgreement(EULA),997,1008enqueue()method,334entriesattribute,267entryValuesattribute,267enumeratingaccounts,contactsAPI,943Environmentmethod,579EnvironmentVariableswindow,23,25Environment.
getExternalStorageDirectory()method,579Environment.
getExternalStoragePublicDirectory(Stringtype),580environments,settingupADT,26–29AndroidSDK,23–26Eclipse3.
5,23JDK6,22–23ErrorTextstyle,196ErrorText.
Dangerstyle,197ES20SimpleTriangleRendererclass,679EULA(EndUserLicenseAgreement),997,1008exceptions,consumingHTTPservices,313–315execute()method,310,314,318,325–326executeHttpGet()method,315executeHttpGetWithRetry()method,315ExistingProjectsintoWorkspaceoption,Eclipse,421ExpandableContextMenuInfoclass,234expandedmenus,229explicitclassname,129explicitintent,129,137explicitwhereclauses,105–106exportingcontacts,contactsAPI,949–951extendingContentProvider,110–111ExtensibleMarkupLanguage.
SeeXMLextensionsforwidgets,742–743externalservicecomponents,401EXTRA_BCC,568EXTRA_CC,568EXTRA_EMAILkey,132extrasattribute,131EXTRA_SUBJECTkey,132eyepoint,634Ffdatatype,628FaceDetectorclass,15fade_inanimator,1065fade_in.
xmlfile,1066FadeOffsetvalue,885,888fade_outanimator,1065fade_out.
xmlfile,1066fakewords,838falseBtnBottomobject,856falseBtnTop,855Index1153FalseButtonclass,848–849,854falseLayoutBottomobject,856–857farpoint,636FileCopyfeature,885FileExplorertab,577FileExplorertool,Eclipse,577,950File/Importmenu,Eclipse,461Fileobject,579–580FileDescriptor,585–586FileObserverclass,16files.
apk,1007addingtocontentproviders,107customsuggestionprovidermanifest,813–814widgetbackgroundshape,727–728widgetlayout,726–727widgetlayout-related,726–728FILL_PARENTconstant,vs.
MATCH_PARENTconstant,152fillWindowmethod,709findcommand,94findFragmentById()method,1032,1036findFragmentByTag()method,1036findLocation()method,540findPreference()method,283findViewById()method,67,151,284finish()method,812,1042flag_update_currentflag,1111flight-optionspreference,266–267flightoptions.
xmlfile,274FlightPreferenceActivityclass,267,273flight_sort_option_default_valuestring,272flight_sort_options,274floats,874Foldersoption,696folders,SMS(ShortMessageService),565–567forloop,navigatingthroughcursorsusing,103foundationalcomponentsofAndroid,10–11Fragmentclass,1015,1020,1025,1044–1045tag,1020,1025,1033,1037–1041FragmentManagerclass,1035–1044invokingseparateactivities,1041–1043ListFragmentclassandtag,1037–1041persistenceoffragments,1044referencingfragments,1037fragmentsfortablets,1015–1068communicationsbetween,1063–1064customanimationswithObjectAnimatorclass,1064–1067dialog,1044–1063DialogFragmentclass,1045–1049sampleapplication,1050–1063fragmentbackstacks,1032–1035FragmentManagerclass,1035–1044invokingseparateactivities,1041–1043ListFragmentclassandtag,1037–1041persistenceoffragments,1044referencingfragments,1037FragmentTransactionobjects,1032–1035lifecycle,1018–1023onActivityCreated()callback,1022onAttach()callback,1020onCreate()callback,1020–1021onCreateView()callback,1021onDestroy()callback,1023onDestroyView()callback,1023onDetach()callback,1023onInflate()callback,1020onPause()callback,1022onResume()callback,1022onStart()callback,1022onStop()callback,1022samplefragmentappshowing,1024–1032setRetainInstance()method,1023references,1067–1068structureof,1017–1018whentouse,1016–1017FragmentTransactionclass,1032–1035,1065frame-by-frameanimation,2D,492–497addinganimationtoactivity,494–497creatingactivity,493–494planningfor,492–493frame_animation.
xmlfile,496FrameLayout,208–209FrameLayoutlayoutmanager,198FrameLayoutview,718FrameLayoutwidget,17frameworks/basedirectory,18–19freedictionary,816FreeTypelibrary,7fromparameter,172fromPixels()method,872fromRawResource()method,888frustum,625,629,636functiontester-relatedfiles,961–962AccountsFunctionTester.
java,962BaseTester.
java,961–962IReportBack.
java,961fundamentalcomponents,29–30activities,29AndroidVirtualDevices,30AndroidManifest.
xml,30contentproviders,30intents,29–30services,30views,29GGADGETcategory,135Gallerycontrol,187–188geGeocoderclass,537General/ExistingProjectsintoWorkspacemenuitem,Eclipse,461Index1154genericactions,130–131GenericManagedAlertDialogclass,257,261GenericPromptDialogclass,257,262genkeyargument,289geofixcommand,558GeoCoderclass,15,520,533,540,874geocode.
xmlfile,538geocodingwithAndroid,534–537withbackgroundthreads,538–540GeomagneticFieldclass,922GeoPointclass,533,872,874Gestureclass,15gesturelibrary,883–884gesturepoints,883gesturestore,883gesturestrokes,883–884GestureDetectorclass,878–881GestureLibraries.
fromFile()method,887GestureLibraryclass,15GestureOverlayViewclass,15,888GesturePointclass,15gestures,874–889custom,881GestureDetectorclass,878–881andGesturesBuilderapp,882–889multi-touch,883pinchgesture,875–878GesturesBuilderapp,882–889GesturesBuildericon,882gesturesfile,885GestureStoreclass,15GestureStrokeclass,15getAccuracy()method,543getAction()method,851,863,868,870getActionbar()method,1079getActionIndex()method,871getActionMasked()method,871getACursor()method,970getAllProviders()method,542getAngleArraysmethod,663getArguments()method,1031getBoolean()method,277getBroadcast()method,556getCacheDir()method,586getCenter()method,533getCenterPt()method,533getCheckedItemIds()method,182–183getCheckedItemPositions()method,181getColumnValue()method,969getComponentName()method,236GET_CONTENTaction,141–142getContextViewInfo()method,233getCount()method,104,120,192,1108–1109getCurrentPosition()method,584,592getDefaultAdapter()method,925getDefaultEngine()method,840getDownTime()method,863getDrawable()method,531getDuration()method,592getEdgeFlags()method,853getEditText()method,278getEventsFromAnXMLFilefunction,81getExternalStorageDirectory()method,581getExternalStoragePublicDirectory()method,581getExtras,131getFilesDir()method,586getFragment()method,1036–1037getFragmentManager()method,1036getFromLocationName()method,534,537getHttpClient()method,318getInclination()method,920getIndexBuffermethod,664getIntent()method,Activityclass,235getInterpolationmethod,506getIntrinsicHeight()method,532getIntrinsicWidth()method,532getItemAtPosition()method,181getItemId()method,193,221,227,1109getItemViewType()method,192getLanguage()method,842getLastKnownLocation()method,542getLastNonConfigurationInstance()method,327–328getLatSpanE6()method,533getListView()method,1040getLoadingView()method,1108–1109getLonSpanE6()method,533getLRSClass()method,448–449getMinBufferSize()method,603getOrientation()method,915,920,922getPathSegments()method,116getPointerCount()method,863getPreferences(intmode)method,284getPrefname()method,731getPrefsToSave()method,731getPressure()method,863getProjection()method,872getPromptReply()method,251getProvider()method,542getProviders(booleanenabledOnly)method,542getProviders(Criteriacriteria,booleanenabledOnly)method,542getQuote()method,352,358getResources()method,77,586getResult()method,1138getRotationMatrix()method,915,920getSamples()method,603getSensorList()method,894getShownIndex()method,1030–1031getSize()method,863getString()method,273,275getSystemService()method,541getTag()method,1053getTargetFragment()method,1064getText()method,178,278Index1155getType()method,50,108,110,116,802getVertexBuffermethod,664getView()method,172–173,192–193getViewAt()method,1108–1111getViewAt(position)method,1109getViewTypeCount()method,192,1109getX()method,863–864,870getXMultiplierArraymethod,663getXVelocity()method,858getY()method,863getYMultiplierArraymethod,663getYVelocity()method,858Gitsystem,18–19glActiveTexturemethod,672glBindTexturemethod,671GL_CLAMPoption,672glClearmethod,632–633glColormethod,632–633glColor4fmethod,633GL_COLOR_BUFFER_BIT,GL_DEPTH_BUFFER_BIT,632glDrawmethod,674glDrawElements()method,628,630–632,676gl_FragColorvariable,684glFrustummethod,633,636,648glGenTexturesmethod,671GL_LINE_LOOP,631GL_LINES,631GL_LINE_STRIP,631globalsearchenablingsuggestionprovidersforinAndroid2.
2,754–756inAndroid2.
3,756–757overview,753overview,746QSB,771,793,814globalSearchargument,769globalSearchOnlyargument,822GL_POINTS,631GL_REPEAToption,672GL_STENCIL_BUFFER_BIT,632GLSurfaceViewclass,638,651,679GLSurfaceView.
Rendererinterface,638GLSurfaceView.
setEGLContextClientVersionfunction,679glTexCoordpointermethod,672glTexEnvmethod,672glTexParametermethod,672GL_TRIANGLE_FAN,631GL_TRIANGLES,631,655GL_TRIANGLE_STRIP,631gluLookAtmethod,633,635GLUtils.
texImage2Dmethod,672glVertexPointermethod,andspecifyingdrawingvertices,628–630glViewportmethod,634,637Googleobtainingmap-apikeyfrom,520–522searchingwith,817Googleaccount,994GoogleCheckout,994–995,999,1009,1011GoogleTranslateexample,usingservices,366–375GoogleContactsProviderproject,19GoogleSearchapplication,18GoogleSubscribedFeedsProviderproject,19GPSlocationinformation,requiredpermissionfor,296GPS_PROVIDER,552GPXfiles,547GradientDrawable,80tag,304graphicslibrary,12gravityandaccelerometers,910–913android:gravityversusandroid:layout_gravity,201–202inLinearLayout,199–201sensors,interpretingdatafrom,923GravityDemoapplication,911grep,19GridViewcontrol,183–185,191,498,693–694GridViewwidget,17gridviewcustom.
xmlfile,191GridViews,694grouptags,239,241guavajarfile,934gyroscopesensors,interpretingdatafrom,907–908HHan,Jeff,862handleBroadcastIntent()method,460handleMessage()method,403,405,408,412,422Handlerclass,16,407handlers,399–423compilingcodefor,421–422andcomponents,401constructingmessageobjects,407exampledriverclasses,413–418activityfile,414–416layoutfile,417manifestfile,417–418menufile,417examplethatdeferswork,405–406andholdingmainthread,404andlifetimes,418–421ofactivities,418–419ofproviders,421ofreceivers,420–421ofservices,420references,422–423respondingtohandleMessagemethodcallback,408Index1156sendingmessageobjectstoqueue,407–408andthreadingmainthread,400–401threadpools,401threadutilities,401–403usingtodeferworkonmainthread,405andworkerthreads,408–413communicatingbetweenmainthreadsand,410–412invokingfrommenu,409–410threadbehavior,412–413hasAccuracy()method,543_has_set_default_values.
xmlfile,274hasStableIds()method,183,1109HelloAndroidapplicationname,32HelloWorld!
application,31–37HelloActivityCreateActivityname,32HelloActivity.
javafile,33HelloAndroidproject,32–33helloworldmessage,431–432Helpbutton,1058Helpmenu,Eclipse,27HelpDialogFragmentdialogfragment,1058–1061HelpDialogFragment.
javafile,1050hide()method,1034HierarchyViewer,debuggingandoptimizinglayoutswith,213–216hierarchyviewer.
batfile,214history,ofAndroid,3–5Homebutton,1082HOMEcategory,136Homeicon,1071–1084HOMEkey,748homepage,Android,695,1070,1082,1088–1089,1092,1103,1122–1123homescreencontextmenu,713homescreenwidgetsdefinitionof,712lifecycleofwidget,716–722definitionphase,717–719deletingwidgetinstance,722instancecreationphase,719–720onUpdatephase,720–721uninstallingwidgetpackages,722widgetviewmouseclickeventcallbacksphase,722list-based,1097–1124remoteviews,1098–1113samplelistwidget,1114–1122samplewidgetapplication,722–742abstractimplementationofwidgetmodel,732–734date-relatedutilities,737–738definingwidgetprovider,724–725definingwidgetsize,725–726implementationofwidgetmodelforbirthdaywidget,735–737implementingwidgetconfigurationactivity,738–742implementingwidgetprovider,728–730interfaceforwidgetmodel,731–732widgetlayout-relatedfiles,726–728userexperience,713–716widgetlimitationsandextensions,742–743howManyDaysattribute,735hreadSafeClientConnManager,315HTMLViewerapplication,18HTTPGETrequests,HttpClient,308–310HTTPPOSTrequests,HttpClient,310–312HTTPservices,consumingexceptions,313–315multithreadingissues,315overview,307–308timeoutsfor,318–319usingAndroidHttpClient,319–320usingAsyncTask,320–331usingDownloadManager,331–337usingHttpClientforHTTPGETrequests,308–310usingHttpClientforHTTPPOSTrequests,310–312usingHttpURLConnection,319HttpClientHTTPGETrequests,308–310HTTPPOSTrequests,310–312HttpGetobject,318–319HttpMimewebsite,311HttpParamsobject,318HttpPostobject,318–319HttpURLConnectionclass,319IIANA(InternetAssignedNumbersAuthority)website,99ICONfield,706iconmenus,229–230icon_1,805icon_2,805idattribute,67_IDcolumn,47,50,102,805idfield,110,732IDE(IntegratedDevelopmentEnvironment)tool,8identitymatrix,508IDialogFinishedCallBackinterface,260IDialogProtocolinterface,256,258–259IDs,forresources,69ifconfigcommand,26ignoreLastFingervariable,877–878IllegalArgumentException,603IMapplication,18imageresources,78–79ImageButtoncontrol,158–159ImageButtonview,718ImageButtonwidget,17Index1157Imagesresource,72images,stretchable,78ImageViewcontrol,165–166,331,880ImageViewobjects,209ImageViewview,718implicitintents,129,139Importmenuoption,Eclipse,421importstatement,355,1099ImProviderproject,19inches,205includeInGlobalSearchattribute,788,793inflate()method,1021init()method,731initCamera()method,609initializemethod,511InitializeRecorderbutton,609initialized,285initialQueryargument,769,822initRecorder()method,611,613InputStreammethod,166insert()method,50–51,108,110,116–117,174insertName()method,988insertPhone()method,988insertRawContact()method,988installcommand,294InstallNewSoftwarefeature,Eclipse,27InstallNewSoftware.
.
.
option,Eclipse,26Instrumentationclass,1001intconstant,68IntegratedAndroidSearch,12IntegratedDevelopmentEnvironment(IDE)tool,8Intentaction,804Intentclass,10,131–133,135,273,829INTENTfield,706intentfilter,137–138tag,351INTENTitem,706Intentobject,236Intentparameter,140intentprimacy,insettingoffalarms,484–487intent_action,805,807Intent.
ACTION_CALLaction,130Intent.
ACTION_DIALaction,130Intent.
ACTION_VIEWaction,303,571intent_data,805–806Intent.
FLAG_GRANT_READ_URI_PERMISSIONflag,304intent.
getExtras()method,565intents,29–30ACTION_PICKaction,139–141availableinAndroid,127–128categoriesof,134–136dataportionof,129directlyinvokingactivitieswithcomponents,133extrainformation,131–132genericactions,130–131GET_CONTENTaction,141–142overview,125–126pending,142–144recordingaudiousing,615–618relationshiptodataUniformResourceIdentifiers(URIs),129respondingtomenuitemswith,222rulesforresolvingtocomponents,137–139IntentServiceclass,423,442,457IntentServiceimplementationextendingforbroadcastreceivers,445–455abstractingwakelockswithLightedGreenRoomabstraction,449–455broadcastserviceabstractions,445–447long-running,447–449overview,442–443sourcecode,443–444IntentService.
javafile,423IntentUtilscode,130internalCursorvariable,709internal.
dbdatabase,620InternetAssignedNumbersAuthority(IANA)website,99Internet,requiredpermissionfor,296interpolatedTimemethod,511,515interpolators,506–507interprocesscommunicationcallingservicesfromclientapplications,351–355passingcomplextypestoservices,355–366interrupt()method,342ints,874Invalidpanoramaindication,874invalidate()method,881,1136invokeLocalSearchActivity()function,775invokeSearchfunction,769invokeSearchInvokerActivity()function,770invokingactivitiesdirectlywithcomponents,133iopackage,18IPaddress,26ipconfigcommand,26IReportBackinterface,961–962,964,1073–1077,1086IReportBack.
javafile,960–961,1072IsLibrarycheckbox,389IsLibraryflag,385isAlive()method,413isCancelled()method,326isChecked()method,161isEnabled()method,925isLanguageAvailable()method,841isLocationDisplayed()method,526,551isMultiPane()method,1027isPlaying()method,592isProviderEnabled(StringproviderName)method,542isRouteDisplayed()method,526isSpeaking()method,842Index1158IStockQuoteServiceinterface,347,349–350,354,358IStockQuoteServiceservice,352IStockQuoteService.
aidlfile,352,361IStockQuoteService.
javafile,365itemnode,74itemtag,69,196ItemizedOverlayclass,528,531–532,871IWidgetModelSaveContractfile,723JJ2EE(Java2Platform,EnterpriseEdition),29jarsignercommand,381,1007Jarsignertool,288,292Java2Platform,EnterpriseEdition(J2EE),29JavaAPI'smainlibraries,Android,8JavaBindingfortheOpenGLESAPI(JSR239),documentationfor,690JavaMEM3G,626–627OpenGLES,626Javapackages,forAndroid,14–18JavaSE(JavaPlatform,StandardEdition),2JavaSpecificationRequest(JSR)239,12JavaVirtualMachine(JVM),2JAVA_HOMEenvironmentvariable,23java.
nioclasses,629java.
niopackage,631JavaScriptObjectNotation(JSON),supportfor,313JavaServerPages(JPS),29javax.
microedition.
khronos.
eglpackage,16javax.
microedition.
khronos.
niopackage,16javax.
microedition.
khronos.
openglespackage,16JDK6,settingupenvironments,22–23JDKbindirectory,288,292JETCreatortool,591JetPlayer,591JIT(just-in-time)compiler,6JPS(JavaServerPages),29JSON(JavaScriptObjectNotation),supportfor,313JSR239(JavaBindingfortheOpenGLESAPI),documentationfor,690JSR(JavaSpecificationRequest)239,12just-in-time(JIT)compiler,6JVM(JavaVirtualMachine),2Kkecode_endcallactionkey,818keyattribute,267,277keypair,288keyproperty,267key/valuepairs,106keyalgargument,289keycodeattribute,820keycode_backactionkey,818keycode_callactionkey,818–819keycode_cameraactionkey,818keycode_clearactionkey,818keycode_dpad_centeractionkey,818keycode_dpad_downactionkey,818keycode_dpad_leftactionkey,818keycode_dpad_rightactionkey,818keycode_dpad_upactionkey,818keycode_homeactionkey,819keycode_menuactionkey,819keycode_muteactionkey,819keycode_poweractionkey,819keycode_searchactionkey,819keycode_volume_downactionkey,819keycode_volume_upactionkey,819KeyEventclass,819–820KEY_PARAM_STREAMargument,839keypassargument,289keys,734keystoreargument,289keytoolcommand,381keytoolutility,288–291,521KhronosGroup,8,624–625KhronosGroupOpenGLESReferenceManual,690killMediaPlayer()method,584KMZfiles,547Llabels,forapplications,1004landscapemode,1042langpackage,18lang.
annotationpackage,18lang.
refpackage,18lang.
reflectpackage,18languagemethods,840–842Languageoption,826LaunchOptionsdialog,56Launcherapplication,18LAUNCHERcategory,44,139,274,1043layoutanimation,2D,498–507animatingListView,502–505creatingactivityandListView,500–502interpolators,506–507planningtestharness,499typesof,498–499layoutattribute,726layoutdirectory,70layout/edit_bday_widget.
xmlfile,724layout-endirectory,85layoutfiles,417layoutfolder,41,44layout/layout_search_activity.
xmlfile,797layout/lib_main.
xmlfile,387layout\list_item_layout.
xmlfile,1114,1120layout/main.
xmlfile,390,414,417,428,1072Index1159layoutmanagerscustomizinglayoutsformultipledevices,210–212FrameLayout,208–209LinearLayout,199–202android:gravityversusandroid:layout_gravity,201–202weightandgravity,199–201overview,198RelativeLayout,206–208TableLayout,202–206layoutresources,66–67layout\test_list_widget_layout.
xmlfile,1114layoutview,855layoutxmlfile,774,832layoutAnimationtag,504–505LayoutAnimationActivity,502LayoutInflaterobject,248layoutscustomizingformultipledevices,210–212debuggingandoptimizingwithHierarchyViewer,213–216descriptionof,146DragandDropAPI,1126–1129mainwidgetlayoutfile,1120remoteviewloading,1104–1105preparing,1101–1104layout.
xmlfile,1037libc(Cruntimelibrary),7lib_main_menumenu,397libraryprojects,384–397addingasdependencytopackage,390–397creating,387–390defined,384factsabout,385–387LicenseVerificationLibrary(LVL),1006lifecyclesofactivities,418–419ofapplications,51–54fragments,1018–1023onActivityCreated()callback,1022onAttach()callback,1020onCreate()callback,1020–1021onCreateView()callback,1021onDestroy()callback,1023onDestroyView()callback,1023onDetach()callback,1023onInflate()callback,1020onPause()callback,1022onResume()callback,1022onStart()callback,1022onStop()callback,1022samplefragmentappshowing,1024–1032setRetainInstance()method,1023methodsofactivities,52ofproviders,421ofreceivers,420–421ofservices,420lightsensors,interpretingdatafrom,905–906LightedGreenRoomabstraction,wakelockswith,449–455LightedGreenRoomclass,449LightedGreenRoom.
javafile,460,462LightedGreenRoom.
setup()method,458limitationsofwidgets,742–743linearaccelerationsensors,interpretingdatafrom,923LinearLayoutclass,199–202android:gravityversusandroid:layout_gravity,201–202weightandgravity,199–201LinearLayoutcontainers,150LinearLayoutcontrols,148–149LinearLayoutlayoutmanager,198–199LinearLayoutnode,67,727LinearLayoutobjects,148LinearLayoutview,718Linkifyclass,154Linuxkernel,7list-basedhomescreenwidgets,1097–1124remoteviews,1098–1113layout,1101–1105onClickevents,1110–1113RemoteViewsFactoryinterface,1106–1109RemoteViewsServiceclass,1105–1106samplelistwidget,1114–1122AndroidManifest.
xmlfile,1121–1122mainwidgetlayoutfile,1120remoteviews,1118–1120testwidgetprovider,1114–1118testing,1122–1124widgetprovidermetadata,1121listlistener,1086listnavigation,1084–1089AndroidManifest.
xmlfile,1087BaseActionBarActivityclass,1087examining,1088–1089listlistener,1086settingup,1086–1087SpinnerAdapterinterface,1085–1086ListNavigationActionBarActivity,1088listpreferenceview,267ListActivityclass,46,175,501,566listContactCursorFieldsfunction,975listContacts()method,976listen()method,570Listentoanexampleoption,825listenerslist,1086respondingtomenuitemsthrough,221–222settingupforpromptdialog,248tabbed,1077–1078LISTEN_MESSAGE_WAITING_INDICATOR,570ListFragmentclass,1037–1041,1044listings,creatingprojectsfrom,422,461–463Index1160list_layout_controller.
xmlfile,503list_layout.
xmlfile,500,503–504ListListener.
javafile,1085listLookupUriColumns()function,977ListNavigationActionBarActivity.
javafile,1085,1087ListPreferenceclass,266–275,284ListPreferencespecification,274ListPreferenceview,275ListViewcontroladding2Dviewanimationto,511–514addingcontrolsin,179–182animating,502–505clickableitemsin,177–179creatingfor2Dlayoutanimation,500–502displayingvaluesin,175–176overview,175readinguserinputfrom,182–183ListViewwidget,17list.
xmlfile,182live-foldercontacts,698live-foldericon,693–694,697livefoldersbuildingAllContactsLiveFolderCreatorActivity.
java,702–703AndroidManifest.
xml,700–702BetterCursorWrapper.
java,708–709codefor,709–710MyContactsProvider.
java,703–707MyCursor.
java,708overview,700overview,693–694testing,709userexperience,694–700viewing,697LiveFolderframework,Android,707LiveFoldersclass,710llContactsLiveFolderCreatorActivityactivity,700load()method,590loadNewData()function,707localQSB(QuickSearchBox),771,773,776,791–792localsearch,748,771–777LocalSearchActivityoption,776localsearch-enabledactivity,776localservices,30,337,339–346Locale.
getDefault()method,842localizingcolors,1003menuchoices,1004LocalSearchEnabledActivity,757,774–775LocalServerSocketclass,15LocalSocketclass,15location-basedservices,519–558locationpackage,533–558geocodingwithAndroid,534–537geocodingwithbackgroundthreads,538–540LocationManagerservice,541–549MyLocationOverlayoverlay,549–553usingproximityalerts,554–558mappingpackage,520–533MapViewandMapActivity,522–528obtainingmap-apikeyfromGoogle,520–522overlays,528–533Locationclass,15,542–543locationpackage,533–558geocodingwithAndroid,534–537geocodingwithbackgroundthreads,538–540LocationManagerservice,541–549enablingprovidersfor,543methodsfor,543–544sendinglocationupdatestoemulator,544–549MyLocationOverlayoverlay,549–553usingproximityalerts,554–558LocationManagerclass,15,542LocationManagerservice,541–549enablingprovidersfor,543methodsfor,543–544sendinglocationupdatestoemulator,544–549LocationProviderclass,15Logclass,17Logcommand,54logAction()method,870LogCatwindow,831,851,853–857,866,868,874Log.
ddebugmethod,81logThreadSignature()method,402,443longclick,231long-runningservices.
SeeLRSlook-atpoint,635lookupfield,958Looperclass,16LRS(long-runningservices)abstractions,445–447broadcastreceiverprotocol,441–442compilingcode,461–463implementation,455–460controllingwakelockfromtwoplaces,458nonstickyservices,456–457pickingsuitablestickiness,457–458specifyingserviceflagsinOnStartCommandmethod,457stickyservices,457testinglong-runningservices,460IntentServiceimplementationoverview,442–443sourcecode,443–444receivers,447–449references,464testing,460LVL(LicenseVerificationLibrary),1006Index1161Mm1.
postTranslate()method,517m1.
preTranslate()method,516M3G,626–627mA(milliamperes),895magneticdeclination,andGeomagneticFieldclass,922magneticfieldsensors,interpretingdatafrom,914–915MAINaction,44MAINcategory,139MainLayoutmain.
xmlapplication,1062–1063Mainmethod,equivalentofinAndroid,44mainthreadsactivities,400broadcastreceivers,401communicatingbetweenworkerthreadsand,410–412ReportStatusHandlerclassimplementation,411–412WorkerThreadRunnableclassimplementation,410–411contentproviders,401implicationsofholding,404implicationsofsingular,401services,401usinghandlerstodeferworkon,405MainActivityclass,147,584,607,830–831,834,854,1051–1053MainActivity.
javafile,332,339,352,361,1050,1126MainActivity'sstopService()method,345main_layout.
xmlfile,85main_menumenu,397main_menu.
xmlfile,960,975,978,982,984,986–987main.
xmlfile,66,149,212,301,344,549,780,1033,1042,1125makeCall()method,573makeText()method,263manageddialogs,253–262managed-dialogprotocolDialogRegistryclass,259GenericManagedAlertDialogclass,261GenericPromptDialogclass,262IDialogFinishedCallBackinterface,260IDialogProtocolinterface,258ManagedActivityDialogclass,258ManagedDialogsActivityclass,259overview,253simplifying,255–257recastingnon-manageddialogas,253–255ManagedActivityDialogclass,257–258,260,262ManagedDialogsActivityclass,257,259managedQuery()method,46–48,101,104–105,176,976manifesteditortool,Android,297element,45,574,1001manifestfileContactsAPI,966forcustomsuggestionprovider,813–814registeringbroadcastreceiversin,427–428tabbednavigation,1083–1084manifest.
xmlfile,387,390,414,428,433,463,701,780,797,960MAPAPIkey,1007map-apikey,obtainingfromGoogle,520–522mapobject,110MapActivityclass,17,170,519,522–528MapControllerclass,17,525mappingpackage,520–533MapViewandMapActivity,522–528obtainingmap-apikeyfromGoogle,520–522overlays,528–533mapping.
txtfile,1007maps,toucheswith,871–874MapViewclass,17,522–528,871–872,878MapViewcontrol,169–170,526MapViewUIcontrol,519mapView.
getController()method,525mapView.
postInvalidateDelayed(2000)statement,526Market,Android.
SeeAndroidMarketMarketapp,1005market://scheme,1005matchmethod,118Matcher,117–118MATCH_PARENTconstant,vs.
FILL_PARENTconstant,152mathpackage,18Matrixclass,15,512,514,516,688MatrixCursorclass,703,707–708maxResultsparameter,537MD5fingerprint,520–521mediaAPIsaddingmediacontenttomediastore,618–620AsyncPlayer,591–592audiorecording,596AudioTrack,592JetPlayer,591MediaPlayeroddities,592–593MediaStoreclass,614–615overview,575playingaudiocontent,581–585playingvideocontent,593–595SecureDigital(SD)cards,576–580setDataSourcemethod,585–586SoundPoolclass,587–591triggeringMediaScannerforSDcard,621videorecording,605–614mediacomponents,ofAndroid,13–14mediacontent,addingtomediastore,618–620mediastore,addingmediacontentto,618–620MediaControllerwidget,17,595Index1162MediaPlayerclass,15,575,581,584–585,592–593MediaPlayer(Contextcontext,intresourceId)constructor,585MediaProviderproject,19MediaRecorderclass,15,595,614–615MediaRecorderinterface,607MediaRecorder.
AudioSource,599,603MediaScanner,triggeringforSDcard,621MediaScannerConnectionclass,618MediaStoreclass,16,614–615MediaStoreprovider,100MediaStore.
ACTION_IMAGE_CAPTUR,618MediaStore.
Images.
ImageColumns,618Menubutton,271,280,699,1082menucallback,273menuchoices,localizing,1004Menuclass,17,226,237menuenabling/disablingtag,242menufile,contactsAPI,961menufolder,41MenuIconarea,1071menuicontag,241Menuinterface,237menuitemshortcuts,242menuitems,invokingworkerthreadsfrom,409–410Menukey,Notepadapplication,42menu/lib_main_menu.
xmlfile,387menu/main_menu.
xmlfile,390,417,428menu/menu.
xml,1072Menuobject,225,230–231,236menutag,239menutypesalternativemenus,234–238contextmenus,231–233populating,233–234registeringviewfor,233respondingtoitemson,234dynamicmenus,238expandedmenus,229iconmenus,229–230submenus,230–231systemmenus,231menuXMLfile,764menu.
addmethod,230Menu.
addSubMenumethod,230MenuBuilderclass,237Menu.
CATEGORY_ALTERNATIVEconstant,218,236Menu.
CATEGORY_CONTAINERconstant,218Menu.
CATEGORY_SECONDARYconstant,218,226Menu.
CATEGORY_SYSTEMconstant,218–219menu_da_clearmenuitem,963Menu.
FLAG_APPEND_TO_GROUPflag,236MenuItemclass,221,1083–1094menus.
Seealsomenutypescreating,219–220creatingtestharnessfor,222–224addingregularmenuitems,225–226addingsecondarymenuitems,226creatingactivity,224–225creatingXMLlayout,224respondingtomenu-itemclicks,227–228settingupmenu,225tweakingAndroidManifest.
xmlfile,228–229declaring,11groupsof,220interactionwithactionbar,1081–1083displayingmenu,1082menuitemsasactions,1083invokingsearchthrough,767–771overview,217–219respondingtoitemsonwithintents,222throughlisteners,221–222throughonOptionsItemSelectedmethod,221XMLbased,238–242checkablebehaviortags,241groupcategorytag,241inflatingresourcefiles,239–240menuenabling/disablingtag,242menuicontag,241menuitemshortcuts,242menuvisibility,242respondingtoitems,240–241structureofresourcefiles,239tagstosimulatesubmenu,241merchantaccount,999,1009messageobjectsconstructing,407sendingtoqueue,407–408metadata,searching,788–789,804–805micro-Teslas(uT),914microedition.
khronos.
eglpackage,18microedition.
khronos.
openglespackage,18MIDI(MusicalInstrumentDigitalInterface),591"mid_opengl_current"menuid,644milliamperes(mA),895millimeters,205MIME(MultipurposeInternetMailExtensions)typesfulfillingcontracts,116specifying,802structureof,98–100Mime4jwebsite,311mimeTypeattribute,130mimetype_id,955min/maxfunction,881Miner,Rich,4minSdkVersion,580mirrorsites,1012mksdcardutility,576mmap()method,293mMMatrixvariable,688Index1163Mmsapplication,18mMVPMatrixvariable,688MODE_PRIVATEmode,285MODE_WORLD_READABLEflag,382MODE_WORLD_READABLEmode,285MODE_WORLD_WRITEABLEflag,382MODE_WORLD_WRITEABLEmode,285MotionEventclass,853,863,870MotionEventevents,857MotionEventhandler,846MotionEventobjects,845–846,851,853,856,863–864,869,877–878MotionEvent.
ACTION_MASKconstant,870MotionEvent.
ACTION_POINTER_3_DOWNconstant,870MotionEvent.
ACTION_POINTER_ID_MASKconstant,870MotionEvent.
ACTION_POINTER_ID_SHIFTconstant,870MotionEventsdraganddrop,859–862MotionEventobject,845–857recycling,857velocitytracker,857–859MotorolaXOOM,5mouseclickeventcallbacks,widgetview,722moveToFirst()method,102–103moveToNext()method,103moveToPosition()method,181Movieclass,15multi-panemode,1032multi-touch,862–871gestures,883postversion2.
2,871priortoversion2.
2,863–870MultiAutoCompleteTextViewcontrol,156–157MultipartEntity,312MultipurposeInternetMailExtensionstypes.
SeeMIMEtypesmultithreadingissues,consumingHTTPservices,315Murphy,Mark,445Musicapplication,18MusicalInstrumentDigitalInterface(MIDI),591music_file.
mp3,585mVMatrixvariable,688MyDownloads,1011my_column,821MyContactsContentProvider,707MyContactsProviderclass,701,703,707MyContactsProvidercode,703MyContactsProvider.
javafile,700,703–707MyCursor.
javafile,700,708MyDialogFragmentclass,1045MyFragmentclass,1019MyLocationDemoActivity.
javafile,549MyLocationOverlayclass,549–553,871my_menu.
xmlfile,239MySMSMonitorclass,564Nncommand,38nameattribute,196,734NAMEfield,706,735nameproperty,65nameContainerobject,148–149NameValuePairobjects,310navigationmodes,1079–1080NearFieldCommunicationsensors.
SeeNFCsensorsnearpoint,636nestingPreferenceScreenelements,281netpackage,18net.
sslpackage,18NETWORK_PROVIDER,552NETWORK_WIFI,334NewAndroidProjectbutton,31NewAndroidProjectdialogbox,31NewAndroidProjectwizard,572Newlivefolderoption,696–697,701NewProjectdialogbox,31NewProjectWizard,31–32newInstance()method,319,573,1019,1030–1031,1044–1045,1057–1058,1060NexusSphone,999NFC(NearFieldCommunication)sensors,interpretingdatafrom,923enabling,925readingtags,933testingwithNFCDemo,934niobuffers,629,641niopackage,18,626nio.
channelspackage,18nio.
channels.
spipackage,18nio.
charset,security,security.
aclpackage,18NoSearchActivityoption,767NO_MATCH,UriMatcherclass,118noncompiledresources,70nonstickyservices,456–457normalizedtexturecoordinates,669NoSearchActivity,757,766–767not-runnablestate,413Notepadapplication,42–51dissecting,44–51loadingandrunning,42–43Notepadclass,46NotePadProviderclass,49–50NotePadProviderdatabase,97Notesclass,46NotesListactivity,44,47NotesListapplication,43NotesListclass,46NotesList.
onCreate()method,45notificationvalue,280Notification.
FLAG_NO_CLEAR,341Index1164NotificationManager,341NotificationReceiver.
javafile,462notifications,frombroadcastreceivers,434–440monitoringthroughnotificationmanager,435–437sending,437–440Notificationsicon,437notifyChangemethod,117notifyDataSetChanged()method,174,178nullvalue,272NvidiaTegra2,5OObjectAnimatorclass,1064–1067,1131tag,1034,1066–1067obtain()method,857–858obtainMessage()method,407onAccuracyChanged()method,897–898,903onActivityCreated()method,1018,1022,1040onActivityResult()method,140,142,543,616,618,829,841,925,1064onAttach()method,1020,1057onBind()method,338,341,346,350–351,355onCallStateChanged()method,570onCancel()method,1048,1058onCheckedChanged()method,165OnCheckedChangeListenerinterface,161,163OnCheckedChangeListenermethod,165onClickaction,1118onClickarea,723onClickbehavior,1118onClickeventshandler,1110–1112respondingto,1112–1113onClickintent,1110,1120onClick()method,158,161,252,829,857,1062onClickHookmethod,258,261onContextItemSelected()method,234onCreate()method,45,786–787,812,1020–1021,1107onCreateContextMenu()method,232–234onCreateDialog()method,253–254,1046–1047,1062onCreateMethodmethod,255onCreateOptionsMenu()method,219,225,231–232,235onCreateView()method,1018,1021,1023,1031–1032,1040,1046,1058,1060,1129onDataSetChanged()callbackmethod,1109onDelete()method,722,728,730onDeleted()method,720onDestory()method,342,419,456,557,830,903,905,1023,1107–1108onDestroyView()callback,1023onDetach()callback,1023onDialogDone()method,1053,1058OnDialogDoneListenerinterface,1053–1054,1057OnDialogDoneListener.
javafile,1050onDisable()method,722,728onDisabled()method,720,730onDismiss()method,1048,1058,1062onDrag()method,1129–1132,1136onDrawmethod,651–652onDrawFrame()method,638–639onEnable()method,728onEnabled()method,719–720,730onError()method,613OnErrorListenerinterface,607OneShotparameter,497onGesturePerformed()method,889onGesturePerformedListenerinterface,889onHandleIntent()method.
,442onHandleIntent()method,443–446onHandleIntent(Intent)method,442onHandleMessage()method,444onInflate()method,1018,1020onInfo()method,613OnInfoListenerinterface,607onInit()method,830–831,840OnInitListenerclass,830onItemClick()method,178onListItemClick()method,47–48,1040onLoadComplete()method,590onLoadCompleteListenerinterface,590onLocationChanged()method,545,547onMeasure()method,1136OnMenuClickListenerinterface,221onMenuItemClick()method,221–222onNewIntent()method,784,786–787,790,793,807,812,823onOptionsItemSelected()method,219,221–222,227,234,240,1083onPause()method,53,419,545,570,603,608–609,897,920,1022onPostExecute()method,323–324,326–327onPreExecute()method,323–324,331onPreparemethod,259onPrepareDialog()method,253–254onPrepareOptionsMenumethod,238onProgressUpdate()method,323–324onProviderDisabled()method,548onProviderEnabled()method,548onReceive()method,335,427,440–441,564,730,899,905,1110,1112onRestart()method,53onResume()method,53,419,545,571,603,608,897,903,920,1022onRetainNonConfigurationInstance()method,327–328onSaveInstanceState()method,1020,1036–1037,1058onScale()method,881onScaleBegin()method,881Index1165onScaleEnd()method,881onSearchRequested()method,765–766,769,778,821onSensorChanged()method,897,903,913onServiceConnected()method,354,364onServiceDisconnected()method,354onStart()method,53,339,341,419,441,444,456,903,1022onStartCommand()method,342–343,345–346,441,444,450,455–457onStartCommand()version,341onStatusChanged()method,548onStop()method,53,419,903,1022onSurfaceChanged()method,639onSurfaceCreated()method,638,671onTap()method,872,874onTouch()method,846–847,851,853–857,872onTouchEvent()method,846–847,854–856,858,861,872,877,881onUpdate()method,719–722,726,730,1101,1104,1106,1114onUtteranceCompleted()method,831,840OnUtteranceCompletedListenerinterface,831OpenHandsetAlliance,4,18open()method,614OpenCORE,PacketVideo,7OpenGLcameraandCoordinatesglFrustumandviewingvolume,636–637gluLookAtandcamerasymbolism,634–635glViewportandscreensize,637drawingmultiplefigures,674–678glClear,632–633glColor,633glDrawElements,630–632glVertexPointerandspecifyingdrawingvertices,628–630historyandbackgroundof,624–627M3G,626–627resources,690–691,710shapesanimatingRegularPolygonshapes,666–668implementingRegularPolygonshapes,657–664rectangles,653–655RegularPolygonclass,656–657renderingsquareusingRegularPolygonclass,664–665texturesabstractingcommonhandling,669–672drawingwith,672–673normalizedcoordinates,669overview,668–669OpenGLESdrawingwith,628–633interfacingwithAndroidAnimatedSimpleTriangleRenderer,652–653animatingsimpletriangle,651–653changingcamerasettings,647–648drawingtrianglewithtestharness,641–647GLSurfaceViewandrelatedclasses,638rendererfor,638–641usingindicestoaddanothertriangle,649–650JavaME,626overview,625OpenGLES2.
0,678–689javabindingsfor,678–682renderingin,682shaders,682–685accessingprogramvariablesfor,685compilingintoprogram,684simpletrianglein,685–689OpenGLlibrary,7OpenGLProgrammingGuide(book),625,690openRawResourceFd()method,586optionkey,273optionvalueis1(#ofStops)message,271Optionsmenu,1071organizingpreferences,280–282org.
apache.
http.
*,18org.
json,18org.
w3c.
dom,18org.
xmlpull.
v1,18org.
xml.
sax,18orientationattribute,199orientationproperty,199orientationsensors,interpretingdatafrom,915–922orthographicprojection,636OSversion1.
6,Android,5out-of-processbroadcastreceivers,projectfor,433–434OvalShape,15Overlayclass,531,871–872overlaysMyLocationOverlay,549–553overview,528–533Ppcommand,38PackageManager,14packagename,1006PackageInstallerapplication,18PackageManagerclass,136PackageManagermethod,1005PackageManager.
SIGNATURE_MATCH,1005packagenameapplication,838packages,377–398deletingthroughpackagebrowser,379andlibraryprojects,384–397addingasdependencytopackage,390–397creating,387–390defined,384factsabout,385–387listinginstalled,378–379Index1166andprocessname,378sharingdataamong,382–384codepatternfor,383–384andshareduserIDs,382–383signingof,379–382overview,380andPKIcertificates,381–382andpublicandprivatekeys,381specificationdetailsof,377–378Paintclass,15PaintDrawableclass,79Palette.
javafile,1126palette.
xmlfile,1125,1138parameters,forSoundPool,590paramsHashMap,839–840Parcelclass,357Parcelableclass,357–358,365Parcelableinterface,356–357parentActivityvariable,405parentContainer,149Pathclass,15PATHvariable,25PathShape,15path_to_/JDK_directory,23pause()method,584,592–593,595PausePlayerbutton,584penaltyDeath()method,58pendingintents,142–144Pending.
getActivity()method,143PendingIntentclass,467–468,556Peopleclass,101–102Peopletable,101periodcharacter,831permissionscustom,297–303declaringandusing,295–297URI,303–306incontentproviders,304–305passinginintents,303–304permitDiskReads()method,60persistentDrawingCachetag,504Personclass,358,360–361,364Person.
aidlfile,357Person.
javafile,357–358perspectiveprojection,636Phoneapplication,18PhoneNumberUtilsclass,16PhoneStateListener,570photosettingscreen,contactsAPI,948–949PICKintent,141Picoengine,827,837–838,843PicoTextToSpeechengine,13pinchgesture,875–878pixels,205PKI(publickeyinfrastructure)certificates,andsigningofpackages,381–382pkzipfile,19planets.
xmlfile,186platformsaddingtoAndroidSDK,24onAndroid,3platforms\android-1.
6\samplesfolder,43Playbutton,612,834,837play()method,590,592playAudio()method,584playbackPositionintegermember,584playEarcon()method,840playingaudiocontent,581–585playingvideocontent,593–595playRecording()method,612playSilence()method,840,842PluralRules.
javaresourcecode,74plurals,73–74Pluralsresource,71pname,1006pointerId,864points,205populate()method,531–532populatingcontextmenus,233–234portraitmode,1042postInvalidate()method,552postTranslatemethod,513,516PowerManagerclass,16PREFERENCE,274preferencescreenview,267PreferenceActivityclass,16,271,273–275,283PreferenceCategoryelement,280,282preferencesframework,265–286CheckBoxPreference,275–277EditTextPreference,277–278ListPreference,266–275manipulatingprogrammatically,283–284RingtonePreference,278–280savingpreferences,284–286organizing,280–282preferencesactivity,827Preferencesdialogbox,Eclipse,28preferencesEditor,285Preferenceswindow,Eclipse,576PreferenceScreenelement,267,278,280–282prepare()method,584–585,592,612pressuresensors,interpretingdatafrom,907pressurevalue,852preTranslatemethod,513,516primitiveshapes,628printCursorColumnNames()method,970PRIORITYparameter,590PrivActivityclass,298–299,303privilegedactivities,298processboundary,295processlifetimes,418–421ofactivities,418–419ofproviders,421ofreceivers,420–421ofservices,420Index1167processname,andpackages,378.
profilefile,23,25ProgressBarcontrol,194ProgressBarview,718ProgressBarwidget,17ProgressDialog,264Projectoption,Android,42,422projectpropertiesscreen,385Projectioninterface,872projectionmaps,110,119projectionparameter,managedQuery()method,47projections,102,116promptdialogdesigning,246–251creatingandshowing,249PromptListenerclass,249settingupalert-dialogbuilderwithuserview,248settingupbuttonsandlisteners,248XMLlayoutfilefor,247rearchitecting,252PromptDialogFragmentdialogfragment,1054–1058PromptDialogFragment.
javafile,1050PromptListenerclass,248–250,252promptReplyfield,249propertiescontextmenu,389propertiesdialog,389propertieswindow,385providerclass,108providerdeclaration,701Providerprojects,19tag,304–305providers,lifecyclesof,421proximitysensors,interpretingdatafrom,906ProximityReceiverclass,557Proxyclass,349ptrId,870ptrIndex,870publicandprivatekeys,andsigningofpackages,381publickeyinfrastructure(PKI)certificates,andsigningofpackages,381–382publicMapgetPrefsToSave()method,735publicstaticidentifier,47publicStringgetPrefname()method,735publicvoidsetProjectionMap(MapcolumnMap),119publicvoidsetValueForPrefmethod,735Publishbutton,1010publisher,becoming,994–1001publishProgress()method,323,331putExtras,131putFragment()method,1036–1037QQSB(QuickSearchBox),771,773,776,791–793,814–815quantityattribute,74queries,passingtosuggestionprovider,802–804query()method,108,110,116–117,337,707,788–789,797,802querystring,806queryActionMsgattribute,820queryActionMsgvalue,820queryAfterZeroResultsattribute,788,805QueryBuilderclass,119queryString,782QUEUE_ADDintent,829,831QUEUE_ADDmode,840QUEUE_FLUSHintent,829–831queues,sendingmessageobjectsto,407–408queueSound()method,591queuingmechanism,840QuickSearchBox(QSB),771,773,776,791–793,814–815QuickSearchBoxtab,755RRclass,47RadioFrequencyID(RFID),923RadioButtoncontrol,162–165RadioButtonwidget,17RadioGroupclass,162–164RadioGroupwidget,17Rasterizerclass,15RatingBarcontrol,194RatingButtonwidget,17rawassest,arbitrary,72rawcontacts,977–985rawdirectory,70rawfiles,70,72rawfolder,41rawresources,82RawContactobject,981RawContactEntityview,984RawContactFunctionTester.
java,977raw_contact_id,955RawContact.
javafile,977–978ray,636R.
draawable.
roboticon,438R.
drawable.
frame_animationresource,497readFromParcel()method,357README.
TXTfile,1067Receiverclass,426receiverelement,428receivernode,725receiverslifecyclesof,420–421settingupforsimplealarm,467RecentSearchSuggestionProvider,795Index1168recognize()method,889Recordbutton,834recordingaudiowithAudioRecord,600–604requiredpermissionfor,296usingintent,615–618video,605–614RECORDINGmessage,606,612recordoutput.
3gppfile,600records,insertingincontentproviders,106–107RectShape,15recycle()method,858recyclingMotionEvents,857redbook,625,690redeliverintentsmode,457ReducedInstructionSetComputer(RISC),9referencesyntaxforresources,67Referencestab,1099refunds,996registerDialogs()function,259registerForContextMenumethod,233registeringviewforcontextmenus,233registerListener()method,897RegularActivityclass,758,761,770,775,777–778RegularActivity.
javafile,757,766,770,775RegularPolygonclassoverview,656–657renderingsquarewith,664–665shapesanimating,666–668implementing,657–664RelativeLayout,198,206–208,527,718,848release()method,584,593releaseCamera()method,609release.
keystorefile,289releaseRecorder()method,609remapCoordinateSystem()method,922remoteservices,30,337–338remoteviews,1098–1113factory,1118–1120layoutloading,1104–1105preparing,1101–1104onClickeventshandler,1110–1112respondingto,1112–1113RemoteViewsFactoryinterface,1106–1109constructor,1107getCount()callbackmethod,1108getItemId()callbackmethod,1109getLoadingView()callbackmethod,1108–1109getViewAt()callbackmethod,1108getViewTypeCount()callbackmethod,1109hasStableIds()callbackmethod,1109onCreate()callbackmethod,1107onDataSetChanged()callbackmethod,1109onDestroy()callbackmethod,1107–1108RemoteViewsServiceclass,1105–1106service,1120RemoteViewinterface,1099RemoteViewsclass,711,718–719,721,740–743,1098RemoteViewServiceclass,1106RemoteViewsFactoryclass,1100RemoteViewsFactoryinterface,1106–1109constructor,1107getCount()callbackmethod,1108getItemId()callbackmethod,1109getLoadingView()callbackmethod,1108–1109getViewAt()callbackmethod,1108getViewTypeCount()callbackmethod,1109hasStableIds()callbackmethod,1109onCreate()callbackmethod,1107onDataSetChanged()callbackmethod,1109onDestroy()callbackmethod,1107–1108RemoteViews.
RemoteViewinterface,1099RemoteViewsServiceclass,1100,1105–1106RemoteViews.
setOnClickFillIntent()method,1100RemoteViews.
setPendingIntentTemplate()method,1100remove()method,1035removeData()method,730removePrefs()method,729–730Rendererinterface,638–641RENDERMODE_CONTINUOUSLY,651RENDERMODE_WHEN_DIRTY,651replace()method,1034–1035reportBack()method,1073–1075ReportStatusHandlerclass,411–412,417ReportStatusHandler.
javaclass,413reportTransient()method,964,1073REpresentationalStateTransfer(REST),89requery,703,707–708requestCode,140,143requestLocationUpdates()method,545,548ReqularActivity.
java,765/res/anim/alpha.
xmlfile,504/res/animsubdirectory,498,503/res/anim/translate_alpha.
xmlfile,505/res/animatordirectory,1066res/drawable/box1.
xmlfile,723,1120/res/drawablefolder,159,230,438,493,531,727,1103/resfile,1002resfolder,40–41,47,70res/layout/bday_widget.
xmlfile,723/res/layoutdirectory,126,1031/res/layoutfile,1002res/layoutfolder,187/res/layout-largefile,1002res/layout/local_search_enabled_activity.
xmlfile,757/res/layout/main.
xmlfile,273,332,368,462,757Index1169/res/layout-normalfile,1002res/layout/no_search_activity.
xmlfile,757res/layout/search_activity.
xmlfile,757res/layout/search_invoker_activity.
xmlfile,757/res/layoutsubdirectory,493,960\res\layout\test_list_widget_layout.
xmlfile,1120/res/menu/main_menu.
xmlfile,273,414,462,643,758res/menu/search_invoker_menu.
xmlfile,758/res/rawfolder,585–586,838,840,888/res/values/arrays.
xmlfile,271,368/res/valuesdirectory,1004,1135/res/valuesfolder,151/res/values-frfolder,1003/res/values/planets.
xmlfile,174/res/values/strings.
xmlfile,155,186,272,301,368,758,780/res/xml/,267res/xml/bday_appwidget_provider.
xmlfile,723\res\xml\test_list_appwidget_providerfile,1121reset()method,592ResolveInfoAPI,136ResolveInfoclass,237resource-referencesyntax,67ResourceCursorAdapteradapter,174Resource.
drawable.
frame_animationresourceID,496resources,63–88arbitraryXMLresourcefiles,80–81assets,82color,76color-drawable,79–80compiledandnoncompiled,70andconfigurationchanges,83–87definingIDsfor,69dimension,77directorystructure,83image,78–79keyAndroid,71–80layout,66–67plurals,73–74raw,82referencesyntaxfor,67string,64–66,74–76stringarrays,73Resourcesclass,14tag,65,159Resources.
javaresourcecode,74respondToMenuItem()method,405ResportStatusHandlerclass,410REST(REpresentationalStateTransfer),89RestartPlayerbutton,584RESULT_CANCELconstant,141RESULT_FIRST_USERconstant,140–141RESULT_OKconstant,141,829retrieveData()method,730retrievePrefs()method,729–730returnsfalsebutton,853–856returnstruebutton,854–856RFID(RadioFrequencyID),923R.
id.
menu_library_activitymenuitem,392R.
id.
mid_si_search,769R.
id.
textconstant,69Ringtoneclass,15ringtonevalue,280RingtonePreferenceview,275,278–280ringtoneTypeattribute,280RISC(ReducedInstructionSetComputer),9R.
javaconstantsfile,220R.
javafile,10,64–65,68,84,385,395–397R.
javanamespace,77R.
layoutclass,66R.
layout.
detailsresource,1031R.
layout.
list_layoutID,501RootElementclass,16rotateanimation,498rotationvectorsensors,interpretingdatafrom,923RotationAnimationclass,17RoundRectShape,15RPCservice.
SeeremoteservicesRubin,Andy,4rulesforbecomingpublisher,994run()method,411–412,540RunHelloWorldconfiguration,33Runnableclass,495runnablestate,413runOnFirstFix()method,552runtimesecuritycheckscustompermissions,297–303declaringandusingpermissions,295–297processboundary,295URIpermissions,303–306incontentproviders,304–305passinginintents,303–304SSavebutton,1058saveRecentQuery,788scaleanimation,498scale-independentpixels,206ScaleAnimationclass,17scale.
xmlfile,503–504scanFile()method,620ScreenCapturebutton,1008screensizes,supporting,1001–1002screenshots,1008Scrollerwidget,17ScrollViewcontrol,194,1080ScrollViewwidget,17SD(SecureDigital)cards,575–580sdcardfolder,577,885/sdcard/gesturesfile,888sdcard.
imgfile,576SDKManager,28Index1170SDK/platforms//data/res/drawablefolder,342SDK(SoftwareDevelopmentKit),2,22,145,742searchdisabling,766–767invokingthroughmenu,767–771SEARCHactions,774,804searchactivityforcustomsuggestionproviderfinishing,812layout,811respondingtoACTION_SEARCHandACTION_VIEW,810–811respondingtoonCreate()andonNewIntent(),812responsibilitiesof,807SearchActivityinvocation,809–810sourcecode,808–809strings.
xml,811searchactivityforsimplesuggestionprovider,784–789SearchActivityscreen,792searchbox,746searchframework,746–822actionkeysinAndroidsearch,818–821activitiesandsearchkeyinteractiondisablingsearch,766–767enablingtype-to-search,777–778invokingsearchthroughmenu,767–771localsearchandrelatedactivities,771–777overview,757regularactivities,758–765application-specificsearchcontext,821–822customsuggestionprovider,796–818manifestfile,813–814planning,796SuggestURLProviderclass,797–807SuggestURLProviderprojectimplementationfiles,796–797userexperience,814–818globalsearch,746,753,757simplesuggestionprovider,778–795implementationfiles,779–780planning,779searchactivity,784–789searchinvokeractivity,789–790SimpleSuggestionProviderclass,780–784userexperience,791–795searchicon,752–753,771,773,796,815SearchInvokerActivity,770–772searchmetadataXMLfile,774Searchoption,755,771searchquerymethod,810SearchRecentSuggestionsAPI,823searchresultsactivity,772Searchsettingsapplication,755,814searchsuggestions,750–751searchURI,797,801Searchableitemsoption,755searchable.
xmlfile,801,803SearchActivityclass,784–789,796–797,804,807SearchActivity.
javafile,757,779,796,807search_activity.
xmlfile,780SearchEanabledActivity,775SearchInvokerActivityclass,767,770SearchInvokerActivityXML,769–770SearchInvokerActivity.
javafile,757SearchInvokingActivity,773SearchManagerclass,801–802,805,820,823SearchManager.
APP_DATA,822SearchManager.
QUERY,786SearchRecentSuggestionsProviderdatabasemodes,781–783savingquerywith,787–788searchSuggestAuthorityattribute,788searchSuggestIntentActionattribute,804searchSuggestIntentDataattribute,804searchSuggestPathattribute,804searchSuggestSelectionattribute,788,803–804searchSuggestThresholdattribute,804Sears,Nick,4SecureDigital(SD)cards,575–580SecureSocketsLayer(SSl)library,7securitymodel,294overview,287–288runtimecheckscustompermissions,297–303declaringandusingpermissions,295–297processboundary,295URIpermissions,303–305signingapplicationsfordeployment,288–294aligningapplicationswithzipalign,293–294generatingself-signedcertificatewithKeytool,288–291updatingandsigningapplications,294usingJarsignertooltosign.
apkfile,292security.
authpackage,18security.
auth.
callbackpackage,18security.
auth.
loginpackage,18security.
auth.
x500package,18security.
certpackage,18SecurityException,571security.
interfacespackage,18security.
specpackage,18seekTo()method,584,593,595selectargument,797Selectrootdirectoryoption,Eclipse,421,461selected_flight_sort_optionargument,273selected_flight_sort_optionstring,272selected_flight_sort_optionvalue,274selectInitialQueryargument,769,822selectionargument,105,802–804selectionparameter,managedQuery()method,47selectionstring,788selectionArgsargument,802–803Index1171selectionArgsparameter,managedQuery()method,47self-signedcertificates,288–291sendBroadCast()method,425–426,432–433sendDataMessage()method,562sendMessage()method,407–408,422sendMessageDelayed()method,407–408sendMultipartTextMessage()method,563sendSmsMessage()method,562sendTextMessage()method,562–563SensorEventListenerinterface,897SensorManagerclass,906,922sensors,891–935detecting,892interpretingdatafromaccelerometers,908–914gravitysensors,923gyroscopesensors,907–908lightsensors,905–906linearaccelerationsensors,923magneticdeclinationandGeomagneticFieldclass,922magneticfieldsensors,914–915NFCsensors,923orientationsensors,915–922pressuresensors,907proximitysensors,906rotationvectorsensors,923temperaturesensors,907issueswitheventsfor,895–905nodirectaccesstosensorvalues,898onAccuracyChanged()method,898sensorvaluesnotsentfastenough,898sensorsturnoffwithscreeninAndroid2.
1,899–905queryinginformationabout,892–895Serviceclass,30servicecomponents,ofAndroid,13serviceflags,specifyinginOnStartCommandmethod,457Serviceobject,341tag,345,351ServiceConnectioninterface,354servicesAIDLin,346,349–351consumingHTTPexceptions,313–315multithreadingissues,315overview,307–308timeoutsfor,318–319usingAndroidHttpClien,319–320usingAsyncTask,320–331usingDownloadManager,331–337usingHttpClientforHTTPGETrequests,308–310usingHttpClientforHTTPPOSTrequests,310–312usingHttpURLConnection,319defininginterfaceinAndroidInterfaceDefinitionLanguage(AIDL),347–349externalcomponents,401GoogleTranslateexampleusing,366–375interprocesscommunicationcallingservicesfromclientapplications,351–355passingcomplextypestoservices,355–366JSONsupport,313lifecyclesof,420local,339–346overview,337–339settingupdevelopmentenvironment,30SOAPsupport,312–313Service.
START_NOT_STICKYflag,456Service.
START_REDELIVERflag,457Service.
START_STICKYflag,457ServiceWorkerclass,342SessionInitiationProtocol(SIP),559,571–574SetPackageNameoption,278SetRingtonePreferenceoption,280tag,1067setAdapter()method,156setAlpha()method,1065setArguments()method,1020setAutoLinkMask()method,153setBounds()method,532setBuiltInZoomControls()method,527setCenter()method,533setChecked()method,161,163setClickable(true)method,526setConsiderGoneChildrenWhenMeasuring()method,209setContentView()method,148,151,181,439,1042setContext()method,331setCustomAnimations()method,1034,1065setData()method,344,407setDataSource()method,581,585–586,595setDataSource(FileDescriptordesc),586setDestination*()methods,336setDropDownViewResource()method,187setEdgeFlags()method,853setEngineByPackageName()method,840setEntity()method,310,312setEntries()method,284setGroupCheckablemethod,220setGroupEnabledmethod,220setGroupVisiblemethod,220setHint()method,155setIconmethod,MenuItemclass,229setImageInView()method,328,331setImageResource()method,159,166setIntent()method,222setLanguagemethod,841setLatestEventInfo()method,364,439–440setListAdapter()method,175,1040setLooping()method,592Index1172setMarker()method,532setMaxDuration(intlength_in_ms)method,600setMaxFileSize(longlength_in_bytes)method,600setMediaController()method,595setMovementMethod()method,1081setOnCheckedChangeListener()method,161,163setOnClickFillIntent()method,1112setOnClickListener()method,158setOneShot()method,496setOnTouchListener()method,846,871setOnUtteranceCompletedListener()method,830setOptionText()method,273–274setPendingIntentTemplate()method,1111setPitchmethod,842setProfile()method,614setProgress()method,331setRemoteAdapter()method,1106setResult()method,141setRetainInstance()method,1023,1036setRotatemethod,516setRotation()method,1065setScalemethod,512,516setSkewmethod,516setSpeechRatemethod,842setTabListener()method,1080setTargetFragment()method,1064setText()method,195setThreadPolicy()method,58Settingsapplication,16,18settingspage,Android,754Settingsscreen,825SettingsProviderproject,19setTokenizer()method,156setTransition()method,1034setTranslatemethod,516setupMatricesfunction,688setValue()method,734setValueForPref()method,731setVideoPath()method,595setVideoURI()method,595setVolume()method,592setX()method,1066setZoom()method,533SGI(SiliconGraphics,Inc.
)OpenGL.
SeeOpenGLShaderclass,15Shakespeareclass,1032tag,72,79–80shareduserIDs,382–383SharedPreferencesclass,16,274,742SharedPreferencesfile,734SharedPreferences.
Editorclass,734,743SharedPrferencesfacility,732sharingdata,amongpackages,382–384codepatternfor,383–384andshareduserIDs,382–383shellcommandsets,93ShortMessageService.
SeeSMSshortcutURI,801shortcut_id,806SHORTCUT_MIME_TYPE,SearchManagerclass,802showcontactdetailscreen,contactsAPI,945showcontactsscreen,contactsAPI,944ShowMe!
button,921show()method,251,256–258,1034,1047,1049,1053,1058showAllRawContacts()method,981showAsActiontag,1083showDetails()method,1027,1032,1040–1041showDialogmethod,254showRawContactsCursor()function,981showRawContactsDataForRawContact()function,988showSilentattribute,280shutdown()method,830sidesvariable,667signingapplicationsfordeployment,288–294aligningapplicationswithzipalign,293–294generatingself-signedcertificatewithKeytool,288–291updatingandsigningapplications,294usingJarsignertooltosign.
apkfile,292ofpackages,379–382overview,380andPKIcertificates,381–382andpublicandprivatekeys,381silence,playingwithTTSAPIs,840SiliconGraphics,Inc.
(SGI)OpenGL.
SeeOpenGLSIMcard,998SIM(SubscriberIdentityModule)serialnumber,16simplesuggestionproviders,778–795implementationfiles,779–780planning,779searchactivity,784–789SimpleSuggestionProviderclass,780–784declaringinmanifestfile,783–784responsibilitiesof,780–781sourcecodefor,781userexperience,791–795SimpleAdapteradapter,174SimpleCursorAdapteradapter,47,171–172,174simple_list_item_1.
xmlfile,173SimpleMainActivity.
javafile,779SimpleSpinnerArrayAdapterjavafile,1084–1085SimpleSuggestionProviderclass,780–784SimpleSuggestionProvider.
javafile,779SimpleTriangleRendererclass,639,642SimpleTriangleRenderer2class,650SingleAbstractTextureRendererclass,670singleLineproperty,155singleTopmode,784,787,807,823Index1173SIP(SessionInitiationProtocol),559,571–574SipManagerobject,573Skialibrary,Google,8SkMatrix.
cppfile,19sleep()method,402,404,411slide_out_down.
xmlfile,1067SMS(ShortMessageService),559–568e-mail,567–568folders,565–567monitoringincomingmessages,563–565sendingmessages,559–563SmsManagerclass,562–563,565SmsManager.
sendTextMessage()method,562SmsMessageobject,Android,565SmsMessage.
createFromPdu()method,565SOAP,supportfor,312–313softkeyboard,750SoftwareDevelopmentKit(SDK),2,22,145,742softwarestack,6–8SoftwareUpdates,Eclipse.
SeeInstallNewSoftware.
.
.
option,EclipseSomeHandlerDerivedFromHandlerhandler,405some_viewlayout,126sortoption,271sortOrderparameter,managedQuery()method,47soundFileResourceId,838SoundPoolclass,587–591SoundRecorderapplication,18sourcecodeexamplethatdeferswork,405–406standardnavigation,1090–1091takingadvantageof,18–19sourcevariable,684sourceidfield,954SparePartsapplication,750Speakbutton,831,834,837speak()method,829–830,837–840specificationdetails,ofpackages,377–378speechsynthesisengine,Pico,827Spinnerclass,186Spinnercontrol,185–187Spinnerwidget,17SpinnerAdapterinterface,1085–1086spinner_while_refreshing,806sqlpackage,18SQLitedatabaselibrary,7,952–953SQLite,primeron,95sqlite3commands,94SQLiteCursorclass,15,707SQLiteDatabaseclass,15,117Sqlitemantool,95sqlite_mastertable,95SQLiteOpenHelperclass,50SQLiteQueryclass,15SQLiteQueryBuilderclass,15,105,116,119SQLiteStatementclass,15sqllitedatabase,721srcfolder,33,40,61,723SRC_QUALITYvalue,590SSl(SecureSocketsLayer)library,7stand-aloneBCRfiles,462–463stand-aloneBCRproject,461StandaloneReceiver.
javafile,433,462standardnavigation,1090–1095AndroidManifest.
xmlfile,1092BaseActionBarActivityclass,1091–1092examining,1092–1095sourcecode,1090–1091StandardNavigationActionBarActivityjavafile,1090–1092startevent,457start()method,496,540,584,593,595,612StartPlayingAudiobutton,584startActicity()method,48,139,222,926,1064startActivityForResult()method,48,140,616,829,1064startDrag()method,1135startMethodTracing()method,Debugclass,55startMyActivityDescconstant,301startOffsetvalue,503startRecording()method,604startSearch()method,765,769,822startService()method,342–343,346,352,401,420,442,444,455,457staticfinalproperty,357stickiness,457–458stickyservices,457Stkapplication,18StockQuoteClient,351StockQuoteServiceproject,350StockQuoteService.
javaclass,350stop()method,496,584,591,593,612,830StopRecordingbutton,612stopPlayback()method,595stopPlayingRecording()method,612stopRecording()method,612stopSelf()method,444,457stopService()method,343,421,456StopWatch,742storepassargument,289storingvalues,272STREAM_ALARMaudiostream,839STREAM_MUSICaudiostream,839STREAM_NOTIFICATIONaudiostream,839STREAM_RINGaudiostream,839STREAM_SYSTEMaudiostream,839STREAM_VOICE_CALLaudiostream,839Streetbutton,874StreetViewactivity,878StreetViewapplication,872–874,877,921StreetViewmode,877stretchableimages,78StrictModeWrapperclass,60strideargument,630Stringarrays,71,73Index1174stringclause,104element,65stringresources,64–66,74–76Stringtype,105StringEscapeUtils,374Stringsresource,71strings.
xmlfile,64–65,68,151,272,761,763,811–812,1003structureofAndroidapplications,39–42Stubclass,349–350styles,194–197styles.
xmlfile,197submenus,230–231SubscribedFeedsProviderproject,19SubscriberIdentityModule(SIM)serialnumber,16substitutablevalues,803SUCCESSintent,830suggestURI,797suggestActionMsgattribute,820suggestActionMsgvalue,820suggestActionMsgColumnattribute,820–821suggestioncolumns,751suggestioncursor,752,820suggestionlist,751suggestionproviderscustom,796–818manifestfile,813–814planning,796SuggestURLProviderclass,797–807SuggestURLProviderprojectimplementationfiles,796–797userexperience,814–818enablingforglobalsearchinAndroid2.
2,754–756inAndroid2.
3,756–757overview,753simple,778–795implementationfiles,779–780planning,779searchactivity,784–789searchinvokeractivity,789–790SimpleSuggestionProviderclass,780–784userexperience,791–795suggestionrewriting,752suggestionscursor,751SUGGEST_MIME_TYPE,SearchManagerclass,802SuggestURLProviderclass,797–807SuggestUrlProviderclassgetType()methodandspecifyingMultipurposeInternetMailExtensions(MIME)types,802passingquerytosuggestionprovider:selectionargument,802–804populatingandreturninglistofcolumns,806–807projectimplementationfiles,796–797responsibilitiesof,797searchmetadataforcustomsuggestionproviders,804–805sourcecode,798suggestioncursorcolumns,805–806URIs,801–802SuggestUrlProvider.
javafile,796summaryattribute,267summaryproperty,267summaryOffattribute,277summaryOnattribute,277supportingdifferentscreensizes,1001–1002element,1001SurfaceManagerlibrary,7Surfaceobject,605Surface.
Callbackcallbacks,608surfaceCreated()method,609SurfaceHolder.
Callbackinterface,607SurfaceView,680suspendedoption,957SweepGradientclass,15Swing,JavaSE,2switchstatement,227syh.
permission.
STARTMYACTIVITYpermission,299,302Syncapplication,18syncfields,954–955syncingcontacts,impactsof,989–991synonyms,110synthesizeToFile()method,837systemmenus,231SystemPropertiesclass,614Ttcommand,38T-MobileG1,4t1_1_en_pstring,87t1_1_en_portresourceID,85t1_enportresourceID,85t1_enportstring,87t2resourceID,85t2string,87tab1,1084tab2,1084TabbedActionbar,1071tabbednavigation,1071–1084actionbarandmenuinteraction,1081–1083displayingmenu,1082menuitemsasactions,1083assigninguniformbehavior,1075–1077baseclasses,1073–1075examining,1084manifestfile,1083–1084navigationmodes,1079–1080obtainingactionbarinstance,1079scrollabledebugtextviewlayout,1080–1081tabbedlistener,1077–1078TableLayoutlayoutmanager,198,202–206Index1175TableRowelements,202–203tablets,forAndroid,5TabListener.
javafile,1072Tabsarea,1071TabWidgetwidget,17TEDconference,862telephonyAPIsSIP,571–574SMS,559–568e-mail,567–568folders,565–567monitoringincomingmessages,563–565sendingmessages,559–563telephonymanager,568–571telephonycomponents,ofAndroid,13–14TelephonyManagerclass,16,568–571TelephonyManager.
getLine1Number()function,570TelephonyProviderproject,19temperaturesensors,interpretingdatafrom,907TemperatureSensorproject,907TermsofService,999testharnesscreatingformenus,222–224addingregularmenuitems,225–226addingsecondarymenuitems,226creatingactivity,224–225creatingXMLlayout,224respondingtomenu-itemclicks,227–228settingupmenu,225tweakingAndroidManifest.
xmlfile,228–229planningfor2Dlayoutanimation,499TestListWidgetApplicationwidget,1122–1123test1string,792Test60SecBCR.
javafile,460,463Test60SecBCRService.
javafile,460,463testAccounts()method,962TestAppActivity.
javafile,390TestBCRfiles,461–462TestBCRproject,461TestBCRActivity.
javafile,428,461TestContactsDriverActivity.
javaclass,965TestContactsDriverActivity.
javafile,960,978,982,986TestHandlersDriverActivityactivity,418,422TestHandlersDriverActivity.
javafile,414testingdevices,different,1001TestLibActivity.
class,392TestLibActivity.
javafile,387TestListWidgetProvider.
ACTION_LIST_CLICKaction,1110TestListWidgetProvider.
javafile,1114testport_portresourceID,85testport_portstring,87TestReceiver.
javafile,428,430,461TestRemoteViewsFactory.
javafile,1114TestRemoteViewsService.
javafile,1114testSendBroadcast()method,432TestStandaloneBCRapplication,463teststring_allresourceID,85teststring_allstring,86testThread()function,409TestTimeDelayReceiver.
javafile,461test.
xmlfile,81textargument,838textcontrols,152–157AutoCompleteTextView,155–156EditText,154–155MultiAutoCompleteTextView,156–157TextView,153–154textmessaging,559textpackage,18TexttoSpeechAPIs.
SeeTTSAPIstext1constant,67,805text_2constant,805textColorattribute,197TextToSpeechclass,16,825,830,842TextToSpeech.
LANG_AVAILABLEintent,841TextToSpeech.
LANG_COUNTRY_AVAILABLEintent,841TextToSpeech.
LANG_COUNTRY_VAR_AVAILABLEintent,841TextToSpeech.
LANG_MISSING_DATAintent,841TextToSpeech.
LANG_NOT_SUPPORTEDintent,841TexturedSquareRendererclass,672–673,676textures,OpenGLabstractingcommonhandling,669–672drawingwith,672–673normalizedcoordinates,669overview,668–669TextViewcontrols,76,148–149,153–154,195,233,273,494,880TextViewfield,1021TextViewview,67,718TextViewwidget,17thefreewebdictionary.
com,806\"Theme.
Dialog.
AppError\"styles,198themes,197–198themes.
xmlfile,198thisvariable,407Threadobject,321ThreadGroupclass,342–343threadingandcomponents,399–403contentproviders,401externalservicecomponents,401mainthread,400–401threadpools,401threadutilities,401–403ThreadPolicymethod,58threadsbehaviorof,412–413pools,401utilities,401–403worker,408–413Index1176communicatingbetweenmainthreadsand,410–412invokingfrommenu,409–410threadbehavior,412–413ThreadSafeClientConnManager,317,319ThumbnailUtilsclass,193timeouts,consumingHTTPservices,318–319TimePickercontrol,167–168TimePickerwidget,17TimePickerDialog,264TimeUtilsclass,17Titlearea,1071titleattribute,267titleproperty,267TITLEvalue,618TitlesFragmentclass,1037,1040TNF(TypeNameFormat),931TNF_UNCHANGEDrecordtype,931toparameter,172Toastclass,263,563,1073Toastmessage,885toggle()method,161,163ToggleButtoncontrol,159–160,590Toolswindow,577toPixels()method,872touchevents,846toucheswithmaps,871–874touchscreensgestures,874–889custom,881GestureDetectorclass,878–881andGesturesBuilderapp,882–889pinchgesture,875–878MotionEvents,845–862draganddrop,859–862MotionEventobject,845–857recycling,857velocitytracker,857–859multi-touch,862–871postversion2.
2,871priortoversion2.
2,863–870toucheswithmaps,871–874toUri()method,1110–1111transactionfees,999transformationmatrices,516transitions,FragmentTransactionobjects,1034–1035translateanimation,498Translateexample,Google,366–375translatemethods,514tag,1034TranslationAnimationclass,17Translator.
javacode,367troublewords,838trueBtnTop,851TrueButtonclass,848–849,853trueLayoutTop,855tryOneOfThese(activity),128TTSengine,829,831–832TTS(TexttoSpeech)APIs,842advancedfeaturesofTTSengine,838–842earcons,839–840languagemethods,840–842playingsilence,840settingaudiostreams,839audiofiles,832–838overview,825–830usingalternativeengines,840utterances,830–832tv.
getText()method,195tweeninganimation,11,17TypeNameFormat(TNF),931type-to-search,enabling,777–778TYPE_AUTOMATIC,989TypeFaceclass,15TYPE_KEEP_SEPARATE,989TYPE_KEEP_TOGETHER,989UudpateAppWidgetfunction,740UI/ApplicationExerciserMonkey,1001UIframework,AndroidSDK,2UI(UserInterface),145–152advancedconcepts,11–13forAndroid,9withcodeoverview,147–149andXML,150–151withXMLandcode,150–151overview,149–150unbindService()method,354–355uniformbehavior,assigningfortabbednavigation,1075–1077UniformResourceIdentifiers.
SeeURIsUniformResourceIdentifiers(AndroidURIs),14uninstallingwidgetpackages,722unlocked,998upvector,635updatemethod,108,110,117updateAppWidget()function,740updateAppWidgetLocal()function,740Updaterapplication,18updatesofADT,checkingfor,27ofcontentproviders,108updatingandsigningapplications,294UploadApplicationscreen,1009uploadingapplications,1007–1010Uriclass,15,105,568URIparameter,managedQuery()method,47URIFunctionTesterclass,969UriMatcherclass,105,111,802URIs(UniformResourceIdentifiers)data,relationshiptointents,129Index1177overview,801–802passingwhereclausesthrough,104–105permissions,303–306incontentproviders,304–305passinginintents,303–304readingdatawith,100–102structureof,97–98urlfield,735UrlEncodedFormEntityclass,310Useasringtoneoption,280Usewithfield,837userexperienceofAndroidmarket,1010–1012UserInterface.
SeeUIUser'sCalendarData,requiredpermissionfor,296User'sContactData,requiredpermissionfor,296users'dataprotection,996User'sGuide,Android,944tag,1002–1003tag,895,906,914,933,1002–1003tag,305,599,1002–1003,1009uT(micro-Teslas),914utilpackage,18util.
concurrentpackage,18util.
concurrent.
atomicpackage,18util.
concurrent.
lockspackage,18utilities,date-related,737–738util.
jarpackage,18util.
loggingpackage,18util.
prefspackage,18util.
regexpackage,18Utilsclass,427,970Utils.
javaclass,413Utils.
javafile,427–428,433–434,461,463,969Utils.
logThreadSignature()method,408,411Utils.
logThreadSignature(tag)method,432util.
zippackage,18utterances,830–832Vvargument,289validityargument,289valuesstoring,272substitutable,803valuesdirectory,41,70,85values/strings.
xmlfile,797variablelengthIDfield,931variablelengthpayloadfield,931variablelengthtypefield,931.
vcffiles,950–951VelocityTracker,845,857–859videoplayingcontent,593–595recording,605–614VideoViewclass,594–595VideoViewcomponent,595VideoViewinterface,607VideoViewwidget,17,593VIEWaction,804,807,809viewanimation,2D,507–516addinganimationtoListView,511–514AnimationListenerclass,515–516overview,507–510providingdepthperceptionwithcamera,514–515transformationmatrices,516Viewattributes,196Viewclass,17,145,194,846viewgroups,9VIEWintent,130Viewmenu,1008viewmethod,810Viewobject,158,248,846–847,852,854,857viewpoint,635ViewAnimationclass,511ViewAnimationActivity,512ViewAnimationListenerclass,516ViewGroupclass,17,145,1033ViewHolderobject,192–193viewinglivefolders,697volume,625,629,636viewingbox,625,629View.
OnTouchListenerinterface,846–847views,9,29,146,694virtualkeyboardobject,846VirtualMachine(DalvikVM),6–8VirtualJaxapplication,916VirtualJaxWithRemapapplication,922vnd.
android.
cursor.
item,100vnd.
ms-excelsubtype,99VoiceDialerapplication,18VOICE_RECOGNITIONaudiosource,599v.
onTouchEvent(event),855WwakelocksabstractingwithLightedGreenRoomabstraction,449–455controllingfromtwoplaces,458WebKitlibrary,7WebViewclass,17,194web.
xmlfile,41weight,inLinearLayout,199–201WHEREclause,985whereclauses,104–106,116–117,803whereClauseargument,108whileloop,navigatingthroughcursorsusing,103White,Chris,4widgetbackgroundshapefile,727–728widgetconfigurator,715–716Index1178widgetdefinition,715,717–719,725widgetinstancecreation,719–720widgetinstanceID,716widgetlayoutfile,726–727widgetlayout-relatedfiles,726–728widgetmanagerclass,743widgetmodelabstractimplementationof,732–734implementationforbirthdaywidget,735–737interfacefor,731–732overview,730widgetproviderclass,712,715,728widgetprovidersmetadata,1121test,1114–1118widgetview,mouseclickeventcallbacks,722widgetscodefor,743definingprovider,724–725definingsize,725–726descriptionof,146designing,743extensionsfor,742–743implementingconfigurationactivity,738–742implementingprovider,728–730lifecycleof,716–722creatinginstanceonhomescreen,713–715deletingwidgetinstance,722onUpdatephase,720–721uninstallingwidgetpackages,722widgetdefinitionphase,717–719widgetinstancecreationphase,719–720widgetviewmouseclickeventcallbacksphase,722limitationsof,742–743mainlayoutfile,1120WiFilocationinformation,requiredpermissionfor,296WifiConfigurationclass,16WifiManagerclass,16WorkerThreadRunnableclass,410–411,413worldcoordinates,629,634wrappingcursors,707writeToParcel()method,357XXcomponent,852Xcoordinate,856x,y,zvalues,628XAL(ExtensibleAddressLanguage),15Xmlclass,17xmldirectory,70XML(ExtensibleMarkupLanguage)arbitraryresourcefiles,80–81layoutfiles,forpromptdialog,247menutagscheckablebehaviortags,241groupcategorytag,241menuenabling/disablingtag,242menuicontag,241menuitemshortcuts,242menuvisibility,242tosimulatesubmenu,241UIdevelopmentwith,149–151XMLfiles,70,72xmlfolder,41xml/searchable.
xmlfile,757,780,797xml\test_list_appwidget_provider.
xmlfile,1114xmlparserspackage,18XmlPullParser,81XmlResourceParser,81YYcoordinate,855YourGLESRendererclass,679Zzerosuggestionsmode,749–750ZIPfiles,creatingprojectsfrom,421,461zipaligntool,293–294,1007ZoomButtonwidget,17zoomIn()method,525zoomOut()method,525zoomToSpan()method,5,533
炭云怎么样?炭云(之前的碳云),国人商家,正规公司(哈尔滨桓林信息技术有限公司),主机之家测评介绍过多次。现在上海CN2共享IP的VPS有一款特价,上海cn2 vps,2核/384MB内存/8GB空间/800GB流量/77Mbps端口/共享IP/Hyper-v,188元/年,特别适合电信网络。有需要的可以关注一下。点击进入:炭云官方网站地址炭云vps套餐:套餐cpu内存硬盘流量/带宽ip价格购买上...
hostodo从2014年年底运作至今一直都是走低价促销侧率运作VPS,在市场上一直都是那种不温不火的品牌知名度,好在坚持了7年都还运作得好好的,站长觉得hostodo还是值得大家在买VPS的时候作为一个候选考虑项的。当前,hostodo有拉斯维加斯和迈阿密两个数据中心的VPS在促销,专门列出了2款VPS给8T流量/月,基于KVM虚拟+NVMe整列,年付送DirectAdmin授权(发ticket...
Moack怎么样?Moack(蘑菇主机)是一家成立于2016年的商家,据说是国人和韩国合资开办的主机商家,目前主要销售独立服务器,机房位于韩国MOACK机房,网络接入了kt/lg/kinx三条线路,目前到中国大陆的速度非常好,国内Ping值平均在45MS左右,而且商家的套餐比较便宜,针对国人有很多活动。不过目前如果购买机器如需现场处理,由于COVID-19越来越严重,MOACK办公楼里的人也被感染...
java抽奖程序为你推荐
enter苹果5中國信託商業銀行支持ipadeacceleratoraccess violation问题的解决办法!photoshop技术ps是一种什么技术??????重庆宽带测速重庆哪一种宽带网速最快tcpip上的netbiostcp 协议里的 netbios . 在哪,找不到用itunes备份如何使用itunes完整备份iPhone资料fusioncharts如何自定义FusionCharts图表上的工具提示?360chrome360浏览器和谷歌chrome比哪个好用
云服务器租用 中国十大域名注册商 日本vps 如何查询域名备案号 com域名抢注 virpus 主机点评 海外服务器 轻博客 一点优惠网 日本bb瘦 阿里校园 网络空间租赁 卡巴斯基免费试用 免费dns解析 卡巴斯基免费试用版 七夕快乐英语 1元域名 论坛主机 德隆中文网 更多