package xtvapps.core;

import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.util.Log;

public final class AndroidCoreUtils {
	
	private static final String LOGTAG = AndroidCoreUtils.class.getSimpleName();
	
	private AndroidCoreUtils(){}
	
	public static void openGooglePlay(Context context, String packageName) {
		try {
			Log.d(LOGTAG, "opening market for " + packageName);
		    context.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + packageName)));
		} catch (android.content.ActivityNotFoundException anfe) {
		    context.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://play.google.com/store/apps/details?id=" + packageName)));
		}
	}

}

@@ -127,16 +127,45 @@
 til.Log;
+%0Aimport android.widget.Toast;
 %0A%0Apublic
@@ -761,10 +761,137 @@
 %09%09%7D%0A%09%7D%0A%0A
+%09public static void toast(Context context, String message) %7B%0A%09%09Toast.makeText(context, message, Toast.LENGTH_LONG).show();%0A%09%7D%0A%0A
 %7D%0A

Add toast function