java - How to create a listview from callback socket emit? -
i used socket.io in android project. created rest api project using node.js in case find method return json array [{...},{...},{...}]
how use following code create listview args?
msocket.emit("messages::find", jsonobject, new ack() { @override public void call(object... args) { string string = ; string [] objectlist = new string [] args[args.length-1].tostring(); list<string> stringlist = new arraylist<string>(arrays.aslist(string)); /* have here array callback */ } });
Comments
Post a Comment