public override ActivityInfo getActivityInfo(ComponentName component, int flags) { var package = loaded_packages [component.getPackageName()]; if (package == null) { return(null); } foreach (ActivityInfo info in package.Info.activities) { if (info.name.Equals(component.getClassName())) { return(info); } } return(null); }