Breakpoint not working inside a Handler - Android Studio -
all other breakpoints inside class work fine. however, none of breakpoints inside run
method. can issue be?
private emitter.listener onconnect = new emitter.listener() { @override public void call(final object...args) { new handler(getmainlooper()).post(new runnable() { @override public void run() { toast.maketext(chatservice.this, "connected", toast.length_short).show(); gson gson = new gsonbuilder().excludefieldswithoutexposeannotation().create(); string json = gson.tojson(user); try { obj = new jsonobject(json); } catch (jsonexception e) { e.printstacktrace(); } msocket.emit("set-user-data", obj, user.getrole()); jsonarray membersjsonarray = new jsonarray(); membersjsonarray.put(user.getusername()); jsonobject roominfo = new jsonobject(); try { roominfo.put("members", membersjsonarray); roominfo.put("platforminfo", user.getplatforminfo()); } catch (jsonexception e) { e.printstacktrace(); } msocket.emit("set-room", roominfo); } }); } };
Comments
Post a Comment