File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java Micro Edition and the fly likes Progress Bar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Progress Bar " Watch "Progress Bar " New topic

Progress Bar

Pramod P Deore
Ranch Hand

Joined: Jul 15, 2008
Posts: 632

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?

Life is easy because we write the source code.....
manoj r patil
Ranch Hand

Joined: Jun 06, 2002
Posts: 181
How are you deriving the progress of application connecting to internet?

love your job and not your company;
...because you never know when your company will stop loving you!
Pramod P Deore
Ranch Hand

Joined: Jul 15, 2008
Posts: 632

Actually i don't know what logic should i use there.
Dushyant Chhetri
Ranch Hand

Joined: Oct 28, 2009
Posts: 75
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.

Pramod P Deore
Ranch Hand

Joined: Jul 15, 2008
Posts: 632

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.
I agree. Here's the link:
subject: Progress Bar
It's not a secret anymore!