0

I want show/hide an icon of gps on status bar in my app if GPS enable/disable (The same icon of Wifi).

I want look GPS enable or disable while my app is running.

Zombie
  • 1,965
  • 2
  • 20
  • 34
mum
  • 1,637
  • 11
  • 34
  • 58
  • You need to have an icon to enable and disable GPS in your application. Is this your question? Sorry, it isn't much clear – AnhSirk Dasarp Oct 20 '12 at 04:38
  • @AnhSirk Dasarp : Yes, But I want put it on Status Bar – mum Oct 20 '12 at 04:41
  • Doesn't it come on automatically? Eithor ways You should look into Notification Manager. – st0le Oct 20 '12 at 04:48
  • "I want show/hide an icon of gps on status bar in my app if GPS enable/disable (The same icon of Wifi)" -- this happens automatically by the operating system. – CommonsWare Oct 20 '12 at 10:48

1 Answers1

1

It would be on the wrong side, and it would make an entry in the pull-down menu, but you could create an ongoing notification that would display an icon (although it wouldn't be animated) until you tell it to stop.

toadzky
  • 3,806
  • 1
  • 15
  • 26