关于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的提供商信息。
任何想法如何解决这个问题?