game

Playing a Background Music in an Android Game

Hi, Sir Robert! This time we'd like to ask for the best way to play a background music in an Android game? The way we do it at the moment is to play the sound using MediaPlayer, but it can only play as long as the Activity where it was started is still alive. However, we want the music to play across different Activities. Is this even possible? If yes, could you please help us out? Thanks!

Android - How to pause/unpause thread in games

Hello,

First of all I would like to thank you because your blog and the information you provide have been a tremendous help for me so far.
I am a new android developer in the middle of creating a simple game with a SurfaceView and a thread (like the Lunar Lander example).

I noticed then when the surface is destroyed or something happens such as an incoming call or the keyboard orientation is changed, it leaves the application in an unpredictable state and it often times crashes.

Help with the Android Lifecycle

Hi, I'm back again. We've made good progress from last time thanks to your help. We're almost done with the first draft of the game. Unfortunately, we're having difficulties controlling the application's lifecycle and we pray you could help us out on this one.

Syndicate content