Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I open the Settings application from my application? [duplicate]

In an iPhone app I'm working on, the user needs to enter some configuration via the settings application before my app will be able to connect to a server and run. Right now when the user first launches my app, I display an alert explaining that the user should go to settings, enter the config details and then relaunch, but this isn't ideal.

Unfortunately there's no way for me to provide sensible defaults for this app, the server host names, user accounts etc. will vary for each user. I think the best I can hope for is to show an alert explaining that some configuration needs to be entered via settings, and provide a "Take me there..." button that will open settings and then open the section in settings for my app. If that's not possible, opening settings is better than nothing.

I vaguely remember that the iPhone jailbreaking people had figured out a way to launch settings or other apps via a funny URL or phone number in the Addressbook, but I'm not finding any info about it in Google.

:(

like image 980
Mike Akers Avatar asked Dec 18 '08 07:12

Mike Akers


People also ask

How do I open app settings?

From the Home screen, tap the Apps icon (in the QuickTap Bar) > the Apps tab (if necessary) > Settings .

Why do I have 2 settings app?

Thanks! Those are just the Settings for Secure Folder (everything in there is like a separate section of your phone for obvious reasons). So if you install an app there, for instance, you'll see two listings (although the secure one can only be viewed in the secure partition).

Why do I have two phone apps on my Android?

Two are the same version and not set as default app, but are using memory and battery at a high frequency. The third phone application is the default calling app and the latest version. Welcome to Android Central! This is normal.


1 Answers

As far as I know there's no sanctioned way to open Settings from another app.

In my opinion you should just ask for the values if you need them at launch, storing them in your NSUserDefaults and possibly directing your users to look in Settings.app if they need to change those settings in the future.

Unfortunately that means maintaining some minimal UI for your user to fill in their settings during that first launch, but it seems better from a UX perspective to me than denying the user the joy of using the app immediately.

like image 200
Ashley Clark Avatar answered Oct 18 '22 18:10

Ashley Clark