My app is working not correctly. Exactly when I click one button, I am logged out automatically. Here there is source code.

```
protected void previewStack() {
        this.currentSubeditor.dataFromUIFields();

        Toast.makeText(getApplicationContext(), "Generating preview..", Toast.LENGTH_SHORT).show();
        updatePostButtonState();
        Hype4DController controller = Hype4DController.getInstance();
        controller.previewStack(getApplicationContext(), this, this.stack);
    }

```

So I debugged on Toast.maketext() then it shows,

```
    public Looper getMainLooper() {
        return mBase.getMainLooper();
    }

```

And warn that this loop is not in correct.
I think this is because of Toast maketext() function. Because other functions are working correctly.
So anyone please help me.