the first picture never loads with the while loop. Once the loop is removed the first picture loads just fine. right now it doesn't load the first pic, but will show the second after 5 seconds. Thanks
//start with picture 1 main.setImageResource(R.drawable.pic1); //after 5 seconds load another picture int pause = 5; while ( System.currentTimeMillis() <= startTime + (pause * 1001)){ if (System.currentTimeMillis() >= startTime + (pause * 1001)) { main.setImageResource(R.drawable.pic2); }} On Sep 26, 1:18 am, Kumar Bibek <coomar....@gmail.com> wrote: > Ummm, you should mention more details, as to what and how you are > doing things. Else, no one can answer your query. > > -Kumar Bibekhttp://techdroid.kbeanie.com > > On Sep 26, 12:45 pm, ArcDroid <jacobrjohn...@gmail.com> wrote: > > > > > Hello, > > I am trying to load a picture, then run a while loop. The problem is > > that the program runs the while loop and doesn't load the pictures > > until the loop has finished. Any help is appreciated. > > Thanks > > Jake -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en