I know, I can start the Settings-Activity with
Intent intent = new Intent(Settings.ACTION_DISPLAY_SETTINGS);
startActivityForResult(intent,1);
But how do I know if the animations are enabled in the first place?
I have an animation inside a custom view and only want to show it, if the animations are enabled in the settings. If they are disabled, I’d like to ask the user to enable them the first time he starts the application.
Check out http://developer.android.com/reference/android/provider/Settings.System.html.
You can read the flags:
If they are 0, then animations are disabled.