Reference to current/logged-in user

27 views
Skip to first unread message

Assulan N

unread,
Nov 1, 2015, 10:46:19 PM11/1/15
to Android Bootstrap
What is the best way to keep reference to current/logged-in user through out all classes?

Donn Felker

unread,
Nov 2, 2015, 9:22:40 AM11/2/15
to android-...@googlegroups.com

You could create a session class and have it managed as a Singleton through Dagger. Then place all user info in there. That's one option.

Donn


On Sun, Nov 1, 2015, 10:46 PM Assulan N <ass...@gmail.com> wrote:
What is the best way to keep reference to current/logged-in user through out all classes?

--
You received this message because you are subscribed to the Google Groups "Android Bootstrap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-bootst...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages