IntentService not starting via Intent Filter in Xamarin Android -
fyi works in native android i'm porting xamarin
i have created intentservice wish start application. need able start service via intent filter method rather specifying class directly.
e.g activity:
android.content.intent intent = new android.content.intent("com.my.command"); startservice(intent);
my intent service class decorated so:
namespace services{ [service (exported = true, enabled = true)] [intentfilter(new[] { "com.my.command" })] class dataintentservice : intentservice { protected void onhandleintent(intent intent) { // never fires! } }
}
if extend service rather intentservice works fine, want utilize intentservice!
any ideas why not working? way, haven't attempted send intent external application yet, within same application.
thanks
android xamarin monodroid intentfilter intentservice
No comments:
Post a Comment