On Sep 28, 2011, at 8:06 AM, Miljenko Cvjetko wrote: > On 2011.09.23 21:33, Jonathan Pryor wrote: >> Unfortunately, if this is the case the answer is "don't do that": either run >> on Hardware (where the GREF limit is significantly higher), or uninstall the >> Android API Demo (so that fewer activities are pulled in), or change the >> Mono API demo code so that it looks for a different set of activities, e.g. >> look for a category in addition to Intent.CategorySampleCode. >> > OK. We have removed it from device, but this leaves few questions opened: > • how to add additional category?
With the [IntentFilter] attribute, e.g. https://github.com/xamarin/monodroid-samples/blob/master/ApiDemo/App/LocalServiceActivities.cs: [Activity (Label = "@string/activity_local_service_controller")] [IntentFilter (new[] { Intent.ActionMain }, Categories = new string[] { Intent.CategorySampleCode })] If you want an additional category, add it to the Categories array: [Activity (Label = "@string/activity_local_service_controller")] [IntentFilter (new[] { Intent.ActionMain }, Categories = new string[] { Intent.CategorySampleCode, "com.example.action.SOMETHING" })] > cannot see and find in whole solution anything related to SAMPLE_CODE SAMPLE_CODE is Intent.CategorySampleCode. Thanks, - Jon _______________________________________________ Monodroid mailing list [email protected] UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
