/**
  * Set the DEMO mode with favorites and other settings...
  *
  * @param context the context
  */
 public static void setDemoMode(Context context) {
   // set favorites
   Fav newFav = new Fav();
   newFav.setType(Fav.KEY_TYPE_VALUE_AUTHORITY_ROUTE_STOP);
   newFav.setFkId(RouteStop.getUID(StmBusManager.AUTHORITY, 54321, 10));
   DataManager.addFav(context.getContentResolver(), newFav);
   newFav.setFkId(RouteStop.getUID(StmBusManager.AUTHORITY, 52509, 24));
   DataManager.addFav(context.getContentResolver(), newFav);
   newFav.setFkId(RouteStop.getUID(StmBusManager.AUTHORITY, 55140, 48));
   DataManager.addFav(context.getContentResolver(), newFav);
   newFav.setFkId(RouteStop.getUID(StmBusManager.AUTHORITY, 11, 1)); // Berri-UQAM - Verte
   DataManager.addFav(context.getContentResolver(), newFav);
   newFav.setFkId(RouteStop.getUID(StmBusManager.AUTHORITY, 9, 2)); // Mont-Royal - Orange
   DataManager.addFav(context.getContentResolver(), newFav);
   newFav.setType(Fav.KEY_TYPE_VALUE_BIKE_STATIONS);
   newFav.setFkId("6415"); // Wilson / Sherbrooke
   DataManager.addFav(context.getContentResolver(), newFav);
   SupportFactory.get().backupManagerDataChanged(context);
 }
 /** @return the available space for the application (/data/data/...) */
 public static long getAvailableSize() {
   MyLog.v(TAG, "getAvailableSize()");
   StatFs stat = new StatFs(Environment.getDataDirectory().getPath());
   return SupportFactory.get().getStatFsAvailableBlocksLong(stat)
       * SupportFactory.get().getStatFsBlockSizeLong(stat);
 }