This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Android and the fly likes is it possible to display progress bar switching between one activity to another activity in android Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "is it possible to display progress bar switching between one activity to another activity in android" Watch "is it possible to display progress bar switching between one activity to another activity in android" New topic
Author

is it possible to display progress bar switching between one activity to another activity in android

vijayakumar durai
Ranch Hand

Joined: Aug 18, 2008
Posts: 153
Hi friends

I want to display progress bar from moving one activity to another activity .it take time. it will display black screen when activity two is getting value from web server is it possible? if it is can anybody give example


any help would be appreciated


Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
it take time. it will display black screen when activity two is getting value from web server

That's an indication you're doing it wrong. Anything time-consuming should not be done in the GUI thread, but in an AsyncTask in the background. You can display a message like "fetching data from server" or something like that while the network call hasn't finished, but all Activity lifecycle methods should return quickly. (They *must* return quickly, actually, because Android will terminate activities that don't respond within a certain timeframe - which can be as short as 10 seconds or so.)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: is it possible to display progress bar switching between one activity to another activity in android
 
Similar Threads
progressbar library
How to create status/progress bar in java using threads?
Progress Bar
How to create progress/status bar in java?
Extending thread class