Skip to content
Advertisement

ApplicationInfo metadata returning null

I have the following code:

In the manifest:

JavaScript

In the code:

JavaScript

But the result is ai.metaData==null. Why is this happening

Advertisement

Answer

From the latest android doc, <meta-data> can be only contained in <activity>/<activity-alias>/<service>/ <receiver>. So you should append meta-data in these components, not in <application> directly.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement