我有一條SQL語句可用於從我的Android sqlite3數據庫返回不同的行,我想通過ContentProvider的查詢來傳遞它。 例如: select lastName from peopleTable where upper(lastName) like upper("%smith%");
必須 select DISTINCT lastName from peopleTable whe
我試圖查詢活動外的聯繫人內容提供者。但managedQuery是Activity的一種方法。有沒有其他的類/方法可以用來代替managedQuery? 這裏是我的代碼: class MyActivity extends Activity {
private Cursor getContacts() {
Uri uri = ContactsContract.Contacts.CONTE
我想在我的個人內容提供商中存儲文件音頻。 我保存記錄: Uri uri = getContentResolver()。insert(CONTENT_URI,values); OutputStream os = getContentResolver()。openOutputStream(uri); 但getContentResolver()。openOutputStream(uri);拋出: 10-