Services and broadcast not working in android
<p>In the Following code Service is not running .</p>

<p>This class where i want to start the service</p>

<pre><code>myServiceIntent = new Intent(this,Service.class);
        startService(myServiceIntent); 
</code></pre>

<p>This is the Service Class where onStart method is given :</p>

<pre><code>public void onStart(Intent intent, int startId) {
    // TODO Auto-generated method stub
    super.onStart(intent, startId);

    Log.i("&lt;&lt;MyService1-onStart&gt;&gt;", "OnStart Of Service");
    Calendar myCalendar = Calendar.getInstance();
    myCalendar.setTimeInMillis(timeNdate);

    AlarmManager alarmManager = (AlarmManager) getSystemService(ALARM_SERVICE);



    Intent intent1 = new Intent(this, AlarmBroadcastReceiver.class);
    PendingIntent pintent = PendingIntent.getBroadcast(this, 0, intent1, 0);

    // ---sets the alarm to trigger---
    alarmManager.set(AlarmManager.RTC_WAKEUP, myCalendar.getTimeInMillis(),
            pintent);
}
</code></pre>

<p>BroadCast Receiver Class where service shall received Alarm noftication back</p>

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

/**
 * To show notification for the alarm on time that is set as reminder
 * 
 * @param context
 */
private void notificationStatus(Context context) {
    final NotificationManager mNotificationManager = (NotificationManager) context
            .getSystemService(Context.NOTIFICATION_SERVICE);

    final int icon = R.drawable.ic_launcher;
    final CharSequence tickerText = context.getString(R.string.app_name);
    final long when = System.currentTimeMillis();

    final Notification notification = new Notification(icon, "BroadCaster",
            when);
    final Intent notificationIntent = new Intent(
            context.getApplicationContext(), AlarmBroadcastReceiver.class);
    final PendingIntent contentIntent = PendingIntent.getActivity(
            context.getApplicationContext(), 0, notificationIntent, 0);

    notification.setLatestEventInfo(context, tickerText, "HEllo",
            contentIntent);
    mNotificationManager.notify(1, notification);
}

@Override
public void onReceive(Context arg0, Intent arg1) {
    // TODO Auto-generated method stub
    notificationStatus(arg0);
}
</code></pre>

<p>}</p>

<p>My Service isnt Running Please Kindly Fix the Code </p>
