![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
android api guides
文章平均质量分 90
OnePieceMan
这个作者很懒,什么都没留下…
展开
-
Android API Guides 之 App Resources(14) - Resource Types - More Type
More Resource TypesThis page defines more types of resources you can externalize, including:BoolXML resource that carries a boolean value.ColorXML resource that carries a color value (a hexade原创 2014-04-06 10:50:07 · 689 阅读 · 0 评论 -
Android API Guides 之 App Resources(7) - Resource Types - Animation
Animation ResourcesIN THIS DOCUMENTProperty AnimationView AnimationTween animationFrame animationSEE ALSOView AnimationProperty AnimationAn animation resource can d原创 2014-04-06 10:23:45 · 573 阅读 · 0 评论 -
Android API Guides 之 App Manifest(19) - <receiver>
SYNTAX: android:enabled=["true" | "false"] android:exported=["true" | "false"] android:icon="drawable resource" android:label="string resource" android:name="原创 2014-04-06 21:21:55 · 516 阅读 · 0 评论 -
Android API Guides 之 Introduction(2) - Device Compatibility
Device Compatibility Android is designed to run on many different types of devices, from phones to tablets and televisions. As a developer, the range of devices provides a huge potential audience f原创 2014-03-20 23:49:18 · 756 阅读 · 0 评论 -
Android API Guides 之 App Components(12) - Content Providers - Creating
Creating a Content ProviderIN THIS DOCUMENTDesigning Data StorageDesigning Content URIsImplementing the ContentProvider ClassRequired MethodsImplementing the query() meth原创 2014-03-31 10:20:11 · 579 阅读 · 0 评论 -
Android API Guides 之 App Manifest(6) - <category>
SYNTAX: android:name="string" />CONTAINED IN:DESCRIPTION:Adds a category name to an intent filter. See Intents and Intent Filters for details on intent filters and the role of category specifica原创 2014-04-06 21:10:02 · 568 阅读 · 0 评论 -
Android API Guides 之 App Manifest(1) - Structure
App ManifestIN THIS DOCUMENTStructure of the Manifest FileFile ConventionsFile FeaturesIntent FiltersIcons and LabelsPermissionsLibrariesEvery application must have an An原创 2014-04-06 21:04:05 · 818 阅读 · 0 评论 -
Android API Guides 之 App Resources(13) - Resource Types - Style
Style ResourceSEE ALSOStyles and ThemesA style resource defines the format and look for a UI. A style can be applied to an individual View (from within a layout file) or to an原创 2014-04-06 10:48:38 · 489 阅读 · 0 评论 -
Android API Guides 之 App Components(11) - Content Providers - Basics
Content Provider BasicsIN THIS DOCUMENTOverviewAccessing a providerContent URIsRetrieving Data from the ProviderRequesting read access permissionConstructing the qu原创 2014-03-31 10:18:05 · 615 阅读 · 0 评论 -
Android API Guides 之 App Components(7) - Services
ServicesQUICKVIEWA service can run in the background to perform work even while the user is in a different applicationA service can allow other components to bind to it, in order to in原创 2014-03-30 17:32:11 · 773 阅读 · 0 评论 -
Android API Guides 之 App Resources(11) - Resource Types - Menu
Menu ResourceSEE ALSOMenusA menu resource defines an application menu (Options Menu, Context Menu, or submenu) that can be inflated with MenuInflater.For a guide to using menus原创 2014-04-06 10:45:16 · 603 阅读 · 0 评论 -
Android API Guides 之 App Components(16) - App Widgets
App WidgetsIN THIS DOCUMENTThe BasicsDeclaring an App Widget in the ManifestAdding the AppWidgetProviderInfo MetadataCreating the App Widget LayoutUsing the AppWidgetProvider Class原创 2014-03-31 11:42:10 · 965 阅读 · 0 评论 -
Android API Guides 之 App Resources(4) - Handling Runtime Changes
Handling Runtime ChangesIN THIS DOCUMENTRetaining an Object During a Configuration ChangeHandling the Configuration Change YourselfSEE ALSOProviding ResourcesAccessing Reso原创 2014-04-06 10:17:08 · 550 阅读 · 0 评论 -
Android API Guides 之 App Resources(5) - Localizing with Resources
Localizing with ResourcesQUICKVIEWUse resource sets to create a localized app.Android loads the correct resource set for the user's language and locale.If localized resources are not a原创 2014-04-06 10:19:02 · 591 阅读 · 0 评论 -
Android API Guides 之 App Resources(3) - Accessing Resources
Accessing ResourcesQUICKVIEWResources can be referenced from code using integers fromR.java, such asR.drawable.myimageResources can be referenced from resources using a special XML syn原创 2014-04-06 10:14:51 · 655 阅读 · 0 评论 -
Android API Guides 之 App Resources(12) - Resource Types - String
String ResourcesA string resource provides text strings for your application with optional text styling and formatting. There are three types of resources that can provide your application with原创 2014-04-06 10:47:13 · 587 阅读 · 0 评论 -
Android API Guides 之 App Resources(10) - Resource Types - Layout
Layout ResourceSEE ALSOLayoutsA layout resource defines the architecture for the UI in an Activity or a component of a UI.FILE LOCATION:res/layout/filename.xmlThe filename wi原创 2014-04-06 10:43:28 · 614 阅读 · 0 评论 -
Android API Guides 之 App Resources(9) - Resource Types - Drawable
Drawable ResourcesSEE ALSO2D GraphicsA drawable resource is a general concept for a graphic that can be drawn to the screen and which you can retrieve with APIs such asgetDrawabl原创 2014-04-06 10:42:10 · 613 阅读 · 0 评论 -
Android API Guides 之 App Components(14) - Content Providers - Contacts Provider
Contacts ProviderQUICKVIEWAndroid's repository of information about people.Syncs with the web.Integrates social stream data.IN THIS DOCUMENTContacts Provider OrganizationRaw原创 2014-03-31 11:12:52 · 2987 阅读 · 0 评论 -
Android API Guides 之 App Components(15) - Content Providers - Storage Access Framework
Storage Access FrameworkIN THIS DOCUMENTSHOW MOREOverviewControl FlowWriting a Client AppWriting a Custom Document ProviderKEY CLASSESDocumentsProviderDocumentsContract原创 2014-03-31 11:15:13 · 5461 阅读 · 0 评论 -
Android API Guides 之 App Components(18) - Processes and Threads
Processes and ThreadsQUICKVIEWEvery application runs in its own process and all components of the application run in that process, by defaultAny slow, blocking operations in an activit原创 2014-03-31 11:46:11 · 879 阅读 · 0 评论 -
Android API Guides 之 App Components(6) - Activities - Task and Back Stack
Tasks and Back StackQUICKVIEWAll activities belong to a taskA task contains a collection of activities in the order in which the user interacts with themTasks can move to the backgroun原创 2014-03-30 17:29:13 · 784 阅读 · 0 评论 -
Android API Guides 之 App Components(8) - Services - Bound Services
Bound ServicesQUICKVIEWA bound service allows other components to bind to it, in order to interact with it and perform interprocess communicationA bound service is destroyed once all c原创 2014-03-31 10:07:46 · 444 阅读 · 0 评论 -
Android API Guides 之 App Components(9) - Services - AIDL
Android Interface Definition Language (AIDL)IN THIS DOCUMENTDefining an AIDL InterfaceCreate the .aidl fileImplement the interfaceExpose the interface to clientsPassing Objects o原创 2014-03-31 10:09:13 · 612 阅读 · 0 评论 -
Android API Guides 之 App Components(10) - Content Providers
Content ProvidersTOPICSContent Provider BasicsCreating a Content ProviderCalendar ProviderContacts ProviderRELATED SAMPLESContact Manager application"Cursor (People)""Cursor原创 2014-03-31 10:16:32 · 434 阅读 · 0 评论 -
Android API Guides 之 App Components(13) - Content Providers - Calendar Provider
Calendar ProviderIN THIS DOCUMENTBasicsUser PermissionsCalendars tableQuerying a calendarModifying a calendarInserting a calendarEvents tableAdding EventsUpdating EventsDelet原创 2014-03-31 10:26:51 · 547 阅读 · 0 评论 -
Android API Guides 之 App Resources(2) - Providing Resources
Providing ResourcesQUICKVIEWDifferent types of resources belong in different subdirectories of res/Alternative resources provide configuration-specific resource filesAlways include def原创 2014-04-06 10:12:53 · 614 阅读 · 0 评论 -
Android API Guides 之 App Resources(6) - Resource Types
Resource TypesSEE ALSOProviding ResourcesAccessing ResourcesEach of the documents in this section describe the usage, format and syntax for a certain type of application resource原创 2014-04-06 10:21:55 · 454 阅读 · 0 评论 -
Android API Guides 之 App Manifest(4) - <activity-alias>
SYNTAX: android:enabled=["true" | "false"] android:exported=["true" | "false"] android:icon="drawable resource" android:label="string resource"原创 2014-04-06 21:08:16 · 806 阅读 · 0 评论 -
Android API Guides 之 App Manifest(3) - <activity>
SYNTAX: android:allowTaskReparenting=["true" | "false"] android:alwaysRetainTaskState=["true" | "false"] android:clearTaskOnLaunch=["true" | "false"] android:configChan原创 2014-04-06 21:06:58 · 1009 阅读 · 0 评论 -
Android API Guides 之 App Manifest(2) - <action>
SYNTAX: android:name="string" />CONTAINED IN:DESCRIPTION:Adds an action to an intent filter. An element must contain one or more elements. If it doesn't contain any, no Intent objects will原创 2014-04-06 21:05:44 · 565 阅读 · 0 评论 -
Android API Guides 之 App Components(17) - App Widgets - App Widget Host
App Widget HostIN THIS DOCUMENTBinding App WidgetsBinding app widgets on Android 4.0 and lowerBinding app widgets on Android 4.1 and higherHost ResponsibilitiesAndroid 3.原创 2014-03-31 11:44:23 · 927 阅读 · 0 评论 -
Android API Guides 之 App Resources(1) - Overview
Resources OverviewTOPICSProviding ResourcesAccessing ResourcesHandling Runtime ChangesLocalizationREFERENCEResource TypesYou should always externalize resources such as i原创 2014-04-06 10:11:08 · 536 阅读 · 0 评论 -
Android API Guides 之 App Resources(8) - Resource Types - Color
Color State List ResourceSEE ALSOColor (simple value)A ColorStateList is an object you can define in XML that you can apply as a color, but will actually change colors, dependi原创 2014-04-06 10:25:23 · 605 阅读 · 0 评论 -
Android API Guides 之 App Components(5) - Activities - Loaders
LoadersIN THIS DOCUMENTLoader API SummaryUsing Loaders in an ApplicationStarting a LoaderRestarting a LoaderUsing the LoaderManager CallbacksExampleMore ExamplesKEY CLA原创 2014-03-30 17:26:55 · 522 阅读 · 0 评论 -
Android API Guides 之 App Components(4) - Activities - Fragments
FragmentsQUICKVIEWFragments decompose application functionality and UI into reusable modulesAdd multiple fragments to a screen to avoid switching activitiesFragments have their own lif原创 2014-03-30 17:23:02 · 491 阅读 · 0 评论 -
Android API Guides 之 App Components(3) - Activities
ActivitiesQUICKVIEWAn activity provides a user interface for a single screen in your applicationActivities can move into the background and then be resumed with their state restored原创 2014-03-30 17:19:05 · 608 阅读 · 0 评论 -
Android API Guides 之 App Components(2) - Intents and Intent Filters - Common Intents
Common IntentsIN THIS DOCUMENTSHOW MORECameraContacts/People AppEmailFile StorageMapsMusic or VideoPhoneSettingsText MessagingWeb BrowserSEE ALSOIntents and Intent Filters原创 2014-03-30 17:09:50 · 1610 阅读 · 0 评论 -
Android API Guides 之 App Components(1) - Intents and Intent Filters
Intents and Intent FiltersIN THIS DOCUMENTIntent TypesBuilding an IntentExample explicit intentExample implicit intentForcing an app chooserReceiving an Implicit Intent原创 2014-03-30 15:20:25 · 1181 阅读 · 0 评论 -
Android API Guides 之 Introduction(3) - System Permissions
System PermissionsIN THIS DOCUMENTSecurity ArchitectureApplication SigningUser IDs and File AccessUsing PermissionsDeclaring and Enforcing Permissions...in AndroidManifest.xml.原创 2014-03-29 23:44:58 · 852 阅读 · 0 评论