this is a real basic question, but I am having a frustrating time learning how to compile/run an android pong program from a website. The tutorial I am following is here – http://mikeyhogarth.wordpress.com/2010/10/09/how-to-develop-pong-for-android/
I keep trying, and I am getting errors. I am new to android (but not programming) so I am having trouble identifying the problem.
Also the tutorial mentions layout.xml, but I do not see a layout.xml in eclipse, I see a main.xml, is that the same thing?
Attached is my screenshot with errors. Suggestions? Have I configured eclipse/java/android wrong? Is there a problem with the tutorial? I appreciate links to any other good game/graphic based starting tutorials you may have to offer.
It looks like you need to add import statements to the classes you’ve copied from the tutorial. Double clicking on one of the errors (i.e. SurfaceHolder cannot be resolved to a type) should take you to it’s place in the code. Hovering over where it says SurfaceHolder for a moment should pop-up something that will allow you to “Import ‘SurfaceHolder’ (android.view)”. Try doing that and see if it starts getting rid of some of those errors.