package android;

import android.app.Activity;
import android.app.ActivityManager;
import android.content.Intent;
import android.content.res.BaseResourceResolver;
import android.content.res.Resources;
import com.google.gwt.core.client.EntryPoint;

public abstract class BaseAndroidManifest implements EntryPoint {

	public void onModuleLoad() {
		Res.R.style().ensureInjected();

		Resources.setResourceResolver(getResourceResolver());

		ActivityManager.setup();

		Activity act = getDefaultActivity();
		ActivityManager.startActivity(new Intent(act, act), null);
	}

	public abstract BaseResourceResolver getResourceResolver();

	public abstract Activity getDefaultActivity();
}

@@ -194,16 +194,41 @@
 ources;%0A
+import android.util.Log;%0A
 import c
@@ -333,16 +333,67 @@
 oint %7B%0A%0A
+%09static final String TAG = %22BaseAndroidManifest%22;%0A%0A
 %09public 
@@ -451,24 +451,28 @@
 d();%0A%0A%09%09
+Base
 Resource
 s.setRes
@@ -467,11 +467,23 @@
 urce
-s.s
+Resolver rr = g
 etRe
@@ -501,31 +501,130 @@
 ver(
-getResourceResolver());
+);%0A%09%09if (rr != null) %7B%0A%09%09%09Resources.setResourceResolver(rr);%0A%09%09%7D else %7B%0A%09%09%09Log.i(TAG, %22No Resource Resolver defined%22);%0A%09%09%7D
 %0A%0A%09%09
@@ -688,16 +688,38 @@
 vity();%0A
+%09%09if (act != null) %7B%0A%09
 %09%09Activi
@@ -771,16 +771,77 @@
  null);%0A
+%09%09%7D else %7B%0A%09%09%09Log.e(TAG, %22No default activity defined%22);%0A%09%09%7D%0A
 %09%7D%0A%0A%09pub

Check provided Activity and ResourceResolver