应用已在Playstore中上传。 如果我使用链接获取错误
,它也无法在Playstore中搜索到通过提及我的框架的Content provider文件--->删除 删除方法在这里:
public class ContentProviderClass extends ContentProvider {
public static final int OUTBOX = 90;
public static final int OUTBOX_WITH_STATUS = 150;
public static final int OUTBOX_WITH_ID = 156;
private static final UriMatcher sUriMatcher = buildUriMatcher();
private FrameworkDBHelper mOpenHelper;
@Override
public boolean onCreate() {
mOpenHelper = new FrameworkDBHelper(getContext());
return true;
}
@Override
public int delete(Uri uri, String selection, String[] selectionArgs) {
final SQLiteDatabase db = mOpenHelper.getReadableDatabase();
final int match = sUriMatcher.match(uri);
int rowsDeleted=0;
switch(match)
{
case OUTBOX:{
rowsDeleted = db.delete(OutboxContract.OutboxEntry.TABLE_NAME,
selection,
selectionArgs);
break;
}
default:
throw new UnsupportedOperationException("Unknown URI: " + uri);
}
if(selection == null || rowsDeleted != 0)
getContext().getContentResolver().notifyChange(uri,null);
return rowsDeleted;
}
}
解决此问题的解决方案是什么?