[android-developers] Re: How to read Meta-Data
thanks mfavef!
I wrote a post about this, if someone is interested.
http://programandoando.com.ar/2010/08/android-manifest-meta-data/
On Aug 5, 12:52 pm, mfavez <mfa...@gmail.com> wrote:
> ApplicationInfo ai =
> ctx.getPackageManager().getApplicationInfo(ctx.getPackageName(),
> PackageManager.GET_META_DATA);
> String myvalue = ai.metaData.getString("myname");
>
> On Jul 2, 9:58 pm, carrerasrodrigo <carrerasrodr...@gmail.com> wrote:
>
> > hi! i would like to put the following tag in the manifest file.
>
> > <manifest xmlns:android="http://schemas.android.com/apk/res/android"
> > package="org.package.app">
> > <application>
> > ......
> > <meta-data android:value="myvalue" android:name="myname" ></
> > meta-data>
> > </application>
> > </manifest>
>
> > The question is, how i can read the value of the meta-data tag
> > (myname) ??
>
> > thanks a lot!
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home