tags:

views:

27

answers:

1

Is including a application package prefix while defining a custom action string is convention or mandatory?

+1  A: 

The documentation for the <action> element in the Manifest says:

For actions you define, it's best to use the package name as a prefix to ensure uniqueness.

So it is only a convention, in that there's no technical requirement to put the package name, but it's convention that will help you. For example, if you created an action with the name REFRESH it's quite possible another app might create an action with exactly the same name which could cause you problems. If you prepend your package to the action name then you can sure your names are unique and only your app will intercept them.

There's an attempt to registry of common actions at openintents.org but it doesn't have that many entries.

Dave Webb
Got it... :)nice explanation
Amit