[android-developers] Re: problem with Linkify.addLinks(
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 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 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 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 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
Re: [android-developers] Re: problem with Linkify.addLinks(
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 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 Vasilyevwrote: 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 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
[android-developers] Re: problem with Linkify.addLinks(
Yes On May 5, 10:35 am, Kostya Vasilyev 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 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 -- 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
Re: [android-developers] Re: problem with Linkify.addLinks(
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 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 -- 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
[android-developers] Re: problem with Linkify.addLinks(
sorry but I don't understand what you said On May 5, 9:52 am, Kostya Vasilyev 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 пишет: > > > > > > > > > > > thanks Kostya > > > I put > > > lblTitulo.setOnClickListener(new OnClickListener() { > > > public void onClick(View v) { > > // TODO Auto-generated method stub > > //TextView tv = (TextView)findViewById( > > R.id.link2_view ); > > > Intent browserIntent = new > > Intent("android.intent.action.VIEW", > > Uri.parse("http://www.google.es";)); > > startActivity(browserIntent); > > > //tv.setText(la_dire); > > // Linkify.addLinks( tv, Linkify.WEB_URLS ); > > > } > > }); > > > and it go good > > > BUt when I put my url, dosen't work, the code is this: > > > final String la_dire = miLista.get(position).getLink(); > > //System.out.println(la_dire); > > > lblTitulo.setOnClickListener(new OnClickListener() { > > > public void onClick(View v) { > > // TODO Auto-generated method stub > > //TextView tv = (TextView)findViewById( > > R.id.link2_view ); > > > Intent browserIntent = new > > Intent("android.intent.action.VIEW", > > Uri.parse(la_dire)); > > startActivity(browserIntent); > > > //tv.setText(la_dire); > > // Linkify.addLinks( tv, Linkify.WEB_URLS ); > > > } > > }); > > > The emulator said this: > > > 05-05 06:27:10.256: INFO/System.out(391): > > [net.sgoliver.Evento@44ef34c8, net.sgoliver.Evento@44ef42e8, > > net.sgoliver.Evento@44ef45f8, net.sgoliver.Evento@44ef48c0, > > net.sgoliver.Evento@44ef5560, net.sgoliver.Evento@44ef65f8, > > net.sgoliver.Evento@44ef6848, net.sgoliver.Evento@44ef6cb0, > > net.sgoliver.Evento@44ef7010, net.sgoliver.Evento@44ef7428] > > 05-05 06:27:10.465: INFO/System.out(391): > > http://www.donostiakultura.com > > 05-05 06:27:10.545: INFO/System.out(391): http://www.google.es > > 05-05 06:27:10.577: INFO/System.out(391): http://www.adimedia.net > > 05-05 06:27:10.817: INFO/ActivityManager(59): Displayed activity > > net.sgoliver/.AndroidXml: 2073 ms (total 2073 ms) > > 05-05 06:27:16.046: DEBUG/dalvikvm(119): GC_EXPLICIT freed 658 > > objects / 36880 bytes in 129ms > > 05-05 06:27:21.136: DEBUG/dalvikvm(214): GC_EXPLICIT freed 156 > > objects / 11168 bytes in 165ms > > 05-05 06:27:26.156: DEBUG/dalvikvm(261): GC_EXPLICIT freed 250 > > objects / 11856 bytes in 138ms > > 05-05 06:27:26.440: DEBUG/SntpClient(59): request time failed: > > java.net.SocketException: Address family not supported by protocol > > 05-05 06:32:02.775: INFO/ActivityManager(59): Starting activity: > > Intent { act=android.intent.action.VIEW dat= > > 05-05 06:32:02.775: INFO/ActivityManager(59): > >http://www.donostiakultura.com} > > 05-05 06:32:02.775: DEBUG/AndroidRuntime(391): Shutting down VM > > 05-05 06:32:02.786: WARN/dalvikvm(391): threadid=1: thread exiting > > with uncaught exception (group=0x4001d800) > > 05-05 06:32:02.796: ERROR/AndroidRuntime(391): FATAL EXCEPTION: main > > 05-05 06:32:02.796: ERROR/AndroidRuntime(391): > > android.content.ActivityNotFoundException: No Activity found to handle > > Intent { act=android.intent.action.VIEW dat= > > 05-05 06:32:02.796: ERROR/AndroidRuntime(391): > >http://www.donostiakultura.com} > > 05-05 06:32:02.796: ERROR/AndroidRuntime(391): at > > android.app.Instrumentation.checkStartActivityResult(Instrumentation.java: > > 1408) > > 05-05 06:32:02.796: ERROR/AndroidRuntime(391): at > > android.app.Instrumentation.execStartActivity(Instrumentation.java: > > 1378) > > 05-05 06:32:02.796: ERROR/AndroidRuntime(391): at > > android.app.Activity.startActivityForResult(Activity.java:2817) > > 05-05 06:32:02.796: ERROR/AndroidRuntime(391): at > > android.app.Activity.startActivity(Activity.java:2923) > > 05-05 06:32:02.796: ERROR/AndroidRuntime(391): at > > net.sgoliver.AndroidXml$EventoAdapter$1.onClick(AndroidXml.java:162) > > 05-05 06:32:02.796: ERROR/AndroidRuntime(391): at > > android.view.View.performClick(View.java:2408) > > 05-05 06:32:02.796: ERROR/AndroidRuntime(391): at android.view.View > > $PerformClick.run(View.java
[android-developers] Re: problem with Linkify.addLinks(
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 пишет: thanks Kostya I put lblTitulo.setOnClickListener(new OnClickListener() { public void onClick(View v) { // TODO Auto-generated method stub //TextView tv = (TextView)findViewById( R.id.link2_view ); Intent browserIntent = new Intent("android.intent.action.VIEW", Uri.parse("http://www.google.es";)); startActivity(browserIntent); //tv.setText(la_dire); // Linkify.addLinks( tv, Linkify.WEB_URLS ); } }); and it go good BUt when I put my url, dosen't work, the code is this: final String la_dire = miLista.get(position).getLink(); //System.out.println(la_dire); lblTitulo.setOnClickListener(new OnClickListener() { public void onClick(View v) { // TODO Auto-generated method stub //TextView tv = (TextView)findViewById( R.id.link2_view ); Intent browserIntent = new Intent("android.intent.action.VIEW", Uri.parse(la_dire)); startActivity(browserIntent); //tv.setText(la_dire); // Linkify.addLinks( tv, Linkify.WEB_URLS ); } }); The emulator said this: 05-05 06:27:10.256: INFO/System.out(391): [net.sgoliver.Evento@44ef34c8, net.sgoliver.Evento@44ef42e8, net.sgoliver.Evento@44ef45f8, net.sgoliver.Evento@44ef48c0, net.sgoliver.Evento@44ef5560, net.sgoliver.Evento@44ef65f8, net.sgoliver.Evento@44ef6848, net.sgoliver.Evento@44ef6cb0, net.sgoliver.Evento@44ef7010, net.sgoliver.Evento@44ef7428] 05-05 06:27:10.465: INFO/System.out(391): http://www.donostiakultura.com 05-05 06:27:10.545: INFO/System.out(391): http://www.google.es 05-05 06:27:10.577: INFO/System.out(391): http://www.adimedia.net 05-05 06:27:10.817: INFO/ActivityManager(59): Displayed activity net.sgoliver/.AndroidXml: 2073 ms (total 2073 ms) 05-05 06:27:16.046: DEBUG/dalvikvm(119): GC_EXPLICIT freed 658 objects / 36880 bytes in 129ms 05-05 06:27:21.136: DEBUG/dalvikvm(214): GC_EXPLICIT freed 156 objects / 11168 bytes in 165ms 05-05 06:27:26.156: DEBUG/dalvikvm(261): GC_EXPLICIT freed 250 objects / 11856 bytes in 138ms 05-05 06:27:26.440: DEBUG/SntpClient(59): request time failed: java.net.SocketException: Address family not supported by protocol 05-05 06:32:02.775: INFO/ActivityManager(59): Starting activity: Intent { act=android.intent.action.VIEW dat= 05-05 06:32:02.775: INFO/ActivityManager(59): http://www.donostiakultura.com } 05-05 06:32:02.775: DEBUG/AndroidRuntime(391): Shutting down VM 05-05 06:32:02.786: WARN/dalvikvm(391): threadid=1: thread exiting with uncaught exception (group=0x4001d800) 05-05 06:32:02.796: ERROR/AndroidRuntime(391): FATAL EXCEPTION: main 05-05 06:32:02.796: ERROR/AndroidRuntime(391): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat= 05-05 06:32:02.796: ERROR/AndroidRuntime(391): http://www.donostiakultura.com } 05-05 06:32:02.796: ERROR/AndroidRuntime(391): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java: 1408) 05-05 06:32:02.796: ERROR/AndroidRuntime(391): at android.app.Instrumentation.execStartActivity(Instrumentation.java: 1378) 05-05 06:32:02.796: ERROR/AndroidRuntime(391): at android.app.Activity.startActivityForResult(Activity.java:2817) 05-05 06:32:02.796: ERROR/AndroidRuntime(391): at android.app.Activity.startActivity(Activity.java:2923) 05-05 06:32:02.796: ERROR/AndroidRuntime(391): at net.sgoliver.AndroidXml$EventoAdapter$1.onClick(AndroidXml.java:162) 05-05 06:32:02.796: ERROR/AndroidRuntime(391): at android.view.View.performClick(View.java:2408) 05-05 06:32:02.796: ERROR/AndroidRuntime(391): at android.view.View $PerformClick.run(View.java:8816) 05-05 06:32:02.796: ERROR/AndroidRuntime(391): at android.os.Handler.handleCallback(Handler.java:587) 05-05 06:32:02.796: ERROR/AndroidRuntime(391): at android.os.Handler.dispatchMessage(Handler.java:92) 05-05 06:32:02.796: ERROR/AndroidRuntime(391): at android.os.Looper.loop(Looper.java:123) 05-05 06:32:02.796: ERROR/AndroidRuntime(
Re: [android-developers] Re: problem with Linkify.addLinks(
You can set an onClickListener for the view, and use ACTION_VIEW for your "http://..."; URI. http://stackoverflow.com/questions/2201917/android-open-url-from-code -- Kostya 04.05.2011 12:44, beginer пишет: When I click labelTitle, the link appeared, and you can click there and open the url . BUt What I want isn´t this, I want when I click in the labelTitle to open the url directly, I don´t want to have to click in the url. How can I do this? thank you very much, excuse my english. -- 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 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
[android-developers] Re: problem with Linkify.addLinks(
The code that I am using is this: In the method getView of the ArrayAdapter class, when you click in the title of one of the items, I do this: class EventoAdapter extends ArrayAdapter { Activity context; EventoAdapter(Activity context) { super(context, R.layout.listitem_titular, miLista); this.context = context; } public View getView(int position, View convertView, ViewGroup parent) { lblTitle.setOnClickListener(new OnClickListener() { public void onClick(View v) { // TODO Auto-generated method stub TextView tv = (TextView)findViewById( R.id.link2_view ); tv.setText(la_dire); Linkify.addLinks( tv, Linkify.WEB_URLS ); } }); } . } When I click labelTitle, the link appeared, and you can click there and open the url . BUt What I want isn´t this, I want when I click in the labelTitle to open the url directly, I don´t want to have to click in the url. How can I do this? thank you very much, excuse my english. On May 3, 12:04 pm, beginer wrote: > I resolved the problem, but known the link only appear sometimes. I > have a List View, and the both elements have a link, but in some > element appear the link and in others not. > Wht is the problem? > thaks very much > > On May 3, 10:42 am, Kostya Vasilyev wrote: > > > > > > > > > Something is null at line 147 in your AndroidXml.java. > > > -- Kostya > > > 03.05.2011 12:11, beginer ?: > > > > 05-03 08:05:16.051: ERROR/AndroidRuntime(339): FATAL EXCEPTION: main > > > 05-03 08:05:16.051: ERROR/AndroidRuntime(339): > > > java.lang.NullPointerException > > > 05-03 08:05:16.051: ERROR/AndroidRuntime(339): at > > > net.sgoliver.AndroidXml$EventoAdapter.getView(*AndroidXml.java:147*) > > > -- > > 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 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
[android-developers] Re: problem with Linkify.addLinks(
I resolved the problem, but known the link only appear sometimes. I have a List View, and the both elements have a link, but in some element appear the link and in others not. Wht is the problem? thaks very much On May 3, 10:42 am, Kostya Vasilyev wrote: > Something is null at line 147 in your AndroidXml.java. > > -- Kostya > > 03.05.2011 12:11, beginer ?: > > > 05-03 08:05:16.051: ERROR/AndroidRuntime(339): FATAL EXCEPTION: main > > 05-03 08:05:16.051: ERROR/AndroidRuntime(339): > > java.lang.NullPointerException > > 05-03 08:05:16.051: ERROR/AndroidRuntime(339): at > > net.sgoliver.AndroidXml$EventoAdapter.getView(*AndroidXml.java:147*) > > -- > 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 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
Re: [android-developers] Re: problem with Linkify.addLinks(
Something is null at line 147 in your AndroidXml.java. -- Kostya 03.05.2011 12:11, beginer ?: 05-03 08:05:16.051: ERROR/AndroidRuntime(339): FATAL EXCEPTION: main 05-03 08:05:16.051: ERROR/AndroidRuntime(339): java.lang.NullPointerException 05-03 08:05:16.051: ERROR/AndroidRuntime(339): at net.sgoliver.AndroidXml$EventoAdapter.getView(*AndroidXml.java:147*) -- 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 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
[android-developers] Re: problem with Linkify.addLinks(
Thanks Mark I seee in the LogCat and it said: 05-03 08:05:15.895: DEBUG/AndroidRuntime(339): Shutting down VM 05-03 08:05:15.895: WARN/dalvikvm(339): threadid=1: thread exiting with uncaught exception (group=0x4001d800) 05-03 08:05:16.051: ERROR/AndroidRuntime(339): FATAL EXCEPTION: main 05-03 08:05:16.051: ERROR/AndroidRuntime(339): java.lang.NullPointerException 05-03 08:05:16.051: ERROR/AndroidRuntime(339): at net.sgoliver.AndroidXml$EventoAdapter.getView(AndroidXml.java:147) 05-03 08:05:16.051: ERROR/AndroidRuntime(339): at android.widget.AbsListView.obtainView(AbsListView.java:1315) 05-03 08:05:16.051: ERROR/AndroidRuntime(339): at android.widget.ListView.makeAndAddView(ListView.java:1727) 05-03 08:05:16.051: ERROR/AndroidRuntime(339): at android.widget.ListView.fillDown(ListView.java:652) 05-03 08:05:16.051: ERROR/AndroidRuntime(339): at android.widget.ListView.fillFromTop(ListView.java:709) 05-03 08:05:16.051: ERROR/AndroidRuntime(339): at android.widget.ListView.layoutChildren(ListView.java:1580) 05-03 08:05:16.051: ERROR/AndroidRuntime(339): at android.widget.AbsListView.onLayout(AbsListView.java:1147) 05-03 08:05:16.051: ERROR/AndroidRuntime(339): at android.view.View.layout(View.java:7035) 05-03 08:05:16.051: ERROR/AndroidRuntime(339): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1249) 05-03 08:05:16.051: ERROR/AndroidRuntime(339): at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1125) 05-03 08:05:16.051: ERROR/AndroidRuntime(339): at android.widget.LinearLayout.onLayout(LinearLayout.java:1042) 05-03 08:05:16.051: ERROR/AndroidRuntime(339): at android.view.View.layout(View.java:7035) 05-03 08:05:16.051: ERROR/AndroidRuntime(339): at android.widget.FrameLayout.onLayout(FrameLayout.java:333) 05-03 08:05:16.051: ERROR/AndroidRuntime(339): at android.view.View.layout(View.java:7035) 05-03 08:05:16.051: ERROR/AndroidRuntime(339): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1249) 05-03 08:05:16.051: ERROR/AndroidRuntime(339): at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1125) 05-03 08:05:16.051: ERROR/AndroidRuntime(339): at android.widget.LinearLayout.onLayout(LinearLayout.java:1042) 05-03 08:05:16.051: ERROR/AndroidRuntime(339): at android.view.View.layout(View.java:7035) 05-03 08:05:16.051: ERROR/AndroidRuntime(339): at android.widget.FrameLayout.onLayout(FrameLayout.java:333) 05-03 08:05:16.051: ERROR/AndroidRuntime(339): at android.view.View.layout(View.java:7035) 05-03 08:05:16.051: ERROR/AndroidRuntime(339): at android.view.ViewRoot.performTraversals(ViewRoot.java:1045) 05-03 08:05:16.051: ERROR/AndroidRuntime(339): at android.view.ViewRoot.handleMessage(ViewRoot.java:1727) 05-03 08:05:16.051: ERROR/AndroidRuntime(339): at android.os.Handler.dispatchMessage(Handler.java:99) 05-03 08:05:16.051: ERROR/AndroidRuntime(339): at android.os.Looper.loop(Looper.java:123) 05-03 08:05:16.051: ERROR/AndroidRuntime(339): at android.app.ActivityThread.main(ActivityThread.java:4627) 05-03 08:05:16.051: ERROR/AndroidRuntime(339): at java.lang.reflect.Method.invokeNative(Native Method) 05-03 08:05:16.051: ERROR/AndroidRuntime(339): at java.lang.reflect.Method.invoke(Method.java:521) 05-03 08:05:16.051: ERROR/AndroidRuntime(339): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:868) 05-03 08:05:16.051: ERROR/AndroidRuntime(339): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 05-03 08:05:16.051: ERROR/AndroidRuntime(339): at dalvik.system.NativeStart.main(Native Method) Do you known what happend? Thanks On Apr 29, 9:43 pm, Mark Murphy wrote: > On Thu, Apr 28, 2011 at 8:03 AM, beginer wrote: > > I want to add a link in my ListView, > > I am using this code: > > > TextView tv = (TextView)findViewById( R.id.link2_view ); > > tv.setText("www.google.es"); > > Linkify.addLinks( tv,Linkify.WEB_URLS ); > > > but don't work > > HTTP URLs have an http:// in front of them. > > > The Android emulator said: The application has stopped > > unexpectecly .please try again. > > Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine > LogCat and look at the stack trace associated with your error. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > Android Training...At Your Office:http://commonsware.com/training -- 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