Difference between revisions of "Resources for Learning Android App Development"
Line 22: | Line 22: | ||
'''9. Think Android - Content Provider Tutorials [http://thinkandroid.wordpress.com/category/android-tutorials/contentprovider-tutorials/]''' | '''9. Think Android - Content Provider Tutorials [http://thinkandroid.wordpress.com/category/android-tutorials/contentprovider-tutorials/]''' | ||
+ | |||
+ | '''10. What does a ContentResolver object do? [http://developer.android.com/guide/topics/providers/content-provider-basics.html]''' | ||
+ | <pre> | ||
+ | Accessing a provider | ||
+ | |||
+ | An application accesses the data from a content provider with a ContentResolver client object. | ||
+ | This object has methods that call identically-named methods in the provider object, an instance | ||
+ | of one of the concrete subclasses of ContentProvider. The ContentResolver methods provide the | ||
+ | basic "CRUD" (create, retrieve, update, and delete) functions of persistent storage. | ||
+ | |||
+ | The ContentResolver object in the client application's process and the ContentProvider object | ||
+ | in the application that owns the provider automatically handle inter-process communication. | ||
+ | |||
+ | ContentProvider also acts as an abstraction layer between its repository of data and the external | ||
+ | appearance of data as tables. | ||
+ | </pre> |
Revision as of 15:32, 5 October 2013
2. What will happen when the following Android code is executed? (Gideon)
- "android:onClick="hello_clicked" - the "hello_clicked" method is not programmed in the Java class
3. What kind of "memory addresses" are generated in R.java?
4. Alternative for the deprecated People class in Android [1]
5. Android Tutorial: Writing Your Own Content Provider [2]
6. What's the mechanism of setNotificationUri (Cursor)? [3]
7. Observing Content (2008) [4]
- use case: "some component manipulates the persistent dataset that other components depend upon"
8. Android Fundamentals: Working with Content Providers [5]
9. Think Android - Content Provider Tutorials [6]
10. What does a ContentResolver object do? [7]
Accessing a provider An application accesses the data from a content provider with a ContentResolver client object. This object has methods that call identically-named methods in the provider object, an instance of one of the concrete subclasses of ContentProvider. The ContentResolver methods provide the basic "CRUD" (create, retrieve, update, and delete) functions of persistent storage. The ContentResolver object in the client application's process and the ContentProvider object in the application that owns the provider automatically handle inter-process communication. ContentProvider also acts as an abstraction layer between its repository of data and the external appearance of data as tables.