title: Unable to register my BroadcastReceiver in manifest
body: <p>I am having problem in registering my Broadcast Receiver in android manifest file</p>
  
  <p>i have created a BroadcastReceiver which check if the user click the notification its take him to the map activity. The problem is that when i click my notification is disappearing,I think this is due to my broadcasrReceiver not being registered successfully. I am using Eclipse IDE.</p>
  
  <p>Following is my android 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.fyp_api_8_team"
  android:versionCode="1"
  android:versionName="1.0.0" android:installLocation="auto"&gt;
  
  &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt;
  &lt;uses-permission android:name="android.permission.VIBRATE" /&gt;
  
  &lt;uses-sdk android:minSdkVersion="9" /&gt;
  
  &lt;application
      android:name="com.example.fyp_api_8_team.MyGobalClass"
      android:icon="@drawable/shazam"
      android:label="@string/app_name"
      android:theme="@style/AppTheme" &gt;
      &lt;uses-library android:name="com.google.android.maps" /&gt;
  
      &lt;activity
          android:name="com.example.fyp_api_8_team.SplashScreen"
          android:label="@string/app_name"
          android:theme="@android:style/Theme.NoTitleBar" &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="com.example.fyp_api_8_team.Login_Form"
          android:label="@string/app_name" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN.Register_form" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name="com.example.fyp_api_8_team.Register_form"
          android:label="@string/app_name" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN.Register_form" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name="com.example.fyp_api_8_team.Forget_form"
          android:label="@string/app_name" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN.Forget_form" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name="com.example.fyp_api_8_team.Create_Meeting_Form"
          android:label="@string/app_name" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN.Create_Meeting_form" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name="com.example.fyp_api_8_team.Create_Team_Form"
          android:label="@string/app_name" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN.Create_Team_Form" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name="com.example.fyp_api_8_team.Map_Location"
          android:label="@string/app_name"
          android:theme="@android:style/Theme.NoTitleBar" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN.Map_Location" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name="com.example.fyp_api_8_team.Main"
          android:label="@string/app_name" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN.Main" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name="com.example.fyp_api_8_team.Register_Form"
          android:label="@string/app_name" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN.Register_Form" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity android:name="com.example.fyp_api_8_team.MainPreferenceActivity" &gt;
      &lt;/activity&gt;
      &lt;activity
          android:name="com.example.fyp_api_8_team.Team_Members"
          android:label="@string/app_name" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN.Create_Team_Form..Team_Members" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name="com.example.fyp_api_8_team.Show_Map"
          android:label="@string/title_activity_show__map" &gt;
      &lt;/activity&gt;
  
      &lt;service android:name="com.example.fyp_api_8_team.Services.ScheduleService" /&gt;
      &lt;service android:name="com.example.fyp_api_8_team.Services.NotifyService" /&gt;
      &lt;receiver android:name="com.example.fyp_api_8_team.MyBroadcastReceiver" android:enabled="true"&gt;&lt;/receiver&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p></p>
  
  <p>This is MyBroadcastReceiver class</p>
  
  <pre><code>package com.example.fyp_api_8_team;
   import com.example.fyp_api_8_team.R;
   import com.example.fyp_api_8_team_AlertMap.Show_Map;
   import android.app.Notification;
   import android.app.NotificationManager;
   import android.app.PendingIntent;
   import android.content.BroadcastReceiver;
   import android.content.Context;
   import android.content.Intent;     
   import android.os.Vibrator;
   import android.util.Log;
  
  
      public class MyBroadcastReceiver extends BroadcastReceiver {
  private NotificationManager mNotificationManager;
  public static int SIMPLE_NOTFICATION_ID;
  public static String title, Message;
  public static int Meetingid, pos;
  
  @Override
  public void onReceive(Context context, Intent intent) {
  
      mNotificationManager = (NotificationManager) context
              .getSystemService(Context.NOTIFICATION_SERVICE);
      Notification notifyDetails = new Notification(
              R.drawable.stat_notify_more, "You Alarm is here",
              System.currentTimeMillis());
  
      // take you to the Map class by notification click
      Intent notificationIntent = new Intent(context, Show_Map.class);
  
      PendingIntent myIntent = PendingIntent.getActivity(context, 0,
              notificationIntent, 0);
  
      // Sets the Map class for the particular notification of event
      Show_Map.position = pos;
      notifyDetails.setLatestEventInfo(context, title,
              "Click on me to view you Meeting Location", myIntent);
  
      notifyDetails.flags |= Notification.FLAG_AUTO_CANCEL;
      notifyDetails.flags |= Notification.DEFAULT_SOUND;
      mNotificationManager.notify(SIMPLE_NOTFICATION_ID, notifyDetails);
  
      Log.i(getClass().getSimpleName(), "Sucessfully Notification Clicked");
  
      // Vibrate the mobile phone
      Vibrator vibrator = (Vibrator) context
              .getSystemService(Context.VIBRATOR_SERVICE);
      vibrator.vibrate(2000);
  }
  </code></pre>
  
  <p>}</p>