using a string resource in a Toast
Change to
public static void ToastMemoryShort (Context context) {
Toast.makeText(context, context.getString(R.string.toast_memoryshort), Toast.LENGTH_LONG).show();
return;
}
Just use this instead:
makeText(Context context, int resId, int duration) Make a standard toast that just contains a text view with the text from a resource.
From http://developer.android.com/reference/android/widget/Toast.html