Posts by Sam • 25 points
2 posts
-
0
votes1
answer40
viewsQ: httpurlconnection on android:
Hello, I’m trying to get the http response code, and I’m using this code : HttpURLConnection connection = (HttpURLConnection)url.openConnection(); connection.setRequestMethod("GET");…
-
2
votes1
answer57
viewsQ: Is this path valid for all devices?
I am developing an app. It has the function of saving image in an own folder of the app. And I am using the following code : File file = new File("storage/emulated/0/PastaTeste/");//PastaTeste é a…