android - changing Activity UI from application class
问题 I extended the Application class in order to create singleton-like object in android. in this object I have all the HTTP work with my server, and all the other activities can access it and call methods to GET, POST etc. Code: public class HttpManagerInstance extends Application { private HttpClient httpClient; private HttpGet get; @Override public void onCreate() { httpClient = new DefaultHttpClient(); get = new HttpGet("http://10.100.102.9:8000/users/"); super.onCreate(); } public Void