@@ -0,0 +1,2628 @@
+package manotifications;%0A%0Aimport android.app.IntentService;%0Aimport android.app.NotificationManager;%0Aimport android.app.PendingIntent;%0Aimport android.content.Intent;%0Aimport android.graphics.Bitmap;%0Aimport android.graphics.BitmapFactory;%0Aimport android.media.RingtoneManager;%0Aimport android.os.Handler;%0Aimport android.os.IBinder;%0Aimport android.support.v4.app.NotificationCompat;%0A%0A/**%0A * Created by Anjelica on 4/19/2017.%0A */%0Apublic class BookmarkAlarmService extends IntentService %7B%0A%0A    NotificationCompat.Builder mBuilder;%0A%0A    public BookmarkAlarmService(String name) %7B%0A        super(name);%0A    %7D%0A%0A    public BookmarkAlarmService() %7B%0A        super(%22BookMarkAlarmService%22);%0A    %7D%0A%0A    @Override%0A    public IBinder onBind(Intent arg0) %7B%0A        return null;%0A    %7D%0A%0A    @Override%0A    protected void onHandleIntent(Intent intent) %7B%0A%0A    %7D%0A%0A    @Override%0A    public void onCreate() %7B%0A        super.onCreate();%0A    %7D%0A%0A    @Override%0A    public int onStartCommand(Intent intent, int flags, int startId) %7B%0A        handleStart(intent, startId);%0A        return START_NOT_STICKY;%0A%0A%0A    %7D%0A%0A    @Override%0A    public void onDestroy() %7B%0A        super.onDestroy();%0A    %7D%0A%0A    void handleStart(Intent intent, int startId) %7B%0A        final NotificationManager mManager = (NotificationManager) this.getApplicationContext().getSystemService(NOTIFICATION_SERVICE);%0A        Intent intent1 = new Intent(this.getApplicationContext(), MainActivity.class);%0A        PendingIntent pendingNotificationIntent = PendingIntent.getActivity(this.getApplicationContext(), 0, intent1, PendingIntent.FLAG_UPDATE_CURRENT);%0A        Bitmap largeIcon = BitmapFactory.decodeResource(getResources(), R.mipmap.ic_launcher);%0A%0A%0A        mBuilder = new NotificationCompat.Builder(this)%0A                .setSmallIcon(R.mipmap.ic_launcher)%0A                .setLargeIcon(largeIcon)%0A                .setContentTitle(getString(R.string.parking_busy))%0A                .setContentText(getString(R.string.parking_busy_text))%0A                .setOngoing(true)%0A                .setStyle(new NotificationCompat.BigTextStyle().bigText(%22Parking %22))%0A                .setContentIntent(pendingNotificationIntent);%0A        intent1.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP %7C Intent.FLAG_ACTIVITY_CLEAR_TOP);%0A%0A        mBuilder.setSound(RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION));%0A        mManager.notify(1, mBuilder.build());%0A%0A        Handler h = new Handler();%0A        long delayInMilliseconds = 1000*60*80;%0A        h.postDelayed(new Runnable() %7B%0A            public void run() %7B%0A                mManager.cancel(1);%0A            %7D%0A        %7D, delayInMilliseconds);%0A    %7D%0A%0A%7D%0A

Create bookmarkService.java