mNM = (NotificationManager)getSystemService(NOTIFICATION_SERVICE);
// This is who should be launched if the user selects our persistent
// notification.
Intent intent = new Intent();
intent.setClass(this, LocalServiceController.class);
// Display a notification about us starting. We use both a transient
// notification and a persistent notification in the status bar.
mNM.notifyWithText(R.string.local_service_started,
getText(R.string.local_service_started),
NotificationManager.LENGTH_SHORT,
new Notification(
R.drawable.stat_sample,
getText(R.string.local_service_label),
intent,
null,
null));