[mono-android] Newbie - confused on custom attribute vs AndroidManifest.xml and other things

tweaver60 tweaver60 at comcast.net
Sun Feb 19 00:57:58 UTC 2012


I am just starting to use Mono for Android (and anything Android), and am
having difficulty understanding if I can use a combination of custom
attributes, with adding my own items into the AndroidManifest.xml file, such
as receiver.  I think I would prefer using all custom attributes, but a lot
of the tutorials out there are not in the Mono for Android environment, and
the only documentation onthe Xamarin site is the 
http://docs.xamarin.com/android/advanced_topics/working_with_androidmanifest.xml
article  
which really only discusses Activity.  Or am I making this too complicated. 
I am very confused by the following statement in that article:
"The merging that mandroid.exe produces is trivial: it uses the custom
attributes within the code to generate XML elements, and inserts those
elements into AndroidManifest.xml. Elements nested within
/manifest/application are not merged, and Properties\AndroidManifest.xml
always overrides data provided by custom attributes."

Especially the nesting, since most of the custom attributes I would think go
inside the application tag.

Ultimately,  my goal is to create a widget, but the tutorial I found (using
Eclipse/Java) discusses creating an XML to define the AppWidget provider,
and I'm not sure where to place that XML file, since the folder structure is
quite different from the Mono for Android structure.  I guess, not knowing
either environment, looking at tutorials in one, trying to replicate in Mono
for Android has me a bit confused.

Can anyone shed some light for a newbie.  I am a .Net C# developer, but seem
to be grabbing at straws here.

Thx 

--
View this message in context: http://mono-for-android.1047100.n5.nabble.com/Newbie-confused-on-custom-attribute-vs-AndroidManifest-xml-and-other-things-tp5496165p5496165.html
Sent from the Mono for Android mailing list archive at Nabble.com.


More information about the Monodroid mailing list