Code:

```
String urlAPI = "http://www.domain.com/api.php?msg="+msg+"&mobile="+mobile;
URL url = new URL(urlAPI); HttpURLConnection connection = (HttpURLConnection)url.openConnection(); connection.setRequestMethod("GET");
connection.connect();
BufferedReader bf = new BufferedReader( new InputStreamReader(connection.getInputStream()));
String value = bf.readLine();
System.out.println("Result "+value);

```

Logcat:

```
08-13 10:58:45.851 10075-10075/com.example.cyb3rx.smsjungle I/dalvikvm-heap: Grow heap (frag case) to 3.188MB for 281892-byte allocation
08-13 10:58:45.861 10075-10084/com.example.cyb3rx.smsjungle D/dalvikvm: GC_FOR_ALLOC freed 1K, 20% free 3234K/4008K, paused 8ms, total 8ms
08-13 10:58:45.871 10075-10972/com.example.cyb3rx.smsjungle W/System.err: java.net.MalformedURLException: Protocol not found:

```