i don't know how to get total file size. this gives me -1 always
double totalSize = 0;
URL url = new URL(Constants.AUDIOURL+kid+".mp3");
HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();
urlConnection.connect();
totalSize = (double)urlConnection.getContentLength();