This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez on-line!
See this thread for details.
The moose likes Android and the fly likes ActivityNotFoundException while using implicit intent Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "ActivityNotFoundException while using implicit intent" Watch "ActivityNotFoundException while using implicit intent" New topic
Author

ActivityNotFoundException while using implicit intent

Astha Sharma
Ranch Hand

Joined: Oct 15, 2011
Posts: 249

Hi
I want to make an application which renders user to home activity of phone on clicking a button. I'v written a code using Intent.CATEGORY_HOME as implicit intent, but it is generating ActivityNotFoundException.
Following is the code

Please help
Thanks in advance


Astha - OCPJP 6 (90%)
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

I guess you need to set a flag for your intent.
http://developer.android.com/reference/android/content/Intent.html

And maybe you need to write:

?
Astha Sharma
Ranch Hand

Joined: Oct 15, 2011
Posts: 249

Thanks Hussein
this link helped me. The correct code for this task is
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ActivityNotFoundException while using implicit intent