Grazfather
Grazfather

Reputation: 339

Intent key naming convention

simple question about intent action naming convention: I have a new service that handles an intent. It checks the intent for key com.foo.bar.ServiceName.MANAGER_NAME I have extra arguments I want to pass, should the key be com.foo.bar.ServiceName.MANAGER_NAME.MANAGER_ARGUMENT or just com.foo.bar.ServiceName.MANAGER_ARGUMENT?

Upvotes: 3

Views: 2733

Answers (1)

elijah
elijah

Reputation: 2924

generally these constants will be declared directly in the Service, and will therefore be named like your latter option -- com.foo.bar.ServiceName.MANAGER_ARGUMENT

Upvotes: 4

Related Questions