[android-developers] Open URL in Fragment causes ActivityNotFoundException

2014-01-23 Thread Stanley Lei
Hi all, I'm working on the APP to show multiple images with Fragment which contains an ImageView control. And I also set the onClickListener for the image view to open some URL with startActivity. But unfortunately, the App crashed with ActivityNotFoundException. Below is the code and the

Re: [android-developers] Open URL in Fragment causes ActivityNotFoundException

2014-01-23 Thread Marina Cuello
Does it work if you add http://; to your URL? It sounds like your device/emulator has no application to handle the browsing (right word?) of that kind of data (an URI with no protocol declared). Marina On Thu, Jan 23, 2014 at 2:11 PM, Stanley Lei xiaofeng.lei...@gmail.comwrote: Hi all,

Re: [android-developers] Open URL in Fragment causes ActivityNotFoundException

2014-01-23 Thread Stanley Lei
Thanks Marina, you're right, it's working now with the http://; prefix. What a stupid error!! On Thursday, January 23, 2014 10:06:15 AM UTC-8, Marina Cuello wrote: Does it work if you add http://; to your URL? It sounds like your device/emulator has no application to handle the browsing