I am making an app where as soon as you sign in, it will query into the database and retrieve your details, but what's the best way of storing these details as i change between activities without having to repeatedly query into the database again to retrieve them ?
I have tried using the intent.putExtra()
method but it's causes NullPointerExceptions
when i return to previous activities. Also putExtra()
will not work on one of my classes which is HostApduService
.
So what's the best method to maintian a session ? Will i need to use cookies or something ?