Saturday, April 7, 2012

[android-developers] Am I using MediaPlayer Properly?

Hello. I am having a weird crashing issue during garbage collection
and I have not clue how to figure out what is going on. It could take
5 minutes to crash or all day to crash. Most of my application is in
a webView and is all JS/HTML, but one of the things I do, is call back
to native code to play sound. I am wondering if I am using the
MediaPlayer Properly.

I have ChannelPlayers which could play looped or single-instance
sounds. I am wondering if I am messing up the implementation of
MediaPlayer

The current code is at: http://pastebin.com/jVQJWewU

<iframe src="http://pastebin.com/embed_iframe.php?i=jVQJWewU"
style="border:none;width:100%"></iframe>

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate