关于 SO 的问题之一中提到的 Gmail.java 链接已损坏。
我的代码是
String account="abc.xyz@gmail.com";
Uri LABELS_URI = Uri.parse("content://gmail-ls/unread/");
Log.d("pavan","label "+LABELS_URI );
Uri ACCOUNT_URI = Uri.withAppendedPath(LABELS_URI, account);
Log.d("pavan","label "+ACCOUNT_URI );
ContentResolver contentResolver= this.getContentResolver();
Log.d("pavan","contentResolver "+contentResolver );
Cursor cursor = contentResolver.query(ACCOUNT_URI, null, null, null, null);
但是 contentResolver 行抛出错误,logcat 说:找不到 gmail-ls 的提供者信息。
任何想法如何解决这个问题?