package com.simplenote.android.ui;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;

import com.simplenote.android.Constants;

/**
 * Collection of methods to fire Intents
 * @author bryanjswift
 */
public class FireIntent {
	/**
	 * Start the SimpleNoteList Activity
	 * @param context in which the intent is firing
	 */
	public static void SimpleNoteList(final Context context) {
		Intent i = new Intent(context, SimpleNoteList.class);
		context.startActivity(i);
	}
	/**
	 * Start the LoginDialog Activity expecting a result
	 * @param context Activity for which the intent is firing
	 */
	public static void SigninDialog(final Activity context) {
		Intent i = new Intent(context, LoginDialog.class);
		context.startActivityForResult(i, Constants.REQUEST_LOGIN);
	}
}

@@ -120,16 +120,53 @@
 .Intent;
+%0Aimport android.provider.BaseColumns;
 %0A%0Aimport
@@ -199,16 +199,73 @@
 nstants;
+%0Aimport com.simplenote.android.persistence.SimpleNoteDao;
 %0A%0A/**%0A *
@@ -561,32 +561,32 @@
 oteList.class);%0A
-
 %09%09context.startA
@@ -601,24 +601,577 @@
 i);%0A%09%7D%0A%09/**%0A
+%09 * Starts the SimpleNoteEdit Activity%0A%09 * @param context in which the intent is firing%0A%09 * @param id of the note to edit%0A%09 * @param originalBody of the note as retrieved from saved state%0A%09 */%0A%09public static void EditNote(final Activity context, final long id, final String originalBody) %7B%0A%09%09Intent intent = new Intent(context, SimpleNoteEdit.class);%0A%09%09intent.putExtra(BaseColumns._ID, id);%0A%09%09if (originalBody != null) %7B%0A%09%09%09intent.putExtra(SimpleNoteDao.BODY, originalBody);%0A%09%09%7D%0A%09%09context.startActivityForResult(intent, Constants.REQUEST_EDIT);%0A%09%7D%0A%09/**%0A
 %09 * Start th

Add method to fire the EditNote activity