This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Android and the fly likes Trying to invoke Browser but getting exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Trying to invoke Browser but getting exception" Watch "Trying to invoke Browser but getting exception" New topic
Author

Trying to invoke Browser but getting exception

Dushyant Chhetri
Ranch Hand

Joined: Oct 28, 2009
Posts: 75
Hi Guys,

I am trying to invoke a browser with a URL when an Item on a Liat is clicked.

The code I am using is


I even tried to use


but I am getting an exception as
no activity found to handle intent.

to double check my List code I inserted a Toast which seems to be working fine.

I have set the permissions too.

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41060
    
  43
"www.google.com" is not a URI - the protocol is missing.


Ping & DNS - my free Android networking tools app
Dushyant Chhetri
Ranch Hand

Joined: Oct 28, 2009
Posts: 75
Thankyou now it works..
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Trying to invoke Browser but getting exception
 
Similar Threads
ActivityNotFoundException while using implicit intent
onClickListener of button does not work
Android - How to allow the application to end a phone call
Attaching file which is stored in to the application's directory
Installing APK from SD Card