On Oct 10, 2011, at 6:08 PM, pm100 wrote:
> a) when I put
>
> [BroadcastReceiver(Enabled=true,Name="monoandroidapplication3.DeviceAdminSample",
You shouldn't provide the Name value unless you really, _really_, need to.
As for why you're not getting a <receiver/> element, it's because you haven't
placed the [BroadcastReceiver] custom attribute on a BroadcastReceiver
subclass; you placed it onto an Activity subclass.
> b) there doesnt seem to be a way to add the meta-data sub-clause of the
> receiver clause
Use the [MetaData] custom attribute:
http://docs.mono-android.net/index.aspx?link=T%3aAndroid.App.MetaDataAttribute
Thus, what you need is:
[BroadcastReceiver]
[MetaData (/* ... */ )]
class MyReceiver : BroadcastReceiver {
// ...
}
- Jon
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid