title: Android - How to start a new activity
body: <p>I'm trying to make a bull's eye with random color, and instead of circles I will use squares.</p>
  
  <p>But the thing is that when I run the app on the emulator and when he starts the new activity it stops responding.</p>
  
  <p>This is the main activity, the one that starts the DrawActivity.</p>
  
  <pre><code>public class MainActivity extends Activity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          Intent coiso = new Intent(this, Draw.class);
          startActivity(coiso);
      }
  
      @Override
      public boolean onCreateOptionsMenu(Menu menu) {
          // Inflate the menu; this adds items to the action bar if it is present.
          getMenuInflater().inflate(R.menu.main, menu);
          return true;
      }
  }
  </code></pre>
  
  <p>And this is the Draw activity, the one that I want to start. (It doesn't have the things that I want to do. Because I can't, the problem is ahead)    </p>
  
  <pre><code>public class Draw extends View {
  
      public Draw(Context context) {
          super(context);
          // TODO Auto-generated constructor stub
      }
  
      @Override
      protected void onDraw(Canvas canvas) {
          // TODO Auto-generated method stub
          super.onDraw(canvas);   
      }
  }
  </code></pre>
  
  <p>Can someone help me? Sorry for the english.</p>