FileDocCategorySizeDatePackage
ErrorScreen.javaAPI DocAndroid 1.5 API2535Wed May 06 22:42:42 BST 2009com.android.camera

ErrorScreen

public class ErrorScreen extends android.app.Activity

Fields Summary
int
mError
boolean
mLogoutOnExit
boolean
mReconnectOnExit
android.os.Handler
mHandler
Runnable
mCloseScreenCallback
Constructors Summary
Methods Summary
public voidonCreate(android.os.Bundle icicle)

    
         
        super.onCreate(icicle);

        resolveIntent();
        
        String errMsg = null;
        
        // PENDING: resourcify error messages!
        
        switch (mError) {
            default:
                errMsg = "You need to setup your Picassa Web account first.";
            break;
        }
        
        TextView tv = new TextView(this);
        tv.setText(errMsg);        
        setContentView(tv);
    
public voidonResume()

        super.onResume();
        
        mHandler.postAtTime(mCloseScreenCallback,
                SystemClock.uptimeMillis() + 5000);

    
public voidonStop()

        super.onStop();
        mHandler.removeCallbacks(mCloseScreenCallback);        
//        startNextActivity();
    
voidresolveIntent()

        Intent intent = getIntent();        
        mError = intent.getIntExtra("error", mError);

        mLogoutOnExit = intent.getBooleanExtra("logout", mLogoutOnExit);
        mReconnectOnExit = intent.getBooleanExtra("reconnect", mReconnectOnExit);