I am looking for an efficient way to use the HttpClient for my android application.
I use HttpClients inside different activities and I want use just one client for the application and pass it around the activities. Even though I look through some answers I couldn’t figure out a way to use just one client for my several activities.
Can you please explain me how to implement this pattern possibly with a sample code?
Thank you.
Here are a few things that you need to keep in mind before implementing such a HttpClient.
Hope it helps.