[Mono-bugs] [Bug 656002] ApplicationAttribute Not Generating in Manifest

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Nov 27 08:55:40 EST 2010


https://bugzilla.novell.com/show_bug.cgi?id=656002

https://bugzilla.novell.com/show_bug.cgi?id=656002#c2


Jonathan Pryor <jpryor at novell.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |jpryor at novell.com
         Resolution|                            |WONTFIX

--- Comment #2 from Jonathan Pryor <jpryor at novell.com> 2010-11-27 13:55:38 UTC ---
This is desired behavior.  There's no reasonable way for monodroid to know
which parts of AndroidManifest.xml to keep vs. overwrite from the code, so the
current "priority" order is:

  1. monodroid command-line args (e.g. --application)
  2. Template AndroidManifest.xml contents
  3. Source code attributes

For example, what if we changed your example so that MyApp [Application]
attribute used "@string/app_name2" instead of "@string/app_name" for
ApplicationAttribute.Label?  Which should be used, the [Application] value or
the AndroidManifest.xml value?  As per the above priority list, we use the
AndroidManifest.xml value.

> If I need any customizations within my Manifest I need an <application> element
> thus eliminating the ability to specify the attribute in code.

Exactly; if attributes are not flexible enough for your needs, then simply use
the XML directly.

You might also consider filing bugs so we can add additional attributes to
remove the need to modify the XML directly.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list