Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to open Settings of Android Phone on a button click in our Android App #14415

Closed
arunkumarrmrj opened this issue Jun 9, 2017 · 3 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@arunkumarrmrj
Copy link

Description

I'm using React-Native (0.43.1) for making Android application. There is scenario where I need to check whether internet connectivity is present or not. If there is no internet connectivity then I need show a button which will open device settings (through which user can enable his connectivity).

Reproduction Steps and Sample Code

Linking.canOpenURL('app-settings:')
.then(supported => {
if (!supported) {
console.log('Can't handle url: ' + url);
} else {
return Linking.openURL('app-settings:');
}
}).catch(err => console.error('An error occurred', err));

@hramos
Copy link
Contributor

hramos commented Jun 9, 2017

This issue looks like a question that would be best asked on StackOverflow.

StackOverflow is amazing for Q&A: it has a reputation system, voting, the ability to mark a question as answered. Because of the reputation system it is likely the community will see and answer your question there. This also helps us use the GitHub bug tracker for bugs only.

Will close this as this is really a question that should be asked on StackOverflow.

@hramos hramos closed this as completed Jun 9, 2017
@arunkumarrmrj
Copy link
Author

Ok You will send exact answer link

@toearth
Copy link

toearth commented Dec 27, 2017

+1

@facebook facebook locked as resolved and limited conversation to collaborators Jun 9, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants