This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one 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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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