This week's book giveaway is in the Security forum.
We're giving away four copies of Securing DevOps and have Julien Vehent on-line!
See this thread for details.
Win a copy of Securing DevOps this week in the Security forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

My Custom Intents do not work  RSS feed

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an application with two Activities, one activity has a button which raises an intent to launch the other Activity. Below is my manifest file:



The code in in the onClickListener to raise the intent is below:



This is the error I am getting:


E/AndroidRuntime( 817): android.content.ActivityNotFoundException: No Activity found to handle Intent { action=com.comp.weightmanagement.CONFIRMATION }



Could anyone tell me what I am doing wrong?
 
Emnaki Chih
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've solved the problem, it appears to only work if I specify the Category in the intent filter (I set it to DEFAULT). Strange I though category was optional.
 
bacon. tiny ad:
Thread Boost - a very different sort of advertising
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!