int thisDay = c.get(Calendar.DAY_OF_YEAR);
SharedPreferences prefs = this.getSharedPreferences(
"tempstore", Context.MODE_PRIVATE);
int l = prefs.getInt("tempstore", 23);
if(l != thisDay){
Toast.makeText(getApplicationContext(), "not equal", Toast.LENGTH_SHORT).show();
prefs.edit().putInt("tempstore", thisDay).commit();
}
No comments:
Post a Comment