@Override publicintdelete(Uri uri, String selection, String[] selectionArgs) { // Implement this to handle requests to delete one or more rows. thrownewUnsupportedOperationException("Not yet implemented"); }
@Override public String getType(Uri uri) { // TODO: Implement this to handle requests for the MIME type of the data // at the given URI. thrownewUnsupportedOperationException("Not yet implemented"); }
@Override public Uri insert(Uri uri, ContentValues values) { // TODO: Implement this to handle requests to insert a new row. return myDAO.DAOinsert(values); }
@Override publicbooleanonCreate() { // TODO: Implement this to initialize your content provider on startup. Context context=getContext(); myDAO=newMyDAO(context); returnfalse; }
@Override public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) { // TODO: Implement this to handle query requests from clients. thrownewUnsupportedOperationException("Not yet implemented"); }
@Override publicintupdate(Uri uri, ContentValues values, String selection, String[] selectionArgs) { // TODO: Implement this to handle requests to update one or more rows. thrownewUnsupportedOperationException("Not yet implemented"); } }