File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ActivityNotFoundException while using implicit intent

 
Astha Sharma
Ranch Hand
Posts: 250
Android Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 250
Android Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Hussein
this link helped me. The correct code for this task is
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic