在Android中获取provider_authority时出错

时间:2018-03-29 21:24:33

标签: android android-studio

我在尝试让provider_authority调用ContentResolver函数时遇到问题:

错误:

  

java.lang.IllegalArgumentException:Authority必须是非空的

代码:

Account p = getAccountInc(context);
String q = context.getString(R.string.provider_authority);
Bundle extra = bundle;
resolver2.requestSync(p,q,extra);

我已经查找了provider_authority是否重复,而在类R中,值是:

public static final int provider_authority=0x7f0e0036;

0 个答案:

没有答案