예제 #1
0
 public void importGPX(
     final IAbstractActivity fromActivity, final Uri uri, ContentResolver contentResolver) {
   createProgressDialog(fromActivity);
   closeOnFinish = true;
   new ImportAttachmentThread(uri, contentResolver, listId, importStepHandler, progressHandler)
       .start();
 }
예제 #2
0
 public void importGPX(final IAbstractActivity fromActivity, final File file) {
   createProgressDialog(fromActivity);
   if (StringUtils.endsWithIgnoreCase(file.getName(), GPX_FILE_EXTENSION)) {
     new ImportGpxFileThread(file, listId, importStepHandler, progressHandler).start();
   } else {
     new ImportLocFileThread(file, listId, importStepHandler, progressHandler).start();
   }
 }