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. ExpandableListView Problem

Hi all,

I am encountering an exception in the onCreate method of an activity.

java.lang.RuntimeException: Your content must have a
ExpandableListView whose id attribute is ''

The onCreate method is as below.

public class TestActivity extends ExpandableListActivity {

        protected void onCreate(Bundle savedInstanceState) {

The layout view XML is as below.

<?xml version="1.0" encoding="utf-8"?>
        android:layout_height="wrap_content" />

I've already changed the ID of the ExpandableListView to "list". But
it is not effective.

Any ideas on what's wrong? Thanks!

Thanks & Regards,


2. Proses Rooting

Akhirnya bisa masuk ke terminal dan sudah melakukan reboot bootloader, setelah 
enter homescreen ke fastboot use, celakanya hubungan mount dr pc ke device 
keputus. Dicoba konek lagi gak bisa.

Ada pilihan HBoot Mode dan Reset Device...

Apa yg harus daku lakukan? *panik*

Sent from my Android

Google Groups "Indonesian Android Community [id-android]" group.

To post to this group, send email to

To request to subscribe to this group:


3. My posts are not displayed

4. Listview and autocomplete problems!

5. How to implement answer function programmetically?

6. Two processes are created on first running of my application?

7. What is the best way to schedule an event that will wake up the phone if it goes into sleep mode?