Android Widget例子解析(2)

static String loadTitlePref(Context context, int appWidgetId) {
SharedPreferences prefs = context.getSharedPreferences(PREFS_NAME, 0);
String prefix = prefs.getString(PREF_PREFIX_KEY + appWidgetId, null);
if (prefix != null) {
return prefix;
} else {
return context.getString(R.string.appwidget_prefix_default);
}

static void deleteTitlePref(Context context, int appWidgetId) {

static void loadAllTitlePrefs(Context context, ArrayList appWidgetIds,
ArrayList texts) {
}
}

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wwsjgd.html