Android - need different activities to be launched conditionally when launched from home screen
<p>All,
     i tried different things and finally thought i post this question.
     My application has 2 modes. one is with out registration and other, with registration.
 in without registration mode, application has to behave just like normal android application. means, if user goes like A-> B-> C and at C, he clicks home button and relaunches the app, the app should come back to C, which is normal behavior.
in second case, if user is registred user and he is at A->B->C and relauches the app using home button, then it should not take him to C but it should take him to "log in screen"?</p>

<p>how to achieve this as we will not know that activity is being started from another activity/home screen?</p>

<p>i tried "single top" with onNewIntent() but looks like onnewintent()  is not getting called when launched from homescreen. all ideas are welcome.</p>
