Only send the scheme and host in the intent data Uri and construct an absolute path for every file.
Hopefully that fixes all "file not found" and "cannot change directory" issues with AndFTP.
@ -432,13 +432,19 @@ public class DetailsFragment extends Fragment implements OnTrackersUpdatedListen
@@ -432,13 +432,19 @@ public class DetailsFragment extends Fragment implements OnTrackersUpdatedListen
@ -450,16 +456,14 @@ public class DetailsFragment extends Fragment implements OnTrackersUpdatedListen
@@ -450,16 +456,14 @@ public class DetailsFragment extends Fragment implements OnTrackersUpdatedListen
}
// Note: AndFTP doesn't understand the directory that Environment.getExternalStoragePublicDirectory()
// uses :(
// Todo: Let user choose the download directory / make it configurable
@ -469,7 +473,7 @@ public class DetailsFragment extends Fragment implements OnTrackersUpdatedListen
@@ -469,7 +473,7 @@ public class DetailsFragment extends Fragment implements OnTrackersUpdatedListen
}
// Try using a VIEW intent given an ftp:// scheme URI