我的一個應用程序已被Google從Google Play Store中刪除,違反了用戶數據政策。我收到聯繫人並將其發佈到我的服務器上以實現真正的來電者識別。如何僅通過Android應用程序獲取公共聯繫人
這是我如何獲取用戶聯繫人:
public ArrayList<CallHistoryModel> getdata() {
try {
managedCursor = contextnew.getContentResolver().query(CallLog.Calls.CONTENT_URI,
null, null, null, CallLog.Calls.DEFAULT_SORT_ORDER + " LIMIT 100");
} catch (SecurityException se) {
se.printStackTrace();
// Toast.makeText(contextnew,se.toString(),Toast.LENGTH_SHORT).show();
}
if (managedCursor.getCount()>0){
int number = managedCursor.getColumnIndex(CallLog.Calls.NUMBER);
managedCursor.moveToFirst();
do {
String phNumber = managedCursor.getString(number);
callHistoryModel = new CallHistoryModel();
char first_letter = getContactDisplayNameByNumber(phNumber).charAt(0);
callHistoryModel.setFirst_letter(first_letter);
callHistoryModel.setName(getContactDisplayNameByNumber(phNumber));
callHistoryModel.setPhone_number(phNumber);
callhistoryList.add(callHistoryModel);
} while (managedCursor.moveToNext());
managedCursor.close();}
return callhistoryList;
}
谷歌給我發電子郵件通知說:
我們不允許未經授權發佈或人的非公開聯繫方式的披露。
這裏我想知道,我們如何才能以編程方式獲得公共聯繫人。
沒有什麼做有關編程。至於你的問題 - 我想你應該問問他們想分享哪些聯繫人的用戶。 –
我都在問如何獲得公共聯繫。爲什麼你把它從主題中刪除。 –
define _public contacts _... –