【发布时间】:2018-02-16 09:01:30
【问题描述】:
我正在尝试使用Android Intents 通过单击按钮从 Chrome(在 Android 上)打开位置设置。我正在关注 Barcode Scanner 示例并尝试以类似的方式对 url 进行编码。 对于我尝试过的位置:-
const uri = "intent://com.google.android.gms.location.settings.GOOGLE_LOCATION_SETTINGS#Intent;action=com.google.android.gms.location.settings.GOOGLE_LOCATION_SETTINGS;end"
我也试过用这个打开设置:-
const uri = "intent://ACTION_SETTINGS#Intent;action=android.provider.Settings.ACTION_SETTINGS;end"
或者这个
const uri = "intent://android.provider.Settings.ACTION_SETTINGS#Intent;action=android.provider.Settings.ACTION_SETTINGS;end"
但似乎没有任何效果。任何帮助表示赞赏。
我正在使用 href 标记将它附加到按钮上。
【问题讨论】:
标签: android google-chrome web browser location