Samsung android 6.0 how to get dual sim call logs with sim slot id? -


samsung(dual sim) before offical android 6.0(not cm) device, call logs sim slot id, samsung(dual sim) android 6.0+ device issue:

string  slotid = cursor.getstring(cursor.getcolumnindex(calllog.calls.phone_account_id));  <i>slotid</i> = null; in device (huawei mate 8) work fine 

did samsung modify com.android.providers.contacts , contacts2.db?

can guide through solution this?

update news : find 1 solution

  boolean s_bsamsung; if (build.version_codes.m <= build.version.sdk_int && s_bsamsung){    uri = uri.parse("content://logs/call"); }else {   uri = uri.parse(calllog.calls.content_uri); } 

use sim_id find sim slot


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -