Hello I put
String la_dire = "http://www.donostiakultura.com"; Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(la_dire)); startActivity(*Intent.createChooser(browserIntent, "Browse with...")*); And it dosen´t go, if I dont put de url in the String "la_dire" , I put directly the url: Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.donostiakultura.com")); startActivity(*Intent.createChooser(browserIntent, "Browse with...")*); the emuletor goes good and the url open when I click in the item. But I need to define the url in the variable, because alwais is diferent and I get it. What is wrong? Thanks On May 5, 11:40 am, Kostya Vasilyev <[email protected]> wrote: > Weird. > > I wonder if there is some unprintable character somewhere, or perhaps a > national (accented character) somewhere in your URL. > > Change the Intent construction like this: > > Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(la_dire)); > > And double check the URL to make sure it doesn't have any strange > characters. > > You're also supposed to create a chooser, in case the user has multiple > web browsers installed: > > String la_dire = "http://www.donostiakultura.com"; > Intent browserIntent = new Intent(Intent.ACTION_VIEW, > Uri.parse(la_dire)); > startActivity(*Intent.createChooser(browserIntent, "Browse with...")*); > > -- Kostya > > 05.05.2011 12:47, beginer О©╫О©╫О©╫О©╫О©╫: > > > > > > > > > > > Yes > > > On May 5, 10:35 am, Kostya Vasilyev<[email protected]> wrote: > >> Can you access the site with the emulator's web browser? > > >> 05.05.2011 12:17, beginer О©╫О©╫О©╫О©╫О©╫: > > >>> sorry but I don't understand what you said > >>> On May 5, 9:52 am, Kostya Vasilyev<[email protected]> wrote: > >>>>> Copying back to the list. > >>>>> This looks like an emulator issue. Can you access the site with the > >>>>> emulator's web browser? I would guess not. > >>>>> And looking at the last line in the log: > >>>>> Address family not supported by protocol > >>>>> I would guess that it's IPv6 related. > >>>>> PS - Don't use hardcoded strings for intent actions, there are > >>>>> constants > >>>>> like Intent.ACTION_VIEW. > >>>>> -- Kostya > >>>>> 05.05.2011 10:37, beginer О©╫О©╫О©╫О©╫О©╫: > >> -- > >> Kostya Vasilyev --http://kmansoft.wordpress.com > > -- > Kostya Vasilyev --http://kmansoft.wordpress.com -- 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

