This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Progress Bar

 
Pramod P Deore
Ranch Hand
Posts: 632
Android Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello Everybody,

I am developing one application.In this i have to connect to the internet. I had used one progress bar to show the progress of connecting to the internet. when i press the connect button the progress bar starts, but many times application is connected but progress bar is not completed or some time progress bar completed but application is not yet connected to the internet.

how to solve this problem?
 
manoj r patil
Ranch Hand
Posts: 181
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you deriving the progress of application connecting to internet?
 
Pramod P Deore
Ranch Hand
Posts: 632
Android Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually i don't know what logic should i use there.
 
Dushyant Chhetri
Ranch Hand
Posts: 75
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The post seems pretty old but this is a common issue , I too had a nice research trying hands at different methods ti implement the same..

Looks like you need to use Gauge Class.
Look for a working application in WTK sample application..



This can be manipulated to be used as a dynamic progressiv ebar or infinitely running bar.

For customized ones you may try and use your own canvas Progress bar.

Its fun implementing it.

Enjoy..
 
Pramod P Deore
Ranch Hand
Posts: 632
Android Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Dushyant for reply,

Now I have solved problem. I had draw a cirlce fill it with 4 colors. Using TimerTask i have rotated circle until I don't get data. After receiving data I display the Data. I have really have fun implementing this task.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic