Beispiel #1
0
 /**
  * Put this item in application history
  *
  * @param context android context
  */
 void recordLaunch(Context context) {
   // Save in history
   KissApplication.getDataHandler(context).addToHistory(pojo.id);
 }
Beispiel #2
0
 private void launchAddToFavorites(Context context, Pojo app) {
   String msg = context.getResources().getString(R.string.toast_favorites_added);
   KissApplication.getDataHandler(context).addToFavorites((MainActivity) context, app.id);
   Toast.makeText(context, String.format(msg, app.name), Toast.LENGTH_SHORT).show();
 }