Back to project page android-mvc-framework.
The source code is released under:
Apache License
If you think the Android project android-mvc-framework listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.android_mvc.framework.ui; //from w w w . j av a2 s . co m import android.app.Activity; import android.widget.Toast; /** * FW??????UI??????????????????????????? * @author id:language_and_engineering * */ public class UIUtil { /** * ????????????? */ public static void longToast(final Activity activity, final String s) { // ????????????????????????????????????? activity.runOnUiThread(new Runnable(){ @Override public void run() { Toast.makeText(activity, s, Toast.LENGTH_LONG).show(); } }); // NOTE: ????????UI??????????????????????????????????????? // @see http://stackoverflow.com/questions/2837676/how-to-raise-a-toast-in-asynctask-i-am-prompted-to-used-the-looper } }