App Crash Boot the Phone
<p>I am totally confused as to why the app is crashing when I boot the phone.</p>

<p>My <code>AndroidManifest.xml</code>:</p>

<pre><code>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.callmenew"
android:versionCode="1"
android:versionName="1.0" &gt;
&lt;uses-permission android:name="android.permission.INTERNET"/&gt;
&lt;uses-permission android:name="android.permission.CALL_PHONE" /&gt;
&lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
&lt;uses-permission android:name="android.permission.READ_PHONE_STATE"/&gt;
&lt;uses-permission android:name="android.permission.USE_SIP" /&gt;
&lt;uses-permission android:name="android.permission.VIBRATE" /&gt;
&lt;uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /&gt;
&lt;uses-permission android:name="android.permission.WAKE_LOCK" /&gt;
&lt;uses-permission android:name="android.permission.RECORD_AUDIO" /&gt;
&lt;uses-permission android:name="android.permission.READ_PHONE_STATE"/&gt;
&lt;uses-permission android:name="android.permission.DISABLE_KEYGUARD" /&gt;
&lt;uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /&gt;

&lt;uses-feature android:name="android.hardware.sip.voip" /&gt;
&lt;uses-feature android:name="android.hardware.wifi"  /&gt;
&lt;uses-feature android:name="android.hardware.microphone"  /&gt;

&lt;uses-sdk
    android:minSdkVersion="7"
    android:targetSdkVersion="15" /&gt;

&lt;application android:label="@string/app_name" android:theme="@style/AppTheme" android:icon="@drawable/appslogo"&gt; 
     &lt;service android:name=".MService"/&gt;
     &lt;activity android:name=".Login"&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;activity android:name=".searchcall" android:screenOrientation="portrait"/&gt;
    &lt;activity android:name=".SoftwarePassionView" android:screenOrientation="portrait"/&gt;
    &lt;activity android:name=".MainActivity" android:screenOrientation="portrait"/&gt;
    &lt;activity android:name=".outcall" android:screenOrientation="portrait"/&gt;
    &lt;receiver android:name=".IncomingCallReceiver" android:label="Call Receiver" android:screenOrientation="portrait"/&gt;
    &lt;receiver android:name="com.callmenew.MyBroadcastReceiver" android:enabled="true" &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:name=".incomingcallevent" android:screenOrientation="portrait"/&gt;
    &lt;activity android:name=".city" android:noHistory="true" android:label="City" android:screenOrientation="portrait"/&gt;
    &lt;activity android:name=".createAd" android:label="Create Your Advertisement" android:screenOrientation="portrait"/&gt;
    &lt;activity android:name=".rgtrUser1" android:label="Create Your Account" android:screenOrientation="portrait"/&gt;
&lt;/application&gt; 
</code></pre>

<p></p>

<p>My <code>MyBroadcastreceiver</code>:</p>

<pre><code>public class MyBroadcastreceiver extends BroadcastReceiver {

    @Override
    public void onReceive(Context arg0, Intent arg1) {
        // Intent startServiceIntent = new Intent(arg0, searchcall.class);
        // startServiceIntent.putExtra("starts", "starts");
        // startServiceIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        // arg0.startActivity(startServiceIntent);
        Toast.makeText(arg0.getApplicationContext(), "start", Toast.LENGTH_LONG).show();
    }
}
</code></pre>

<p>myservice class:-</p>

<pre><code> @Override
   public void onCreate() {
       super.onCreate();
       Toast.makeText(this, "Service created...", Toast.LENGTH_LONG).show();      
       Log.i(tag, "Service created...");
   }

   @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
       super.onStartCommand(intent, flags, startId);
        Toast.makeText(this, "Debug: SyncService onStartCommand", Toast.LENGTH_LONG).show();

        SharedPreferences settings = getSharedPreferences("calldata", Context.MODE_PRIVATE);
        sipAddress = settings.getString("sipAddress", "");

      // sipAddress=  intent.getStringExtra("sipaddress");
      // sipcallid = intent.getStringExtra("sipAddress");

       Toast.makeText(MService.this, "sipAddress = "+sipAddress+" sipcallid ="+sipcallid, Toast.LENGTH_LONG).show();

        IntentFilter filter2 = new IntentFilter();

        filter2.addAction("android.SipDemo.INCOMING_CALL");
        callReceiver2 = new IncomingCallReceiver();
        this.registerReceiver(callReceiver2, filter2);

         initializeManager(sipAddress);

        return START_STICKY;
    }
</code></pre>

<p>Log cat:-</p>

<pre><code>04-20 16:58:46.179: E/AndroidRuntime(294): FATAL EXCEPTION: main
04-20 16:58:46.179: E/AndroidRuntime(294): java.lang.RuntimeException: Unable to     instantiate receiver com.callmenew.MyBroadcastReceiver: java.lang.ClassNotFoundException: com.callmenew.MyBroadcastReceiver
04-20 16:58:46.179: E/AndroidRuntime(294):  at   android.app.ActivityThread.handleReceiver(ActivityThread.java:2100)
04-20 16:58:46.179: E/AndroidRuntime(294):  at android.app.ActivityThread.access$1500(ActivityThread.java:123)
04-20 16:58:46.179: E/AndroidRuntime(294):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1197)
04-20 16:58:46.179: E/AndroidRuntime(294):  at android.os.Handler.dispatchMessage(Handler.java:99)
04-20 16:58:46.179: E/AndroidRuntime(294):  at android.os.Looper.loop(Looper.java:137)
04-20 16:58:46.179: E/AndroidRuntime(294):  at android.app.ActivityThread.main(ActivityThread.java:4424)
04-20 16:58:46.179: E/AndroidRuntime(294):  at java.lang.reflect.Method.invokeNative(Native Method)
04-20 16:58:46.179: E/AndroidRuntime(294):  at java.lang.reflect.Method.invoke(Method.java:511)
04-20 16:58:46.179: E/AndroidRuntime(294):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
04-20 16:58:46.179: E/AndroidRuntime(294):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
04-20 16:58:46.179: E/AndroidRuntime(294):  at dalvik.system.NativeStart.main(Native Method)
04-20 16:58:46.179: E/AndroidRuntime(294): Caused by: java.lang.ClassNotFoundException: com.callmenew.MyBroadcastReceiver
04-20 16:58:46.179: E/AndroidRuntime(294):  at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
04-20 16:58:46.179: E/AndroidRuntime(294):  at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
04-20 16:58:46.179: E/AndroidRuntime(294):  at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
04-20 16:58:46.179: E/AndroidRuntime(294):  at android.app.ActivityThread.handleReceiver(ActivityThread.java:2095)
04-20 16:58:46.179: E/AndroidRuntime(294):  ... 10 more
</code></pre>
