Yeah that code doesn't work... Are you testing on an emulator? I used a Droid with 2.1 and when testing with a G1 with 1.6 it gracefully gives me an http error code "403 Forbidden Access is forbidden to the requested page"
So my guess Android 2.1 has a bug handling http error codes.. Anyone can confirm this? -Moto On Apr 11, 10:41 am, Prajakta Shitole <[email protected]> wrote: > Can u try this: > String _url; > URL url; > > url = new URL(_url); > HttpURLConnection connection = (HttpURLConnection)url.openConnection(); > > The above code works for me. > Thanks, > Prajakta > > On Sun, Apr 11, 2010 at 7:36 AM, Moto <[email protected]> wrote: > > I tried many different ways to connect to this url link but android > > keeps crashing saying the stack is corrupted, take a look. If anyone > > got the time on their hands to give it a try or give me some tips > > would appreciate it! :) Link does work try it on winamp or some music > > app... > > > URL: > >http://aac.jetcitylounge.groovera.com/ > > > Log Output: > > 04-11 10:30:17.908: DEBUG/dalvikvm(15329): [ 04-11 10:30:20.119 > > 15329:0x3beb F/unknown ] > > 04-11 10:30:17.908: DEBUG/dalvikvm(15329): stack corruption detected: > > aborted > > > Used code to connect: > > URLConnection cn = null; > > URL url = new URL(_url); > > cn = url.openConnection(); > > // after openConnection() it crashes > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected]<android-developers%[email protected]> > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en > > > To unsubscribe, reply using "remove me" as the subject. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

