I have copied a simple bit of animation code from the developer website. There is also a xml file called slide show in the drawable directory.
Main Java Section: ImageView img = (ImageView)findViewById(R.id.mainpic); img.setBackgroundResource(R.drawable.slideshow); AnimationDrawable frameAnimation = (AnimationDrawable) img.getBackground(); frameAnimation.start(); XML File: <animation-list xmlns:android="http://schemas.android.com/apk/res/ android" android:oneshot="false"> <item android:drawable="@drawable/pic01" android:duration="1500" /> <item android:drawable="@drawable/pic02" android:duration="1500" /> <item android:drawable="@drawable/pic03" android:duration="1500" /> <item android:drawable="@drawable/pic04" android:duration="1500" /> </animation-list> So this should create a animation of the 4 files above, which constantly rotate. And it works really well in the emulator, however when I try it on my device it waits a couple of seconds and then the app closes. No errors no nothing, My device is a Desire runing 2.1 and it works on a emulator on 2.1 and 2.2? Any ideas? -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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

