Take the 2-minute tour ×

I've been struggling with implicit intent, for which I had

No Activity found to handle Intent

After hours of debugging, I have just realized that my ContentProvider getType() was returning a vnd.google... MIME instead of a vnd.android...

Now, I am wondering: How could I spot this mistake more quickly? One string is in the code, the other in an XML file, it is hard to write unit tests. Also PackageManager does the intent resolution on his side, as a black box, and I don't know how to determine why some components are resolved and other discarded.

My Question is: How can I simulate the PackageManager implicit intent resolution?

share|improve this question
This doesn't really answer your question, but I learned a lot by installing market.android.com/… –  Michael Levy Feb 22 '12 at 19:23
Please define "simulate the PackageManager implicit intent resolution". –  CommonsWare Feb 22 '12 at 20:07
@CommonsWare I should have said "debug" rather than simulate. First, it would help if I could see what intent the PackageManager tries to resolve. Secondly, it would help to have the list of components the PackageManager knows, and why each is discarded or kept. –  rds Feb 23 '12 at 11:46

Your Answer



Browse other questions tagged or ask your own question.