作者热门文章
- mongodb - 在 MongoDB mapreduce 中,如何展平值对象?
- javascript - 对象传播与 Object.assign
- html - 输入类型 ="submit"Vs 按钮标签它们可以互换吗?
- sql - 使用 MongoDB 而不是 MS SQL Server 的优缺点
如何使用 android_intent 或 url_launcher 打开如下图所示的位置设置?
我尝试了一些方法,但没有奏效:
例子:
final AndroidIntent intent = new AndroidIntent(
action: 'action_view',
package: 'android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS'
);
intent.launch();
最佳答案
你可以使用android_intent
包但是 Action 不正确,你必须使用这个:
final AndroidIntent intent = new AndroidIntent(
action: 'android.settings.LOCATION_SOURCE_SETTINGS',);
intent.launch();
关于dart - 如何使用 android_intent 通过 flutter 打开位置设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52886232/
我正在使用android_intent Flutter插件,但无法启动其他应用程序。我收到错误“找不到 Activity 来处理Intent” 。 我的密码 if(Platform.isAndroid
如何使用 android_intent 或 url_launcher 打开如下图所示的位置设置? 我尝试了一些方法,但没有奏效: 例子: final AndroidIntent intent = ne
我是一名优秀的程序员,十分优秀!