FileDocCategorySizeDatePackage
ToastTest.javaAPI DocAndroid 1.5 API4198Wed May 06 22:42:02 BST 2009com.android.statusbartest

ToastTest

public class ToastTest extends TestActivity

Fields Summary
private static final String
TAG
android.os.Handler
mHandler
android.widget.Toast
mToast1
android.widget.Toast
mToast2
private Test[]
mTests
Constructors Summary
Methods Summary
private static java.lang.StringreadFile(java.lang.String fn)

        FileReader f;
        int len;

        f = null;
        try {
            f = new FileReader(fn);
            String s = "";
            char[] cbuf = new char[200];
            while ((len = f.read(cbuf, 0, cbuf.length)) >= 0) {
                s += String.valueOf(cbuf, 0, len);
            }
            return s;
        } catch (IOException ex) {
            return "ERROR";
        } finally {
            if (f != null) {
                try {
                    f.close();
                } catch (IOException ex) {
                    return "ERROR!";
                }
            }
        }
    
protected java.lang.Stringtag()


    
       
        return TAG;
    
protected Test[]tests()

        return mTests;