i have develop one appl开发者_运维问答ication(in 1.5) in which 2 activity
stay there. in first activity i have put background sound
.and in second activity i have put animal sound
.now when i am play it in emulator it work fine but when i have test it in android device version 2.1,i got force close error.
Take action:
- while i have remove background sound and continue with animal sound it work fine in device.
- while i have remove animal sound and continue with background sound it work fine in device.
- set rebuild automatically.
- clean it again and again.
I cant able to get exactly what error are raise, because it is happen only in device.
i have use to play sound ::
mPlayer = MediaPlayer.create(this, R.raw.touch_and_show);
mPlayer.start();
may be
mPlayer = MediaPlayer.create(this, R.raw.touch_and_show);
mPlayer.prepare();
mPlayer.start();
精彩评论