title: Why is the error "Unfortunately APP_NAME has stopped" appear even before starting the application?
body: <p>I have this issue that I could not figure out the reason why. I'm aware that there are many similar question regarding this error in Stack Overflow but I could not find any solution to my problem as I do not have any logcat to the error <strong>as the error occured even before I start my app.</strong></p>
  
  <p>My application is running well, but somehow, after restarting the phone, without starting the application, the error "Unfortunately APP_NAME has stopped" appeared. Can anyone tell me what may have been the cause and how can I debug and fix this?</p>
  
  <p>Thanks in advance.</p>
  
  <p><strong>Update :</strong>
  Link to my manifest : <a href="http://pastie.org/pastes/6332771/text?key=ay9snpcgwce9cgoxsl5tzg" rel="nofollow">http://pastie.org/pastes/6332771/text?key=ay9snpcgwce9cgoxsl5tzg</a></p>
  
  <pre><code>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.test.honey"
  android:versionCode="1"
  android:versionName="1" &gt;
  
  &lt;uses-sdk android:minSdkVersion="9" android:targetSdkVersion="17" /&gt;  
  
    &lt;permission android:name="com.test.honey.permission.C2D_MESSAGE" android:protectionLevel="signature" /&gt;
  &lt;uses-permission android:name="com.com.test.honey.permission.C2D_MESSAGE" /&gt; 
  
      &lt;!-- App receives GCM messages. --&gt;
  &lt;uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /&gt;
  &lt;!-- GCM requires a Google account. --&gt;
  &lt;uses-permission android:name="android.permission.GET_ACCOUNTS" /&gt;
  &lt;uses-permission android:name="android.permission.VIBRATE" /&gt;
  
  &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"&gt;&lt;/uses-permission&gt;
  &lt;uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"&gt;&lt;/uses-permission&gt;
  &lt;uses-permission android:name="android.permission.CAMERA"&gt;&lt;/uses-permission&gt;
  &lt;uses-permission android:name="android.permission.CALL_PHONE"&gt;&lt;/uses-permission&gt;
  &lt;uses-permission android:name="android.permission.READ_CONTACTS"&gt;&lt;/uses-permission&gt;
  &lt;uses-permission android:name="android.permission.SEND_SMS"&gt;&lt;/uses-permission&gt;
  &lt;uses-permission android:name="android.permission.INTERNET"&gt;&lt;/uses-permission&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"&gt;&lt;/uses-permission&gt;  
  &lt;uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/&gt;
  &lt;uses-permission android:name="android.permission.READ_FRAME_BUFFER"/&gt; 
  &lt;uses-permission android:name="android.permission.SET_ALARM" /&gt;
  &lt;uses-permission android:name="android.permission.WAKE_LOCK" /&gt;
  &lt;uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /&gt;
  
  &lt;!-- App receives GCM messages. --&gt;
  &lt;uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /&gt;
  &lt;!-- GCM requires a Google account. --&gt;
  &lt;uses-permission android:name="android.permission.GET_ACCOUNTS" /&gt;
  
  &lt;application
      android:icon="@drawable/mj_icon"
      android:label="@string/app_name"
      android:theme="@android:style/Theme.Light.NoTitleBar"
      android:largeHeap="true"&gt;
  
  &lt;uses-library android:name="com.google.android.maps" /&gt; 
  
      &lt;activity android:name="com.test.honey.Splash" android:label="@string/app_name" android:screenOrientation="portrait" &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;!--ACTIVITIES HERE--&gt;
  
    &lt;receiver android:name="com.test.honey.MyReceiver"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.BOOT_COMPLETED" /&gt;
              &lt;category android:name="android.intent.category.HOME" /&gt;
          &lt;/intent-filter&gt;
      &lt;/receiver&gt;
  
      &lt;receiver android:name="test.honey.AlertReceiver" /&gt;
      &lt;receiver android:name="test.honey.SchedulerReceiver" /&gt;
  
      &lt;provider android:name="test.honey.database.DataProvider1" android:authorities="test.mycare1" /&gt;
  
  
     &lt;receiver
          android:name="com.google.android.gcm.GCMBroadcastReceiver"
          android:permission="com.google.android.c2dm.permission.SEND" &gt;
          &lt;intent-filter&gt;
  
              &lt;!-- Receives the actual messages. --&gt;
              &lt;action android:name="com.google.android.c2dm.intent.RECEIVE" /&gt;
              &lt;!-- Receives the registration id. --&gt;
              &lt;action android:name="com.google.android.c2dm.intent.REGISTRATION" /&gt;
  
              &lt;category android:name="com.test.honey" /&gt;
          &lt;/intent-filter&gt;
      &lt;/receiver&gt;
  
      &lt;service android:name=".GCMIntentService" /&gt;
  
  
  &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>*I could not reveal the entire code as this is for work purposes. And I don't get to decide the content as this is project's requirement. Hope you guys understand.</p>
  
  <p>Anyway, after some debugging, I got this logcat, despite my app runs well.</p>
  
  <pre><code>java.lang.RuntimeException: Unable to instantiate receiver
  com.test.honey.MyCareStartupReceiver:
  java.lang.ClassNotFoundException:
  com.fireworks.momsapp.MyCareStartupReceiver
  at android.app.ActivityThread.handleReceiver(ActivityThread.java:2251)
  at android.app.ActivityThread.access$1500(ActivityThread.java:140)
  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
  at android.os.Handler.dispatchMessage(Handler.java:99)
  at android.os.Looper.loop(Looper.java:137)
  at android.app.ActivityThread.main(ActivityThread.java:4898)
  at java.lang.reflect.Method.invokeNative(Native Method)
  at java.lang.reflect.Method.invoke(Method.java:511)
  at
  com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1008)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:775)
  at dalvik.system.NativeStart.main(Native Method)
  Caused by: java.lang.ClassNotFoundException:
  com.test.honey.MyCareStartupReceiver
  at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
  at android.app.ActivityThread.handleReceiver(ActivityThread.java:2246)
  ... 10 more
  </code></pre>