Should I use Canvas or SurfaceView for a chess game?

by Dan Sherman » Sun, 11 Oct 2009 07:27:44 GMT

Sponsored Links
 SurfaceView can be either run with a Canvas front-end, or an OpenGL frontend
(which I think was your question).

For a chess game, you're most likely going to be just fine with Canvas.  You
won't really need OpenGL until you have 50-100 sprites on the screen moving
quite quickly :)

- Dan


Other Threads

1. Android bug tracking reports wrong date info?

I recently updated my app and noticed a bug that is supposedly from
this new update but the date of the bug report is Dec 11, 2009 9:10:55
AM!!  Did my new update go back in time?!

Anyone experiencing the same thing?  It's a little misleading... Also,
the stack trace doesn't match my code... I'm thinking its from an old
build and the Android bug tracking feature reported bogus data...?



2. video: a maze of twisty passages, all alike

Hi all,

I'm trying to use a MediaRecorder to do something useful... like record
video, send it up to a server and the redisplay it back on, oh say, my
Android N1. Or G1. Or any old Android.

You'd *think* that shouldn't be hard, but I haven't managed to get an
intersection between the video encoder, output format, and what to
send back down to the Android. The latest iteration I tried is:


for which I create:

<object type="video/3gpp" height="240" width="320" data="img.php?imgid=2943" alt="2010-05-25"><param name="src" value="img.php?imgid=2943"><embed height="240" width="320" src="img.php?imgid=2943" type="video/3gpp" alt="2010-05-25"></object> which duly does... nothing. ffmeg and mplayer seem to know what it is, so it's not screwed up on the recording end. I've tried many other combinations of encoders and containers but haven't managed to get anything to work. Has anybody managed to find a single intersection that actually works? Mike, video is a huge mess, yes I know --

3. ListView and ListAdapter

4. Can I mark a Preference in xml and detect the mark inside its containing PreferenceActivity?

5. Can I use code to enable the GPS service?

6. Can I use code to enable the GPS service?

7. How do I draw onto an app using an XML layout?