kishidp
kishidp

Reputation: 1948

drawbacks of using metadata tag in Android manifest

i just want to ask if there is any drawbacks of using metadata tags in the Android Manifest to store information such as server destination, API keys, etc.

any performance issue? (if there are many metadatas) security issue?

thanks

Upvotes: 0

Views: 622

Answers (2)

Jules
Jules

Reputation: 15199

The manifest is public information, accessible to all installed apps (e.g. this one). I wouldn't store API keys there, because generally you don't want other (potentially malicious) apps from snooping such information. There's not much you can do to prevent the user getting hold of such information, but you can at least try to make it hard for other developers.

It is also worth noting that a resource file can also be loaded by other apps (see Getting resources of another Application), so I wouldn't store that data there either. Compile-time constants are much harder to get hold of, and are probably the ideal place to store anything like this.

Upvotes: 2

Brijesh Patel
Brijesh Patel

Reputation: 676

No any drawbacks . And it also not cause any performance issue.

Upvotes: 0

Related Questions