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

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -