@Override public void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); myLinearlayout = new LinearLayout(this); myLinearlayout.setOrientation(LinearLayout.VERTICAL); mGameView = new GameView(this); LayoutParams params = new LinearLayout.LayoutParams(300, 400); mGameView.setLayoutParams(params); myLinearlayout.addView(mGameView); init(); setContentView(myLinearlayout); record = new Thread(new recordSound()); // play = new Thread(new playRecord()); record.start(); // play.start(); }