java - ApplicationInfo metadata returning null -
i have following code:
in manifest:
<meta-data android:name="com.facebook.sdk.applicationid" android:value="@string/facebookapplicationid" />
in code:
applicationinfo ai = getpackagemanager().getapplicationinfo( getpackagename(), packagemanager.get_meta_data); if (ai.metadata != null) { ...
but result ai.metadata==null. why happening
from latest android doc, <meta-data> can contained in <activity>/<activity-alias>/<service>/ <receiver>. should append meta-data in these components, not in <application> directly.
Comments
Post a Comment