Hi Kumar, With URLEncoder, HttpGet gave me "target host must not be null". It's strange, now i've found a solution using
url = new URL("http://www.emtmalaga.es/portal/page/portal/EMT/Tiempos %20de%20espera"); InputStream is=url.openStream(); I suppose using (%20) instead of spaces should work with HttpGet as it works using an InputStream but it simply returns nothing. On 12 nov, 16:11, Kumar Bibek <coomar....@gmail.com> wrote: > What is the error? UrlEncoder if used properly, should solve your problem. > > > > On Fri, Nov 12, 2010 at 8:40 PM, Pikoh <pik...@gmail.com> wrote: > > Hi all, > > > i'm stuck with this one. i just want to get this webpage -> > >http://www.emtmalaga.es/portal/page/portal/EMT/Tiemposde espera > > into a string. I'm using HttpGet(url). First it threw me an error > > because of spaces, and i used %20 to replace them. Now it doesn't > > throw me any error, but it gets no data. I've tried also URLEncoder > > and "URL url = uri.toURL();" but still no result. Hope someone points > > me in the right direction. > > > -- > > 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<android-developers%2bunsubscr...@googlegroups.com> > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en > > -- > Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com -- 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