Back to project page DashNotifier.
The source code is released under:
MIT License
If you think the Android project DashNotifier 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.umang.dashnotifier; //w w w . j a v a 2s . c om import android.content.SharedPreferences; import android.content.pm.PackageManager; import android.database.Cursor; import android.preference.PreferenceManager; import com.google.android.apps.dashclock.api.DashClockExtension; import com.google.android.apps.dashclock.api.ExtensionData; import com.umang.dashnotifier.provider.NotificationProvider; public class DashNotifierExtension9 extends DashClockExtension { static final String extNumber= "9"; SharedPreferences preferences; PackageManager pm ; String packageName ; Cursor result; String[] prefValues; @Override public void onCreate(){ super.onCreate(); preferences = PreferenceManager.getDefaultSharedPreferences(this); pm = getPackageManager(); prefValues = getResources().getStringArray(R.array.entryvalues_list_preference); } @Override protected void onUpdateData(int arg0) { ExtensionData data = Commons.publishOrPerish(this, extNumber, preferences, pm, prefValues); publishUpdate(data); } @Override protected void onInitialize(boolean isReconnect) { super.onInitialize(isReconnect); if (!isReconnect) { addWatchContentUris(new String[]{NotificationProvider.CONTENT_URI.toString()}); } } }