Buggy code:
public class DetailedDescriptionActivity extends FragmentActivity { private final int MENU_ADD_TO_FAVORITES = 1 ; private final int MENU_SHARE = 2 ; private WebImageView movieThumb = null ; private TextView movieDescription = null ; private TextView movieTimeText = null ; private TextView movieChannelText = null ; private Button readReviewsButton = null ; private Button setReminderButton = null ; private boolean fav_status = false ; private int cMenuDrawable ; private Media media = null ; TvTickerDBAdapter dataAdapter ; String title ; String subTitle ; String imdbURL ; String channel ; @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } @ Override protected void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; media = ( ( Media ) ( this . getIntent ( ) . getExtras ( ) . getSerializable ( MEDIA_OBJECT ) ) ) ; dataAdapter = new TvTickerDBAdapter ( this ) ; dataAdapter . open ( ) ; fav_status = dataAdapter . IsFavoriteEnabledFor ( media . getId ( ) ) ; channel = dataAdapter . getChannelNameFor ( media . getChannel ( ) ) ; dataAdapter . close ( ) ; setContentView ( detailed_description ) ; title = media . getMediaTitle ( ) ; subTitle = getFormattedImdbTextRatingFor ( media . getImdbRating ( ) ) ; imdbURL = media . getImdbLink ( ) ; configureActionbarWith ( getSupportActionBar ( ) , title , subTitle ) ; movieThumb = ( ( WebImageView ) ( findViewById ( movie_thumb ) ) ) ; movieDescription = ( ( TextView ) ( findViewById ( movie_description ) ) ) ; movieTimeText = ( ( TextView ) ( findViewById ( textViewTime ) ) ) ; movieChannelText = ( ( TextView ) ( findViewById ( textViewChannel ) ) ) ; readReviewsButton = ( ( Button ) ( findViewById ( button_go_imdb ) ) ) ; setReminderButton = ( ( Button ) ( findViewById ( button_set_reminder ) ) ) ; movieThumb . setImageWithURL ( this , media . getMediaThumb ( ) , this . getResources ( ) . getDrawable ( ic_placehoder ) ) ; movieDescription . setText ( media . getMediaDescription ( ) ) ; movieTimeText . setText ( media . getShowTime ( ) ) ; movieChannelText . setText ( channel ) ; readReviewsButton . setOnClickListener ( new OnClickListener ( ) { @ Override public void onClick ( View v ) { Uri uriUrl = Uri . parse ( imdbURL ) ; Intent launchBrowser = new Intent ( Intent . ACTION_VIEW , uriUrl ) ; startActivity ( launchBrowser ) ; } } ) ; setReminderButton . setOnClickListener ( new OnClickListener ( ) { @ Override public void onClick ( View v ) { SharedPreferences preferences = PreferenceManager . getDefaultSharedPreferences ( getBaseContext ( ) ) ; DateFormat formatter = new SimpleDateFormat ( "yyyy-MM-dd<seq2seq4repair_space>HH:mm:ss" ) ; Date date = new Date ( ) ; try { date = ( ( Date ) ( formatter . parse ( media . getShowTime ( ) ) ) ) ; } catch ( ParseException e ) { Log . i ( "Error" , "Date<seq2seq4repair_space>format<seq2seq4repair_space>exception" ) ; } Calendar calender = Calendar . getInstance ( ) ; calender . setTimeInMillis ( date . getTime ( ) ) ; calender . add ( Calendar . MINUTE , ( - 15 ) ) ; String message = ( ( media . getMediaTitle ( ) ) + "<seq2seq4repair_space>will<seq2seq4repair_space>soon<seq2seq4repair_space>start<seq2seq4repair_space>in<seq2seq4repair_space>" ) + ( channel ) ; NotificationManager notificationManager = ( ( NotificationManager ) ( getSystemService ( NOTIFICATION_SERVICE ) ) ) ; <START_BUG> Notification notification = new Notification ( drawable . ic_launcher , message , System . currentTimeMillis ( ) ) ; <END_BUG> notification . defaults |= ( Notification . DEFAULT_LIGHTS ) | ( Notification . DEFAULT_SOUND ) ; notification . flags |= Notification . FLAG_AUTO_CANCEL ; Intent notificationIntent = new Intent ( DetailedDescriptionActivity . this , ShowAlarmService . class ) ; PendingIntent contentIntent = PendingIntent . getService ( DetailedDescriptionActivity . this , 0 , notificationIntent , 0 ) ; notification . setLatestEventInfo ( getBaseContext ( ) , "TV<seq2seq4repair_space>Ticker" , message , contentIntent ) ; notificationManager . notify ( 1 , notification ) ; Toast . makeText ( DetailedDescriptionActivity . this , "Reminder<seq2seq4repair_space>is<seq2seq4repair_space>set." , LENGTH_SHORT ) . show ( ) ; } } ) ; } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } private void configureActionbarWith ( ActionBar actionBar , String title , String subTitle ) { } public void share ( String subject , String text ) { } private String getFormattedImdbTextRatingFor ( float rating ) { } }

Fix:
Notification notification = new Notification ( drawable . ic_launcher , message , calender . getTimeInMillis ( ) ) ;