Changes

Jump to: navigation, search

MAP524/DPS924 Lecture 8

851 bytes added, 19:44, 2 August 2015
A look back at Intents
To get data back from an activity you started you need to use startActivityForResult() instead of startActivity(), [http://developer.android.com/intl/ja/reference/android/app/Activity.html#StartingActivities see here] for an explanation and example.
 
== Using an existing content provider ==
 
Android ships with many useful content providers, including the following:
* Browser - Stores data such as browser bookmarks, browser history, and so on
* CallLog - Stores data such as missed calls, call details, and so on
* Contacts - Stores contact details
* MediaStore - Stores media files such as audio, video, and images
* Settings - Stores the device ’ s settings and preferences
 
The [http://developer.android.com/intl/ja/guide/topics/providers/content-provider-basics.html Content Provider Basics] tutorial is a little verbose and scary, but that's kind of unavoidable with overdesigned nonsense like this.
 
One note about using content providers: there used to be a slightly simpler way to query them using managedQuery() but that function has been deprecated so you shouldn't use it in new code.

Navigation menu