Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- String line, text = "";
- String[] data = new String[12];
- int array = 0;
- int jumlah_enter = 0;
- URL url = new URL("http://10.0.144.153/gmlc.php?msisdn=62" + isiPesan.substring(1));
- BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
- while ((line = in.readLine()) != null) {
- String[] pecah1 = line.split("<br/>");
- for (int i = 0; i < pecah1.length; i++) {
- if (jumlah_enter > 0 && jumlah_enter < 12) {
- text = text + " : " + pecah1[i];
- }
- jumlah_enter++;
- }
- }
- in.close();
- //System.out.println(text);
- String[] pecah2 = text.split(" : ");
- for (int i = 0; i < 24; i++) {
- int sisa = i % 2;
- if (sisa == 0) {
- data[array] = pecah2[i];
- array++;
- }
- }
- SMSBalasan = "q";
- frmServer.KirimSMS(noHp, "MSISDN:" + data[1] + ",\nIMSI:" + data[4] + ",\nMSC:" + data[5] + ",\nTimestamp:" + data[6] + ""
- + ",\nMSC:" + data[7] + ",\nMNC:" + data[8] + ",\nLAC:" + data[9] + ""
- + ",\nCELL ID:" + data[10] + ",\nFLR NO:" + data[11]);
- temp = noHp;
- } catch (MalformedURLException e) {
- } catch (IOException e) {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement