Back to project page SmartNotify.
The source code is released under:
Copyright (c) 2014, Sergey Parshin All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: ...
If you think the Android project SmartNotify 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 com.github.quarck.smartnotify; //from w w w. j a va 2 s . c o m import android.content.Context; import android.content.pm.ApplicationInfo; public class InitialPopulate { public void populate(Context ctx, PackageSettings pkgSettings) { CommonAppsRegistry.initRegistry(ctx); for (ApplicationInfo appInfo : CommonAppsRegistry.getApplications()) { if (!pkgSettings.getIsListed(appInfo.packageName)) { pkgSettings.set(appInfo.packageName, 5*60/*default*/, true); } } } }