ok
protected String ShowHtml() { //TextView myTxt=(TextView)findViewById(R.id.txtReturn); HttpURLConnection urlConnection = null; String line=""; try { URL myUrl=new URL("http://localhost/mob1/Default.aspx"); urlConnection = (HttpURLConnection)myUrl.openConnection(); BufferedReader in = new BufferedReader (new InputStreamReader(urlConnection.getInputStream())); while(in.readLine()!=null) { line=line+in.readLine().toString(); //Counter++; } } catch(Exception ex0) { Log.d("Error : ",ex0.toString()); } finally { if(urlConnection!=null){urlConnection.disconnect(); } } int Count=line.length(); return line="Count: "+String.valueOf(Count)+"/ Start XML : "+line; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)