android - Check if audio file exists on server -
android - Check if audio file exists on server -
how can check if sound file exists on server?
i want check if file exists on server , play it, otherwise want exit onclick event.
something do:
url url = new url("http://youraudiourl"); httpurlconnection huc = (httpurlconnection) url.openconnection(); int responsecode = huc.getresponsecode(); if( responsecode == 200){ // sound file exists }
android file audio
Comments
Post a Comment