1

Getting fileNotFoundException while doing conn.getInputStream() when connecting android app to server

view story
linux-howto

http://stackoverflow.com – I am getting file NotFoundException while I am connecting to server through my android code. Below line is throwing exception. URL url = new URL(PhpFileUrlConstants.PHP_FILE_BASE_URL + PhpFileUrlConstants.INSERT_DOC_INFO_PHP); URLConnection conn = url.openConnection(); conn.setDoOutput(true); OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream()); wr.write(data.toString()); // wr.flush(); // wr.close(); BufferedReader reader = null; try { // conn.setDoInput(true); (HowTos)