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 My Custom Intents do not work 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 "My Custom Intents do not work" Watch "My Custom Intents do not work" New topic
Author

My Custom Intents do not work

Emnaki Chih
Ranch Hand

Joined: Sep 01, 2004
Posts: 30
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

Joined: Sep 01, 2004
Posts: 30
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.
 
Consider Paul's rocket mass heater.
 
subject: My Custom Intents do not work
 
Similar Threads
Unable to obtain bluetooth adapter
How to pass POJOs / data / values between activities?
Exception while running my app. (TargetSDK 2.2 API Level 8 running on 1.5 (API Level 3)
How to Start New Activity
cannot connect to my MySQL db using HttpClient