Code example for Bundle

Methods: getBoolean

0
    @Override 
    protected void onRestoreInstanceState(Bundle savedInstanceState) {
        super.onRestoreInstanceState(savedInstanceState);
        ListAdapter adapter = getListAdapter();
        if (adapter instanceof ListAdapterWithProgress<?>) {
            boolean isLoading = savedInstanceState.getBoolean(IS_BUSY_EXTRA);
            ((ListAdapterWithProgress<?>) adapter).setIsLoadingData(isLoading);
        } 
        wasInterrupted = true;
    } 
 
    @Override 
    protected void onPause() { 
        super.onPause(); 
        wasCreated = wasInterrupted = false;
    } 
 
    @Override 
    protected void onNewIntent(Intent intent) {
        super.onNewIntent(intent);
        this.currentIntent = intent;