Back to project page android_Findex.
The source code is released under:
Apache License
If you think the Android project android_Findex 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.lithidsw.findex.utils; // ww w .j av a 2s. c o m import android.content.Context; import android.widget.Toast; public class MrToast { Context mContext; Toast mToast; public MrToast(Context context) { mContext = context; } public void sendShortMessage(String message) { if (mToast != null) { mToast.cancel(); } mToast = Toast.makeText(mContext, message, Toast.LENGTH_SHORT); mToast.show(); } public void sendLongMessage(String message) { if (mToast != null) { mToast.cancel(); } mToast = Toast.makeText(mContext, message, Toast.LENGTH_LONG); mToast.show(); } }