In a page, that is, there is a lot of a network request in an Activity, such as weather forecast page, different data with no request for network interface, so is that a lot of methods in the Activity, is there any way to these methods, a method using the HTTP parsing and at the same time will receive the data parsing and the UI update) encapsulated, in order to reduce the code in the Activity, or write down a long, looking for is bad,
CodePudding user response:
Encapsulation library online, and see what you say, you all code written in the book of the Activity?