In my applicattion i need to go to de settings activity of the phone whith the next code:
`Intent myIntent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);
startActivity(myIntent);´
Then in the settings activity, when the user press BACK key, i want to return to my applicattion ¿it's possible?
Thanks
I think the reason is because you have put your code in onCreate() method. Try to movie it to onStart() method. Them when user click back button this method will be called.
For more info about activity life cycle please see this page
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With