android/src/com/mapswithme/maps/settings/StoragePathManager.java
public void checkKitkatMigration(final Activity activity)
  {
    if (Build.VERSION.SDK_INT < Build.VERSION_CODES.KITKAT)
      return;

    migrateBookmarks(activity, new MoveFilesListener()
    {
      @Override
      public void moveFilesFinished(String newPath)
      {
        migrateMaps(activity);
      }

      @Override
      public void moveFilesFailed(int errorCode)
      {
        UiUtils.showAlertDialog(activity, R.string.bookmark_move_fail);
      }
    });
  }
/**
   * Checks bookmarks and data(mwms, routing, indexes etc) locations on external storages.
   * <p/>
   * Bookmarks should be placed in main MapsWithMe directory on primary storage (eg. SettingsDir, where settings.ini file is placed). If they were copied
   * to external storage (can happen on 2.6 and earlier mapswithme application versions) - we should move them back.
   * <p/>
   * Data should be placed in private app directory on Kitkat+ devices, hence root of sdcard isn't writable anymore there.
   */
Checks bookmarks and data(mwms, routing, indexes etc) locations on external storages.

Bookmarks should be placed in main MapsWithMe directory on primary storage . If they were copied
to external storage (can happen on 2.6 and earlier mapswithme application versions) - we should move them back.

Data should be placed in private app directory on Kitkat+ devices, hence root of sdcard isn't writable anymore there.
Checks bookmarks and data ( mwms routing indexes etc ) locations on external storages . Bookmarks should be placed in main MapsWithMe directory on primary storage . If they were copied to external storage ( can happen on 2 . 6 and earlier mapswithme application versions ) - we should move them back . Data should be placed in private app directory on Kitkat + devices hence root of sdcard isn ' t writable anymore there .
public void checkKitkatMigration(final Activity activity)
  {
    if (Build.VERSION.SDK_INT < Build.VERSION_CODES.KITKAT)
      return;
    migrateBookmarks(activity, new MoveFilesListener()
    {
      @Override
      public void moveFilesFinished(String newPath)
      {
        migrateMaps(activity);
      }
      @Override
      public void moveFilesFailed(int errorCode)
      {
        UiUtils.showAlertDialog(activity, R.string.bookmark_move_fail);
      }
    });
  }
public void checkKitkatMigration ( final Activity activity ) { if ( Build . VERSION . SDK_INT < Build . VERSION_CODES . KITKAT ) return ; migrateBookmarks ( activity , new MoveFilesListener ( ) { @ Override public void moveFilesFinished ( String newPath ) { migrateMaps ( activity ) ; } @ Override public void moveFilesFailed ( int errorCode ) { UiUtils . showAlertDialog ( activity , R . string . bookmark_move_fail ) ; } } ) ; }
Checks bookmarks and data(mwms, routing, indexes etc) locations on external storages.
Checks bookmarks and data ( mwms routing indexes etc ) locations on external storages .