I’m writing an android application using eclipse.
I have a main activity called MenuActivity that shows a menu.
when the user press play it starts the game activity.
I created a new layout at res/layout/game.xml.
I want the GameActivity to use that layout using setContentView(). the problem is that
R.layout. doesn’t see any of the new layout xml i added.
what am I missing? the xmls are not views? am i doing this all wrong?! 🙂
any information would be greatly appreciated.
thanks!
Do you build the project? And did eclipse import Android.R instead? Because that can cause a big problem. Is there any errors in any XML files which is preventing a build? All possibilities