Link to android os's settings

I am trying to link the android os settings page.

Switching to Phone Dail with Linking is a job.

 Linking.openURL('tel: +959 XXXXXXXX'); 

Can I use Linking to link to the android os settings page, for example android location settings ?

+9
react-native react-native-android
source share
1 answer

Linking.openURL can only open properly formatted URLs. There are no standardized URLs for Android settings . You will need to write your own code for this, and then create a React Native Module to invoke it.

Here is an example of Android code:

 public void openWifiSettings() { Intent intent = new Intent(Intent.ACTION_WIFI_SETTINGS); if (intent.resolveActivity(getPackageManager()) != null) { startActivity(intent); } } 
+12
source share

All Articles