0

The iPhone has this swirling icon, which you can make appear when the Internet is working behind in the background. It's a VERY simple call to turn it on/off.

Does Android have anything like this? How do I call it and how does it work?

enter image description here

Ethan Allen
  • 14,425
  • 24
  • 101
  • 194
  • Most android devices already have a network usage graphic in the status bar which displays when the device is sending\ receiving data. – Wesley Wiser Nov 28 '12 at 04:20

3 Answers3

1

You should display this in the ActionBar.

The simplest way

requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
setProgressBarIndeterminateVisibility(true);

Or using ActionBarSherlock for backwards compatibility

requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
setSupportProgressBarIndeterminateVisibility(true);
smith324
  • 13,020
  • 9
  • 37
  • 58
0

No, i haven't seen it on android yet. However with ICS and above, we see 2 arrows accompanying the WiFi or 3G to indicate if there is activity on the network. However it may not be possible to programmatically control it.

You could otherwise use a indeterminate progress bar within your activity to show background work.

Royston Pinto
  • 6,681
  • 2
  • 28
  • 46
0

You could try using Android Notifications and use an AnimationDrawable. Check this answer. (Note that I haven't tried it).

Community
  • 1
  • 1
Jan S.
  • 10,328
  • 3
  • 31
  • 36