Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 73: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 74: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 75: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 76: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 77: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 78: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.Reader; import java.net.HttpURLConnection; import java.net.URL; import org.apache.http.util.ByteArrayBuffer; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.webkit.WebView; import android.widget.TextView; public class Transliterate extends Activity { @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); /* We will show the data we read in a TextView. */ TextView tv = new TextView(this); /* Will be filled and displayed later. */ String myString = null; HttpURLConnection ucon = null; try { /* Define the URL we want to load data from. */ String indicURL = "http://www.google.com/transliterate/indic?tlqt=1&langpair=en|hi&text=yaar%2C&tl_app=3"; String newIndicURL = indicURL.replace("|", "%7C"); URL myURL = new URL(newIndicURL); Log.i("MyLogger", "Before Opening Conn"); /* Open a connection to that URL. */ ucon = (HttpURLConnection)myURL.openConnection(); ucon.setRequestMethod("GET"); ucon.connect(); Log.i("MyLogger", "After Opening Conn"); /* * Define InputStreams to read from the URLConnection. */ InputStream is = null; try { is = ucon.getInputStream(); } catch (IllegalArgumentException i) { Log.i("MyLogger", "inside IEA" + i.toString()); } catch (IOException i) { Log.i("MyLogger", "inside IOE" + i.toString()); } Log.i("MyLogger", "After getInputStream"); //BufferedInputStream bis = new BufferedInputStream(is); Log.i("MyLogger", is.toString()); Reader reader = new InputStreamReader(is, "iso-8859-1"); ByteArrayBuffer baf = new ByteArrayBuffer(250); int current = 0; while ((current = reader.read()) != -1) { baf.append((byte) current); } // Convert the Bytes read to a String. myString = new String(baf.toByteArray()); Log.i("MyLogger", myString); } catch (Exception e) { /* On any Error we want to display it. */ e.printStackTrace(); Log.i("MyLogger", e.toString()); myString = e.getMessage(); } /* Show the String on the GUI. */ tv.setText(myString); this.setContentView(tv); } }