11. ContentProvider
http://developer.android.com/reference/android/content/ContentProvider.html
The primary methods that need to be implemented are:
● onCreate() which is called to initialize the provider
● query(Uri, String[], String, String[], String) which returns data to the
caller
● insert(Uri, ContentValues) which inserts new data into the content
provider
● update(Uri, ContentValues, String, String[]) which updates existing data
in the content provider
● delete(Uri, String, String[]) which deletes data from the content
provider
● Why is it need?
● See also ContentResolver, SQLiteOpenHanhler,
SQLiteDatabase, SQLiteQueryBuilder, Cursor,
ManagedCursor.
11
12. Process Lifecycle
Foreground process Critical Priority
Visible process
High Priority
Service process
Background process
Low Priority
Empty process
12
22. Adding Platforms and Other
Components
● androidsdk<...>/tools/android (Linux or Mac)
● SDK Manager.exe (Windows)
Result:
● AVDs
● USB Drivers
● ...
22
23. Troubles
● Problems with jdk (don't use openjdk)
● ia32libs (aptget install ia32libs)
● Developing on a Device
● USB Vendor IDs (for Linux or Mac) Device ????
● USB Driver (for Windows)
23