定义一个相对通用的JSON响应结构,其中包含两部分:元数据与返回值,其中,元数据表示操作是否成功与返回值消息等,返回值对应服务端方法所返回的数据. public class Response { private static final String OK = "ok"; private static final String ERROR = "error"; private Meta meta; private Object data; public Respon…
Intent简介 官方解释: An intent is an abstract description of an operation操作 to be performed展示.表演. It can be used with startActivity to launch an Activity, broadcastIntent to send it to any interested感兴趣的 BroadcastReceiver components组件, and startService(Int…