<provider
android:name="com.tsh.database.PersonDbProvider"
android:authorities="com.tsh.database.PersonDbProvider">
</provider>
package com.tsh.database;
import android.content.ContentProvider;
android.content.ContentValues;
android.database.Cursor;
android.net.Uri;
public class PersonDbProvider extends ContentProvider {
@Override
boolean onCreate() {
// TODO Auto-generated method stub
return false;
}
@Override
public Cursor query(Uri uri,String[] projection,String selection,String[] selectionArgs,String sortOrder) {
null String getType(Uri uri) {
Uri insert(Uri uri,ContentValues values) {
int delete(Uri uri,String[] selectionArgs) {
return 0 update(Uri uri,ContentValues values,1)">;
}
}