#[CLOSED] How do I maintain only one instance of the client and reuse it across my app?

7 messages · Page 1 of 1 (latest)

brittle moat
#

I am creating an Android application using Android studio. Programming language Java.

neat pecan
brittle moat
#

I can create a singleton but the client requires context that's why I am confused.

brittle moat
#

That is to say I should create only client instance the initialise it whenever I need it in activity

brittle moat
#

Thanks that was helpful.