android - What is ActivityInfo meta data? -
what activityinfo's meta data?
bundle bundle = actinfo.metadata;
what kind of data bundle contains , how retrieve data bundle if no key pair known?
thanks
it's whatever meta data specified in activity's manifest.
<activity> <meta-data android:name="key" android:value="value" /> <meta-data android:name="key2" android:resource="@string/res" /> </activity>
http://developer.android.com/guide/topics/manifest/meta-data-element.html
bundle has method called keyset returns set<string>
. that, can iterate through data bundle.getstring, getint, getboolean, getfloat. don't think there way know correct/intended data type though.
Comments
Post a Comment