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,
Sunil

--~--~---------~--~----~------------~-------~--~----~



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 'android.R.id.list'

The onCreate method is as below.

public class TestActivity extends ExpandableListActivity {

        @Override
        protected void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                this.setContentView(R.layout.tab1);
                registerForContextMenu(getExpandableListView());
                getData();
        }
........................

The layout view XML is as below.

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content">
<ExpandableListView
        android:id="@+id/list"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />
</LinearLayout>

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,
YCH

-- 

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 id-android@googlegroups.com

To request to subscribe to this group:

Click  

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?