ah-oh, i found that VideoView works in onCreate()... :) On Wed, Jul 9, 2008 at 10:01 AM, Hong <[EMAIL PROTECTED]> wrote:
> Hi, > > How do I play a video file (it uses SurfaceView) on Activity starts? > I can play it by pressing a button to play it, but not in methods like > onCreate() and onStart(). > MediaPlayer.prepare() will just crash. So is there any way to auto-play a > video file on Activity starts? > > Thanks > Hong > --~--~---------~--~----~------------~-------~--~----~ 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] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

