starting the android app at start of phone
<p>I want my android activity to be displayed on start of the phone but the app is crashing, and I m unable to take the log as well. Here is the code
Manifest</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.android"
    android:versionCode="1"
    android:versionName="1.0" &gt;

    &lt;uses-sdk android:minSdkVersion="8" /&gt;
&lt;uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /&gt;
    &lt;application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name" &gt;
         &lt;receiver android:enabled="true" android:name=".BootUpReceiver"
        android:permission="android.permission.RECEIVE_BOOT_COMPLETED"&gt;
        &lt;intent-filter&gt;
            &lt;action android:name="android.intent.action.BOOT_COMPLETED" /&gt;
            &lt;category android:name="android.intent.category.DEFAULT" /&gt;
        &lt;/intent-filter&gt;
    &lt;/receiver&gt;

        &lt;activity
        android:label="@string/app_name"
        android:name=".StartupActivity" &gt;
    &lt;intent-filter&gt;
        &lt;action android:name="android.intent.action.MAIN" /&gt;

        &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
    &lt;/intent-filter&gt;
           &lt;/activity&gt;
    &lt;/application&gt;

&lt;/manifest&gt;
</code></pre>

<p>BOOTUPRECEIVER.JAVA</p>

<pre><code>package com.example.sample;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class BootUpReceiver extends BroadcastReceiver{


     @Override
     public void onReceive(Context context, Intent intent) {

         Intent i = new Intent(context, StartupActivity.class); 
                i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                context.startActivity(i); 

     }
    }
</code></pre>

<p>STARTUPACTIVITY.JAVA</p>

<pre><code>package com.example.sample;

import android.app.Activity;
import android.os.Bundle;

import com.android.R;

public class StartupActivity extends Activity {



     /** Called when the activity is first created. */
     @Override
     public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);


     }
    }
</code></pre>

<p>Could some one help me with the issue</p>

<p>EDIT:
03-20 16:05:24.519: E/AndroidRuntime(2709): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.android/com.android.StartupActivity}: java.lang.ClassNotFoundException: com.android.StartupActivity in loader dalvik.system.PathClassLoader[/data/app/com.android-1.apk]
03-20 16:05:24.519: E/AndroidRuntime(2709):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1573)
03-20 16:05:24.519: E/AndroidRuntime(2709):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667)
03-20 16:05:24.519: E/AndroidRuntime(2709):     at android.app.ActivityThread.access$1500(ActivityThread.java:117)
03-20 16:05:24.519: E/AndroidRuntime(2709):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)
03-20 16:05:24.519: E/AndroidRuntime(2709):     at android.os.Handler.dispatchMessage(Handler.java:99)
03-20 16:05:24.519: E/AndroidRuntime(2709):     at android.os.Looper.loop(Looper.java:130)
03-20 16:05:24.519: E/AndroidRuntime(2709):     at android.app.ActivityThread.main(ActivityThread.java:3687)
03-20 16:05:24.519: E/AndroidRuntime(2709):     at java.lang.reflect.Method.invokeNative(Native Method)
03-20 16:05:24.519: E/AndroidRuntime(2709):     at java.lang.reflect.Method.invoke(Method.java:507)
03-20 16:05:24.519: E/AndroidRuntime(2709):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:842)
03-20 16:05:24.519: E/AndroidRuntime(2709):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
03-20 16:05:24.519: E/AndroidRuntime(2709):     at dalvik.system.NativeStart.main(Native Method)
03-20 16:05:24.519: E/AndroidRuntime(2709): Caused by: java.lang.ClassNotFoundException: com.android.StartupActivity in loader dalvik.system.PathClassLoader[/data/app/com.android-1.apk]
03-20 16:05:24.519: E/AndroidRuntime(2709):     at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
03-20 16:05:24.519: E/AndroidRuntime(2709):     at java.lang.ClassLoader.loadClass(ClassLoader.java:551)
03-20 16:05:24.519: E/AndroidRuntime(2709):     at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
03-20 16:05:24.519: E/AndroidRuntime(2709):     at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
03-20 16:05:24.519: E/AndroidRuntime(2709):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1565)
03-20 16:05:24.519: E/AndroidRuntime(2709):     ... 11 more</p>
