android

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!

App Wallpaper Start

Hi:)

Great site BTW! Thank you for sharing your insights and methods.

I am looking to develop a couple apps that seem to be simple in context yet I am struggling to know where to begin.

I have 12 yrs experience w/ 3d max in a professional setting modeling, texture, render etc.
I am familiar with web development and AS3 (which BTW makes JAVA an easy learning curve)
I have installed Eclipse, JAVA SDK and everything to begin developing apps working :)

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.

ADC2 Judging Has Begun

Android

The Android Developer's Challenge 2 has begun. The judging application is available for download on the market. If you're not familiar, the ADC is a contest sponsored by Google in which developers submit apps and games for Android. Apps are initially judged by users for a first round. Later, Google judges will be responsible for 60% of the score. The top 3 apps for any given category get a cash prize. An early version of one of my games, Light Racer 3D, is in this contest. Good luck to everyone who entered and thanks to Google for running it!

Animation Woes

Hi again! Thanks for your input from last time. We finally managed to create a rough draft of our game with all the controls, timer, score display, etc. It was then that we found out we could actually use surface view with other Android widgets in one screen.

Android - How to load Bitmaps in RGB_565

In response to the comment by Cass Surek
on Getting Started in Android Game Development

Original Post


Hi Robert,
Yes, the GameResources object appears to be a nice solution to simplify the handling of the various bits of data.

How do you load images on RGB_565 or any of the others?

My problem is that I am currently using the movements of the person with relatively large images at 320x480, with alpha. It works, but it needs improvement as each of these PNGs have around 20k.

Robert Green's Android Games

Original Android games developed by Robert Green

Click on a game to find out more about it

Light Racer: A Retro Action/Puzzle GameLight Racer: A Retro Action/Puzzle Game Wixel: A Letter-Mixer Word GameWixel: A Letter-Mixer Word Game

Light Racer for Android

Light Racer is a 2D action/puzzle game for Android devices

Light Racer Elite - Main MenuLight Racer Elite - Main Menu Classic ModeClassic Mode Laser SweepLaser Sweep ExplosionsExplosions

Wixel for Android

Wixel is a letter-mixer word game for Android devices.
Wixel was formerly called Wuzzle but was recently renamed.

Main MenuMain Menu 4x4 Game4x4 Game Game OptionsGame Options 5x5 Open Game5x5 Open Game
Syndicate content