android - Activity being fired off too many times -


There is another problem here.

Our app starts with a tab activity, but before users can access the tab activity to work, we have to check to see if they are logged in. This login is essential for all activities in tab activity. Therefore, instead of checking this security in all security activities, we have created our own "activity" and tab activity that extends our custom activity.

Check our "Security Check" (Just see what they have in the login key and preferences in the login token) have been inserted into the applet's activity (). If any of these checks are incorrect, then we close the login activity and use the dialog within that screen. (We are doing this because we do not want users to see data on tabs, if they are not logged in, this login activity is a black background with username / password dialog). The problem is that resume activity of summation activity is being called multiple times, and login activity starts many times

We try to set "single instance" and singlelotask flag on the XML for login activity. , But the activity ends before advertising on the activity before it is displayed on the screen.

It looks like your security check is returning false when it should not be. With the security check logic that you described, the user will be prompted with login activity only if security checks return false. Therefore they should not be given signage at all times. I will start with your security check and make sure that you are checking your login status properly.


Comments