String url = "http://....";
ConnectionRequest con = new ConnectionRequest();
con.setUrl(url); con.setPost(false); con.setContentType("application/json");
InfiniteProgress prog = new InfiniteProgress(); Dialog dlg = prog.showInifiniteBlocking(); con.setDisposeOnCompletion(dlg);
NetworkManager.getInstance().addToQueueAndWait(con); byte[] data = con.getResponseData(); String response = openFileToString(data);
InputStream is = new ByteArrayInputStream(response.getBytes());
{"isError":true,"message":"ENOENT,open 'C:\\testing\\myFile.json'"}
How can I manipulate the error properly in my CN1 code?
Thanks (I've check a relevant post concerning the same matter but didn't help me much)