Opening Location Settings Activity from Chrome on Android
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to open location settings from Chrome (on Android) on a button click using Android Intents . I am following the Barcode Scanner example and tried encoding the url similar way. For location I have tried this:- const uri = "intent://com.google.android.gms.location.settings.GOOGLE_LOCATION_SETTINGS#Intent;action=com.google.android.gms.location.settings.GOOGLE_LOCATION_SETTINGS;end" I also tried opening settings using this:- const uri = "intent://ACTION_SETTINGS#Intent;action=android.provider.Settings.ACTION_SETTINGS;end" or this