I'm trying to put clean up code on my activity. The create function gets called, but the brake poitn i set ondestroy never goes of when the back button is pressed
code:
public class cPuzzle extends cBase {
cPuzzleView MyView;
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
try {
MyView =new cPuzzleView(this, this, cGlobals.PuzleId);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
setContentView(MyView);
StartTimer(20);
}
void OnDestroy()
{
StopTimer();
MyView.OnDestroy();
}