parse-community / ParseUI-Android

ParseUI contains user interface libraries for building apps with the Parse Android SDK.
Other
592 stars 323 forks source link

Launch directly UI-Login #104

Closed renegens closed 8 years ago

renegens commented 8 years ago

Hello,

I am currently implementing the ParseLoginBuilder on an Activity called LoginActivity which builds the signup or login proccess and then calls onStart with an intent to launch the activity for the main user called MainActivity.

The problem lies that when I log out the user and return to the ParseLoginActivity, then press the back button the fragment goes away but the underlying screen is revealed which is the empty activity that hosts the ParseLoginBuilder.

So my question is there away to launch directly the Builder from the appdrawer with checking if the user is logged in?

renegens commented 8 years ago

ok after some diggin I found the solution which what pretty obvious in fact but in case anyone is wondering how check this below.

/**

taken from ParseLoginDispatchActivity.java