Difference between revisions of "Resources for Learning Android App Development"
(14 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
---- | ---- | ||
'''[[Jose Mac |1. How to add Android SDK And sqlite3 in Mac Terminal command line and Eclipse with Android development tool? (Jose)]]''' | '''[[Jose Mac |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? Please explain the result. (Gideon)''' | ||
+ | <pre> | ||
+ | - "android:onClick="hello_clicked" | ||
+ | - 1. the "hello_clicked" method is not programmed in the Java class | ||
+ | - 2. the "hello_clicked" method is declared but has no body in the Java class | ||
+ | </pre> | ||
+ | |||
+ | '''3. What kind of "memory addresses" are generated in R.java?''' | ||
+ | |||
+ | '''4. Alternative for the deprecated People class in Android ''' [http://stackoverflow.com/questions/9247093/alternative-for-the-deprecated-people-class-in-android] | ||
+ | |||
+ | '''5. Android Tutorial: Writing Your Own Content Provider [https://www.grokkingandroid.com/android-tutorial-writing-your-own-content-provider/]''' | ||
+ | |||
+ | '''6. Android Fundamentals: Working with Content Providers [http://mobile.tutsplus.com/tutorials/android/android-sdk_content-providers/ ]''' | ||
+ | |||
+ | '''7. Think Android - Content Provider Tutorials [http://thinkandroid.wordpress.com/category/android-tutorials/contentprovider-tutorials/]''' | ||
+ | |||
+ | '''8. 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> | ||
+ | * 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." | ||
+ | |||
+ | '''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" | ||
+ | |||
+ | '''11. When is the onCreate() method called for a content provider? [http://stackoverflow.com/questions/9798715/oncreate-of-content-provider]''' |
Latest revision as of 12:52, 22 October 2013
2. What will happen when the following Android code is executed? Please explain the result. (Gideon)
- "android:onClick="hello_clicked" - 1. the "hello_clicked" method is not programmed in the Java class - 2. the "hello_clicked" method is declared but has no body 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"
11. When is the onCreate() method called for a content provider? [9]