I was going over some of the Android resources and found something interesting. It says to add intent filters with the different data, category, and actions capable of the Activity to the Android manifest. However i’ve been able to get my app working without adding those things. Can any one explain if it is required and what adding those intent filters actually does?
I was going over some of the Android resources and found something interesting. It
Share
It’s required that you have one Activity with the following
intent-filterIF you want your application to show up on the launcher:This let’s the OS know which Activity to show when your application is started. NOTE: You don’t need the above
intent-filterif you don’t want your application to show up on the launcher (if your application is a widget, for example) (Thanks to Justin Breitfeller).If you’d like more information on Intent-Filters, check out the developer docs. A common use is allowing other applications to call your application if it can handle certain operations (such as sending an email, launching the camera, etc). If you declare these operations in your
AndroidManifest, then your application can be called via ImplicitIntents (see the above link).