Back to project page FAST.
The source code is released under:
GNU General Public License
If you think the Android project FAST listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.ligi.fast.background; //from ww w .j a v a 2 s . c o m import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import org.ligi.fast.App; import org.ligi.fast.model.AppInfoList; import org.ligi.fast.util.AppInfoListStore; public class AppInstallOrRemoveReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { final AppInfoListStore appInfoListStore = new AppInfoListStore(context); if (App.packageChangedListener==null) { App.packageChangedListener= new App.PackageChangedListener() { @Override public void onPackageChange(AppInfoList appInfoList) { appInfoListStore.save(appInfoList); } }; } new BackgroundGatherAsyncTask(context, appInfoListStore.load()).execute(); } }