@@ -0,0 +1,1815 @@
+package com.bryanjswift.simplenote.app;%0A%0Aimport android.app.Notification;%0Aimport android.app.NotificationManager;%0Aimport android.app.PendingIntent;%0Aimport android.content.Context;%0Aimport android.content.Intent;%0A%0Aimport com.bryanjswift.simplenote.Constants;%0Aimport com.bryanjswift.simplenote.R;%0Aimport com.bryanjswift.simplenote.ui.LoginDialog;%0A%0A/**%0A * Helper methods for posting Notifications%0A * @author bryanjswift%0A */%0Apublic class Notifications %7B%0A%09/**%0A%09 * Post credentials Notification with given messages%0A%09 * @param context under which the Notification is created%0A%09 * @param ticker message to show when Notification is posted%0A%09 * @param title of Notification in pull down%0A%09 * @param description of Notification in pull down%0A%09 */%0A%09public static void Credentials(Context context, CharSequence ticker, CharSequence title, CharSequence description) %7B%0A%09%09final NotificationManager notifier = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);%0A%09%09final Notification notification = new Notification(R.drawable.simplenote_status, title, System.currentTimeMillis());%0A%09%09final PendingIntent intent = PendingIntent.getActivity(context, 0, new Intent(context, LoginDialog.class), 0);%0A%09%09notification.setLatestEventInfo(context.getApplicationContext(), title, description, intent);%0A%09%09notification.iconLevel = 3;%0A%09%09notifier.notify(Constants.NOTIFICATION_CREDENTIALS, notification);%0A%09%7D%0A%09/**%0A%09 * Post Notification with default invalid credentials messages%0A%09 * @param context under which the Notification is created%0A%09 */%0A%09public static void Credentials(Context context) %7B%0A%09%09Credentials(context,%0A%09%09%09%09context.getString(R.string.status_credentials_invalid_ticker),%0A%09%09%09%09context.getString(R.string.status_credentials_invalid_title),%0A%09%09%09%09context.getString(R.string.status_credentials_invalid_description));%0A%09%7D%0A%7D%0A

Create helper class to assist with Notification posting