在activity里面监听来自服务器的json消息,服务端一接到更新就发json数据到移动端,每一次接收到json数据就提取参数刷新activity,但不想每次都JSONObject jsonobject = new JSONObject(json),这样子好像不是很好,会影响性能,有什么好的解决方法吗?
According to your model, converting string to obj must go through this step, and the object is only generated when actively requesting it. There is no performance disadvantage.
According to your model, converting string to obj must go through this step, and the object is only generated when actively requesting it. There is no performance disadvantage.