我的应用程序已经在 Google Play 上发布,名为“Maheikol”。但在过去的一天,它因违反政策而被拒绝。
我的应用程序中有一个功能作为支持,用户可以在其中打电话、发短信和发电子邮件给我们。由于新政策,我的应用因通话和短信功能而被拒绝。
在我使用的清单中
<!-- phone call permissions-->
<uses-permission android:name="android.permission.CALL_PHONE"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.READ_CALL_LOG"/>
在 AppUtils.java 中
public static void makePhoneCall(Activity activity, String phoneNumber) {
if (phoneNumber != null) {
Intent callIntent = new Intent(Intent.ACTION_CALL);
callIntent.setData(Uri.parse("tel:" + phoneNumber));
if (PermissionUtils.isPermissionGranted(activity, PermissionUtils.CALL_PERMISSIONS, PermissionUtils.REQUEST_CALL)) {
activity.startActivity(callIntent);
}
}
}
public static void sendSMS(Activity activity, String phoneNumber, String text) {
if (phoneNumber != null) {
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("sms:" + phoneNumber));
intent.putExtra("sms_body", text);
try {
activity.startActivity(intent);
} catch (Exception e) {
e.printStackTrace();
}
}
}
呼啦一阵风
蝴蝶刀刀
慕容森
翻过高山走不出你
随时随地看视频慕课网APP
相关分类