public PackageIntentReceiver(AppListLoader loader) { mLoader = loader; Android_Content.IntentFilter filter = new Android_Content.IntentFilter(Android_Content.Intent.ACTION_PACKAGE_ADDED); filter.AddAction(Android_Content.Intent.ACTION_PACKAGE_REMOVED); filter.AddAction(Android_Content.Intent.ACTION_PACKAGE_CHANGED); filter.AddDataScheme("package"); mLoader.Context.RegisterReceiver(this, filter); // Register for events related to sdcard installation. Android_Content.IntentFilter sdFilter = new Android_Content.IntentFilter(); sdFilter.AddAction(IntentCompat.ACTION_EXTERNAL_APPLICATIONS_AVAILABLE); sdFilter.AddAction(IntentCompat.ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE); mLoader.Context.RegisterReceiver(this, sdFilter); }
public AppEntry(AppListLoader loader, ApplicationInfo info) { mLoader = loader; mInfo = info; mApkFile = new File(info.SourceDir); }