Hi all,

I have written a small media player application. I tried to play all
the audio files (android supported media files). .mid, .mp3 files are
playing well with showing MediaController.

But when I tried to play .ogg file, I got the following exception.

W/WindowManager(   74): Requested window null does not exist

W/WindowManager(   74): java.lang.RuntimeException

W/WindowManager(   74):         at
com.android.server.WindowManagerService.windowForClientLocked
(WindowManagerService.java:7767)

W/WindowManager(   74):         at
com.android.server.WindowManagerService.addWindow
(WindowManagerService.java:1191)

W/WindowManager(   74):         at com.android.server.WindowManagerService
$Session.add(WindowManagerService.java:5513)

W/WindowManager(   74):         at android.view.IWindowSession$Stub.onTransact
(IWindowSession.java:74)

W/WindowManager(   74):         at com.android.server.WindowManagerService
$Session.onTransact(WindowManagerService.java:5485)

W/WindowManager(   74):         at android.os.Binder.execTransact(Binder.java:
287)

W/WindowManager(   74):         at dalvik.system.NativeStart.run(Native
Method)

W/WindowManager(   74): Attempted to add window with token that is not
a window: null.  Aborting.

I/MediaPlayerDemo(  724):android.view.WindowManager$BadTokenException:
Unable to add window -- token null is not valid; is your activity
running?



Basically I want to show a media controller while playing a audio
file. It is working fine for some media formats (.mp3 , .mid), I mean
able to show the media controller while playing. But when I tried to
play .ogg file, I got the above error.



Can any one please help me to solve this.

-- 
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

Reply via email to