8

Launching a canvas as intent

view full story
linux-howto

http://stackoverflow.com – Friends i have an activity "myGame" which uses setContentView(myCanvas). Now whenever my MainActivity launches myGame as an intent, the game crashes. Anyone can help me fix this? And should i add myGame activity in my AndroidManifest? For clear understanding here's my action. MainActivity > myGame > myCanvas (extends View) Game Activity: package com.krazy.androidplay; class GameView extends Activity { protected void onCreate(Bundle savedInstance){ super.onCreate(savedInstance); setContentView(new myCanvas(this)); } } Canvas code: package com.krazy (HowTos)