New Accelerometer Values Android application

I have deployed a new version of the Accelerometer Values application on the Android market. I left the previous app as I have changed a lot of things in the code and in the package organization. However, I will remove the old one soon, once everybody is happy with the new one

Now, you can . . . → Read More: New Accelerometer Values Android application

Accelerometer Values

Here is the code of the accelerometer values application for Android. I did this application in a couple of hours to test the Android platform so the features are very basic. I’m currently working on a new version that will include logging of the values and a few other things.
However, here is the code of the . . . → Read More: Accelerometer Values

Different threads for different purposes

You want your android application to be responsive, so you have to “multithread” it. But actually, “twothreading” should be enough in many cases.
The main thread, the one on which the application started, can be used to wait for user input like touchscreen events. So whenever the user does something, the event is caught on the main . . . → Read More: Different threads for different purposes

Adding sound and music to an android game

It’ s pretty straight forward to add music and sound to an android application.

For music, I use the Mediaplayer class. For simple short sounds that I need at different stages in the application (transitions, selections, etc.) I use the SoundPool class. SoundPool enables to load short sound sequences directly in memory at the start of the application, sounds that can be used later on at any time in the application.
In Silhouette, I use a class with static members and methods. So the music player and the sounds are available during the whole game life cycle and they can be called from anywhere. It works pretty well.

Continue reading Adding sound and music to an android game