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 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 Murach's Java Servlets and JSP this week in the Servlets 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: 245

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: 3476

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: 245

Thanks Hussein
this link helped me. The correct code for this task is
 
jQuery in Action, 2nd edition
 
subject: ActivityNotFoundException while using implicit intent
 
Similar Threads
Screen changing
[Resolved] Application crashes on starting second Activity
interface and constructor
how to create sdcard and mount on the emulator
Why error in this code