Add meta-data tag to androidManifest via build.settings?

Is there a way for me to add a custom meta-data tag to my AndroidManifest.xml via the build.settings?

I know that I can add intent-filter tags by adding a intentFilters table inside the android entry of my build.settings. I tried adding a metaData table but it is not working…

I would suspect that would be a feature request.  I’m pretty sure the intent-filters is something we had to add support for.

Rob

You can’t via the “build.settings”.  Mostly because there is no one place you can add meta-data tags to.  That is, meta-data tags can be added to all <activity>, <provider>, <receiver>, and <application> tags within the AndroidManifest.xml file.

   http://developer.android.com/guide/topics/manifest/meta-data-element.html

Why do you need to add meta-data to the manifest?

Because this is typically only useful to native Android developers.

Case in point, Corona uses a meta-data tag to indicate which app store the app is targeting, which is returned via our system.getInfo() API.

Yeah… I noticed that meta-data tag can be in different hierarchical positions…

In my case, i wanted to add a specific meta-data tag in the same “position” that intent-filters are being added today, i.e., inside main activity (<activity  android:name=“com.ansca.corona.CoronaActivity” … />).

But don’t worry, I was just trying to make Google Glass work on Corona Pro without having to unpack the apk.

Thanks Joshua.

Ahhh… gotcha.  It’s probably step 3 in the following Google Glass documentation is what you’re trying to add…

   https://developers.google.com/glass/develop/gdk/input/voice

Yeah… the intent-filter worked fine (adding via Android Manifest), but the meta-data, as you said, it is not “supported” via build.settings

I would suspect that would be a feature request.  I’m pretty sure the intent-filters is something we had to add support for.

Rob

You can’t via the “build.settings”.  Mostly because there is no one place you can add meta-data tags to.  That is, meta-data tags can be added to all <activity>, <provider>, <receiver>, and <application> tags within the AndroidManifest.xml file.

   http://developer.android.com/guide/topics/manifest/meta-data-element.html

Why do you need to add meta-data to the manifest?

Because this is typically only useful to native Android developers.

Case in point, Corona uses a meta-data tag to indicate which app store the app is targeting, which is returned via our system.getInfo() API.

Yeah… I noticed that meta-data tag can be in different hierarchical positions…

In my case, i wanted to add a specific meta-data tag in the same “position” that intent-filters are being added today, i.e., inside main activity (<activity  android:name=“com.ansca.corona.CoronaActivity” … />).

But don’t worry, I was just trying to make Google Glass work on Corona Pro without having to unpack the apk.

Thanks Joshua.

Ahhh… gotcha.  It’s probably step 3 in the following Google Glass documentation is what you’re trying to add…

   https://developers.google.com/glass/develop/gdk/input/voice

Yeah… the intent-filter worked fine (adding via Android Manifest), but the meta-data, as you said, it is not “supported” via build.settings