I am guessing he wants a splash screen... show an image while he loads some data or something in the background.. then when all done, starts up and the image goes away. Do a search here for splash screen. There are plenty of examples that show how to do it.
On Sat, Feb 13, 2010 at 1:24 PM, Mark Murphy <[email protected]>wrote: > Nox wrote: > > In a simple Java project I would use this command and I also don´t > > know what kind of command I´ll have to use to see the picture: > > > > public class waiting { > > public static void main(String[] args) { > > int seconds = 5; > > System.out.println("Waiting: " + seconds); > > try { > > Thread.sleep(5000); > > } catch (InterruptedException e) {} > > System.out.println("Done"); > > > > > > > > } > > } > > Virtually none of that should be used in an Android application. > > Bear in mind that *nothing* you do in, say, onCreate() to affect the UI > will take effect until *after you return from onCreate()*. Sleeping on > the main application ("UI") thread will only make things worse. > > > Do you know what to do? > > No, because you haven't really defined the problem in Android terms. > Saying "I want to see a picture while starting the app" leaves many > possibilities. > > What is the trigger for making the picture go away? Is it a user event > (e.g., a click)? Is it the passage of a fixed amount of time? Is it when > something you are doing in a background thread (e.g., AsyncTask) completes? > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com | http://twitter.com/commonsguy > > _The Busy Coder's Guide to *Advanced* Android Development_ > Version 1.3 Available! > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" 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-developers?hl=en

