public void GetActiveRoom() { if (PersistentStorage.isRegistered()) { if (DBStor.get_setting().isTest()) { InetConn.getWebData(Util.GetURLChat() + "getactiveRoom.php?pin=" + pin, this); setShowLoader(true); } } else if (DeviceInfo.isSimulator()) { InetConn.getWebData(Util.GetURLChat() + "getactiveRoom.php?pin=" + pin, this); setShowLoader(true); } }
public void leaveGroup(String idRoom) { int n = 0; ChatScreen cs; TombolRoomField trf; for (n = 0; n < chatss.length; n++) { cs = chatss[n]; if (cs != null) if (cs.getIdRoom().equals(idRoom)) { this.chatss[n] = null; break; } } for (n = 0; n < AktifRoom.getFieldCount(); n++) { trf = (TombolRoomField) AktifRoom.getField(n); if (trf.getRoom().getIdRoom().equals(idRoom)) { AktifRoom.delete(trf); } } PushController.updateIndicator(false); InetConn.getWebData( Util.GetURLChat() + "inout.php?id=" + idRoom + "&pin=" + pin + "&in=false&nick=" + DBStor.get_setting().getNick(), new WebDataCallback() { public void callback(String data) {} }); cs = null; trf = null; }
public void callbackLBS(String lat, String lon) { Setting set = DBStor.get_setting(); if (!set.getLat().equals(lat) && !set.getLon().equals(lon)) { set.setLat(lat); set.setLon(lon); DBStor.set_setting(set); } this.url = Util.GetURLChat() + "room.php?lat=" + lat + "&lon=" + lon; InetConn.getWebData(url, this); }