On Sun, Dec 21, 2008 at 8:05 AM, craiget <[email protected]> wrote: > > Hello, > > In my application there is a data structure that must be loaded from a > file when the application starts. Until this structure is loaded, the > application cannot be interacted with in any meaningful way. Loading > this static structure typically takes 1-2 seconds on the G1. My > concern is that different devices may have different load times, so I > planned to use a ProgressBar to show the loading. > > What is the best way to do pre-loading without annoying/confusing the > user? > > 1) Create an Alert.Dialog to contain a progress bar that cannot be > dismissed until the loading is complete?
That seems the most sensible choice. You should try to handle nicely the case where the user wants to leave by just pressing home or back. Would it make sense to store part of this in an Application object so that you don't have to loose it immediately when switching activities? R/ > 2) Create full-screen "Loading" View and reject keystrokes? Then > replace the view with the "Main" view when loading is complete? > > 3) Other ideas? > > (Certainly there are Lots Of Ways to force a loading screen - I'm > trying to find a Good Way! =) > > Thank you for any suggestions. > > CT > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

