title: Android 2.2: Autostart application on boot problem
body: <pre><code>@Override
  public void onReceive(Context context, Intent intent) {
  
   Intent myIntent = new Intent(context, YourActivity.class);
   context.startActivity(myIntent);
  }
  </code></pre>
  
  <p>I have made a class that extends BroadCastreciever. I want it to run my main class on startup, but i keep getting the "force close" message when i boot my device. I think the problem is located at "YourActivity.class".</p>
  
  <p>I have tried with "TestMain.class" (my main class name) and "com.test.Testmain.Class". Did i miss something?</p>
  
  <p>Thanks</p>