package androidemu.content;

import androidemu.app.Activity;
import androidemu.net.Uri;
import androidemu.os.Bundle;

public class Intent {

	public static final String ACTION_VIEW = "android.intent.action.VIEW";

	Bundle extras;
	Context ctx;
	Class<?> intentClass;
	public Activity activity;

	public Intent(String action, Uri uri) {

	}

	// public Intent(Context ctx, final Class<?> intentClass) {
	// this.ctx = ctx;
	// this.intentClass = intentClass;
	// this.activity = (Activity) GWT.create(intentClass);
	// }

	public Intent(Context ctx, Object activity) {
		this.ctx = ctx;
		this.activity = (Activity) activity;
	}

	public Class<?> getIntentClass() {
		return intentClass;
	}

	public void putExtras(Bundle extras) {
		this.extras = extras;
	}

	public Bundle getExtras() {
		return extras;
	}
}

@@ -207,16 +207,42 @@
 VIEW%22;%0A%0A
+%09String action;%0A%09Uri uri;%0A
 %09Bundle 
@@ -355,16 +355,57 @@
  uri) %7B%0A
+%09%09this.action = action;%0A%09%09this.uri = uri;
 %0A%09%7D%0A%0A%09//
@@ -685,24 +685,116 @@
 tivity;%0A%09%7D%0A%0A
+%09public String getAction() %7B%0A%09%09return action;%0A%09%7D%0A%0A%09public Uri getData() %7B%0A%09%09return uri;%0A%09%7D%0A%0A
 %09public Clas

Store action and data in Intents, add methos to access them