title: Android Parse.com Push Notifications Application Crashes on Start
body: <p>I followed the tutorial on parse.com to push notifications. But my application is crashing on start. I think the error is in the Manifest file.</p>
  
  <p>This is my code:</p>
  
  <p>Manifest.xml:</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.example.adla.insurancemobileapplication" &gt;
  
      &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.WAKE_LOCK" /&gt;
      &lt;uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /&gt;
      &lt;uses-permission android:name="android.permission.VIBRATE" /&gt;
      &lt;uses-permission android:name="android.permission.GET_ACCOUNTS" /&gt;
      &lt;uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /&gt;
  
      &lt;!--
        IMPORTANT: Change "com.parse.tutorials.pushnotifications.permission.C2D_MESSAGE" in the lines below
        to match your app's package name + ".permission.C2D_MESSAGE".
      --&gt;
      &lt;permission  android:name="com.example.adla.insurancemobileapplication.permission.C2D_MESSAGE" android:protectionLevel="signature"
          /&gt;
      &lt;uses-permission android:name="com.example.adla.insurancemobileapplication.permission.C2D_MESSAGE" /&gt;
  
      &lt;application
          android:allowBackup="true"
          android:icon="@mipmap/ic_launcher"
          android:label="@string/app_name"
          android:theme="@style/AppTheme" &gt;
          &lt;activity
              android:name=".MainActivity"
              android:label="@string/app_name" &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=".AddCustomer"
              android:label="@string/title_activity_add_customer" &gt;
          &lt;/activity&gt;
          &lt;activity
              android:name=".AddCustomerDetails"
              android:label="@string/title_activity_add_customer_details" &gt;
          &lt;/activity&gt;
          &lt;activity
              android:name=".notificationactivity"
              android:label="@string/title_activity_notificationactivity" &gt;
          &lt;/activity&gt;
          &lt;service android:name="com.parse.PushService" /&gt;
          &lt;receiver android:name="com.parse.ParseBroadcastReceiver"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.BOOT_COMPLETED" /&gt;
                  &lt;action android:name="android.intent.action.USER_PRESENT" /&gt;
              &lt;/intent-filter&gt;
          &lt;/receiver&gt;
          &lt;receiver android:name="com.parse.GcmBroadcastReceiver"
              android:permission="com.google.android.c2dm.permission.SEND"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="com.google.android.c2dm.intent.RECEIVE" /&gt;
                  &lt;action android:name="com.google.android.c2dm.intent.REGISTRATION" /&gt;
  
                  &lt;!--
                    IMPORTANT: Change "com.parse.tutorials.pushnotifications" to match your app's package name.
                  --&gt;
                  &lt;category android:name="com.example.adla.insurancemobileapplication" /&gt;
              &lt;/intent-filter&gt;
          &lt;/receiver&gt;
          &lt;receiver android:name="com.parse.ParsePushBroadcastReceiver" android:exported="false"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="com.parse.push.intent.RECEIVE" /&gt;
                  &lt;action android:name="com.parse.push.intent.DELETE" /&gt;
                  &lt;action android:name="com.parse.push.intent.OPEN" /&gt;
              &lt;/intent-filter&gt;
          &lt;/receiver&gt;
          &lt;!-- replace @drawable/push_icon with your push icon identifier --&gt;
          &lt;meta-data android:name="com.parse.push.notification_icon" android:resource="@drawable/push_icon"/&gt;
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>This is the onCreate method of the main activity:</p>
  
  <pre><code>  protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
          n = (EditText) findViewById(R.id.inputName);
          p = (EditText) findViewById(R.id.inputPass);
          // Enable Local Datastore.
  
          Parse.enableLocalDatastore(this);
  
          Parse.initialize(this, "QKpM7ar7aWwrbEeTcrSGJ5bDnLMCUtc1kCr26Enl", "MCBdIQ6Y0dTsIoahzJ44UfR1zHZPJMQPwiETwj47");
  
  
      }
  </code></pre>
  
  <p>Could you please help me. I don't know where the problem is.</p>