On Fri, Aug 20, 2010 at 3:22 PM, Mark Murphy <[email protected]>wrote:

> You do not have a noteIntent.setCategory() call here. Those need to
> line up. Either have a category and use it, or do not have a category
> and do not use it.
>

Actually these should be fine.  DEFAULT is a special category, meaning it is
the default user action.  It is implicitly added when you use
startActivity(), so all activities that want to be launched that way must
support it.  Also it is not a problem if an activity says it supports
category FOO and the starting intent does not require category FOO.
 Categories are requirements the caller makes on the callee; the recipient
activity can not require that the intent it receives have any particular
categories.

For the original poster -- yes one application can start another
application's activities, that is pretty fundamental to how Android works.
 You should first look at the log output when your app fails to see what the
system says about it.  You can also set this in your intent flags to have
the system print out what it thinks it is doing as it resolves your intent:
http://developer.android.com/reference/android/content/Intent.html#FLAG_DEBUG_LOG_RESOLUTION


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to