Hi am trying to play an audio file from a link. The link seems to redirect to another link. Please provide some reference code to play this rtsp file.
My Approach :- URL url = new URL(Link1); HttpURLConnection ucon = (HttpURLConnection) url.openConnection(); ucon.setInstanceFollowRedirects(false); URL secondURL = new URL(ucon.getHeaderField("Location")); // Problem lies here Toast.makeText(vid1.this, ""+secondURL.toString(), Toast.LENGTH_LONG).show(); player.setDataSource(secondURL.toString()); The problem is on line 4 of this code. I can not find out why since i referred to link http://stackoverflow.com/questions/5214430/follow-redirection-on-url thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en