try{ HttpClient httpclient = new DefaultHttpClient(); HttpGet request = new HttpGet(); URI website = new URI("http://kredo.no-ip.org/SSMA/api/DevicesAPI/GetDevices"); request.setURI(website); HttpResponse response = httpclient.execute(request); in = new BufferedReader(new InputStreamReader( response.getEntity().getContent())); // NEW CODE String line = in.readLine(); textv.append(" First line: " + line); // URI we=website; // END OF NEW CODE String DEcrypt=AESHelper.decrypt(seedValue, line); // *****This line throws exception String s="dsfs"; String h=s; // textv.append(" Connected "); }catch(Exception e){ Log.e("log_tag", "Error in http connection " + e.toString()); }
seedValue
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)