Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ActivityNotFoundException while using implicit intent

 
Astha Sharma
Ranch Hand
Posts: 250
Android Eclipse IDE Java
  • 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
  • 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
  • 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