I want to create an Activity in Android 2.3 when the application starts that checks some needed things by the application, then puts a check sign and then the text of the thing that is checked.
For example:
- “GPS Provider enabled” text is shown, if it is enabled, then a check sign appears on its left (if not a stop sign)
- Below the first one, “Network Provider enabled” text is shown, if it is enabled, then a check sign appears on its left (if not a stop
sign)
And so on.
I’d like to make it as an animation, if possible. Any ideas?
Thanks in advance!
In your activity’s
onResume()write this below code to check ifGPS/Network Providerenabled of not and depending on that write your other code.Use ToggelButtons to indicate if they are available or not.