aspose file tools*
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
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
 
Consider Paul's rocket mass heater.
 
subject: ActivityNotFoundException while using implicit intent