android - startActivity with an implicit category-less intent -


it seems me if startactivity called implicit categoryless intent, activities intent filter specifying default category (android.intent.category.default) can launched.

the category not needed in intent filter services if use startservice instead of startactivity.

does see same behavior ?

is documented somewhere in android official documentation ?

i think documented.

see http://developer.android.com/reference/android/content/intent.html:

the categories, if supplied, must listed activity categories handles. is, if include categories category_launcher , category_alternative, resolve components intent lists both of categories. activities need support category_default can found context.startactivity().

my experience category-less activity can used startactivity() if class explicitly set in intent, though. in case, no intent matching done.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -