background.png adding to a snake game

by Sunil Deshpande » Wed, 29 Apr 2009 01:52:17 GMT

Sponsored Links
 Hi All,
 I am trying to learn android application development. For start I am
trying to modify the snake game which is given in SDK samples. Could
you please tell me how to change the background of snake game through
code. I want to insert my image instead of black color background.
Please tell me how to go ahead.

Warm regards,


Other Threads

1. Strange Issue..Fail to set top app changed..Please help

Hi everyone,

I have a strange issue that I can't seem to find a resolution to. I am
working on an app using Eclipse Galileo on my laptop Windows 7 64bit.
I decided to break my app down and pull out a specific section along
with the activity's and services that went with that section. I moved
them over to my desktop Eclipse Helios Windows 7 64 bit (but more than
double the memory) I changed all the package names and what not to
match the new project name. I am able to start the app and get my
splash screen but as soon as it is time to load the first screen my
app closes to the home screen and gives me a "fail to set top app
changed" in the logcat. No others errors appear in the logcat. After
spending a lot of time stepping though the code with the de{*filter*} to
verify no errors I decided to copy this project back over to my
laptop. I kept everything the same as far as naming and package
declarations. I plugged my phone up and started to debug from my
laptop and it works correctly.

Why does it crash when I try to run it from my desktop with the exact
same code and naming? Could any give me any ideas of what to look for
or any possible fixes. It seems like its a system problem not a code
problem but I am totally lost here.

Thanks for your time, help, and suggestions



2. Missing instance state when restoring dialogs


in my app, certain dialogs need some instance data when onPrepareDialog() is
called. I am saving this data in onSaveInstanceState() and restoring it in
onCreate(). This works fine according to my tests: I received the saved data in
the bundle passed to onCreate(), and then the dialogs get automatically restored

However, I get some crashes on the market console where it really seems like the
dialogs are being restored whereas onCreate() did not receive any saved state. I
have never reproduced that bug.

The console doesn't say which Android version that is, it only mentions "Droid"
and "OTHER". Droid should be 2.1 or 2.2 I guess.

Any clue?



3. how to zoom camera through code

4. OOT: Berapa banyak pengguna Galaxy TAB di milis id-android?

5. Can i prevent RecognizerIntent to prompt user to "Retry" or "Abort" in case of RESULT_NO_MATCH, and handle the error myself ?

6. Proposal to Market Place

7. I'm using onSensorChanged(). What should I specify in <uses-feature> ?