Guest User

Untitled

a guest
Nov 24th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. new AsyncTask<Void, Void, Void>() {
  2.  
  3. @Override
  4. protected Void doInBackground(Void... voids) {
  5. try {
  6. URL url = new URL("http://YOUR_URL_HERE");
  7. int fileLength = url.openConnection().getContentLength();
  8. } catch (IOException e) {
  9. e.printStackTrace();
  10. }
  11. return null;
  12. }
  13. }
Add Comment
Please, Sign In to add comment