문제

Once you registered with the Whatsapp , even if you force close the app from App Manager or Kill its process, when you run it again it runs from the point (activity) where you left. How does that possible? An Android application shows the first activity which is also set as launcher activity, Is that possible that it saves some data in SQLite , some check or flag?

도움이 되었습니까?

해결책

startupactivity.java is your launcher activity in manifest file.

In your startupactivity.java

1)how to check if already login or not?

->use sharedpreferences to check login or not(store and retrieve sharedpreferences)

->use file to store login data

->use sqlite database to store registration info.


->check if already register then call homescreen.java

or

->if not registered then call registration.java

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top