Android发送短信许可可在其他23+设备上使用,但不适用于OnePlus 5 [英] Android Send SMS Permission working on other 23+ devices but not with the OnePlus 5

查看:79
本文介绍了Android发送短信许可可在其他23+设备上使用,但不适用于OnePlus 5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序,该应用程序请求用户许可发送SMS,然后在后台发送格式化的SMS.除我的新OnePlus 5外,该功能还可在其他23+设备上使用.

I have an application that requests permission to send SMS from the user then sends a formatted SMS in the background. This works on all other 23+ devices except my new OnePlus 5.

有人知道会发生什么吗?

Does anyone know what might be going on?

推荐答案

可能是由于第三方应用程序许可而发生的. 一加使用Oxygen Os,并通过Oxygen OS中的自定义设置视图管理设置.

May be it is happening because of the third party app permission. One plus uses Oxygen Os and Settings are managed from a custom settings view in Oxygen OS.

您应该改为打开应用程序的设置"页面

You should open the application Settings page instead

Intent intent = new Intent();
intent.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
Uri uri = Uri.fromParts("package", getPackageName(), null);
intent.setData(uri);
startActivity(intent);

这篇关于Android发送短信许可可在其他23+设备上使用,但不适用于OnePlus 5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆