Need help in adding image to sample snake game in SDK

by » Wed, 29 Apr 2009 01:07:49 GMT

Sponsored Links
 Hi All,
 I am new to this Android platform. So here I am trying to modify the
sample snake game given in android SDK.

 I am trying add a background image. I have already image capture and
stored as image.png. I want to add background image as the image.png.
Please let me know where to do the code changes. Please let me know
the API's and exact place in sample snake code in Android SDK.

Warm Regards,


Other Threads

1. Android 2.0 setImageResource(R.drawable.my_icon)

hi all , not sure if it's a bug or i'm using that in the wrong place.
If i have following line (s ) of code in onCreate ()
And ONLY if my device(Droid) or emulator running 2.0 in landscape it
cause activity go through lifecycle endlessly like described in this
thread :

2. Showing ellipsis in a TextView?


I have a normal TextView which has multiple lines. I set its max
number of lines to 3. I'd like it to show an ellipsis at the end if
the text is too long:

  TextView tv = new TextView(context);
  tv.setText("some really long text...");

I tried the set ellipsis calls but it doesn't seem to do anything -
the text appears the same way. How do we get this to work?



3. 绛斿: hiding a forcibly o pened soft keyboard...

4. hiding a forcibly opened soft keyboard...

5. Picture say a thousand word

6. question on scanObject()

7. The loosers got notice :)