public static void onCreate(final Activity abstractActivity, final boolean keepScreenOn) {
        final Window window = abstractActivity.getWindow();
        if (keepScreenOn) {
            window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
        }
    }
Show a short toast message to the user. This can be called from any thread.

@param activity the activity the user is facing
@param text     the message
main/src/main/java/cgeo/geocaching/activity/ActivityMixin.java