Difference between revisions of "Resources for Learning Android App Development"

From CDOT Wiki
Jump to: navigation, search
Line 14: Line 14:
 
'''5. Android Tutorial: Writing Your Own Content Provider [https://www.grokkingandroid.com/android-tutorial-writing-your-own-content-provider/]'''
 
'''5. Android Tutorial: Writing Your Own Content Provider [https://www.grokkingandroid.com/android-tutorial-writing-your-own-content-provider/]'''
  
'''6. What's the mechanism of setNotificationUri (Cursor)? [http://stackoverflow.com/questions/11802823/whats-the-mechanism-of-setnotificationuri]'''
+
'''6. Android Fundamentals: Working with Content Providers [http://mobile.tutsplus.com/tutorials/android/android-sdk_content-providers/ ]'''
  
'''7. Observing Content (2008) [http://mylifewithandroid.blogspot.ca/2008/03/observing-content.html]'''
+
'''7. Think Android - Content Provider Tutorials [http://thinkandroid.wordpress.com/category/android-tutorials/contentprovider-tutorials/]'''
* use case: "some component manipulates the persistent dataset that other components depend upon"
 
 
 
'''8. Android Fundamentals: Working with Content Providers [http://mobile.tutsplus.com/tutorials/android/android-sdk_content-providers/ ]'''
 
 
 
'''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]'''
+
'''8. What does a ContentResolver object do? [http://developer.android.com/guide/topics/providers/content-provider-basics.html]'''
 
<pre>
 
<pre>
 
Accessing a provider
 
Accessing a provider
Line 40: Line 35:
 
* API description of the ContentProvider class [http://developer.android.com/reference/android/content/ContentProvider.html]
 
* API description of the ContentProvider class [http://developer.android.com/reference/android/content/ContentProvider.html]
 
** "When a request is made via a ContentResolver, the system inspects the authority of the given URI and passes the request to the content provider registered with the authority."
 
** "When a request is made via a ContentResolver, the system inspects the authority of the given URI and passes the request to the content provider registered with the authority."
 +
 +
'''9. What's the mechanism of setNotificationUri (Cursor)? [http://stackoverflow.com/questions/11802823/whats-the-mechanism-of-setnotificationuri]'''
 +
 +
'''10. Observing Content (2008) [http://mylifewithandroid.blogspot.ca/2008/03/observing-content.html]'''
 +
* use case: "some component manipulates the persistent dataset that other components depend upon"

Revision as of 15:38, 5 October 2013


1. How to add Android SDK And sqlite3 in Mac Terminal command line and Eclipse with Android development tool? (Jose)

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. Android Fundamentals: Working with Content Providers [3]

7. Think Android - Content Provider Tutorials [4]

8. What does a ContentResolver object do? [5]

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.
  • API description of the ContentProvider class [6]
    • "When a request is made via a ContentResolver, the system inspects the authority of the given URI and passes the request to the content provider registered with the authority."

9. What's the mechanism of setNotificationUri (Cursor)? [7]

10. Observing Content (2008) [8]

  • use case: "some component manipulates the persistent dataset that other components depend upon"