lysesoft.transfer.client.filechooser.bk

Samba/CIFS client for android.

lysesoft.transfer.client.filechooser.bk

Postby fedex5 » Sun Aug 03, 2014 10:57 am

hi to all

a few days ago, i was using intents in my android program whit no problem, uploading and downloading files.

but, today, y don't even touch it, and when i try to download a file i get a: java.lang.classCastException: java.lang.String cannot be cast to lysesoft.transfer.client.filechooser.bk


this is my code:

Intent intent = new Intent();
intent.setAction(Intent.ACTION_PICK);
Uri smbUri = Uri.parse("smb://192.168.1.102");
intent.setDataAndType(smbUri, "vnd.android.cursor.dir/lysesoft.andsmb.uri");
intent.putExtra("command_type", "download");
intent.putExtra("remote_file1", "/desk/file");
intent.putExtra("progress_title", "Downloading folder ...");
intent.putExtra("local_folder", "/mnt/sdcard/");
intent.putExtra("close_ui", "true");
startActivityForResult(intent, 0);

And the same problem is in the example aplication, y can upload a file, but not viceversa...

what's the problem?
fedex5
 
Posts: 2
Joined: Sun Aug 03, 2014 10:51 am

Re: lysesoft.transfer.client.filechooser.bk

Postby support » Sat Aug 09, 2014 11:45 am

We're going to check it.
support
 
Posts: 1025
Joined: Sun Apr 20, 2008 4:40 pm

Re: lysesoft.transfer.client.filechooser.bk

Postby fedex5 » Sun Aug 10, 2014 6:24 am

thanks!
fedex5
 
Posts: 2
Joined: Sun Aug 03, 2014 10:51 am

Re: lysesoft.transfer.client.filechooser.bk

Postby powerstick » Thu Aug 21, 2014 1:37 pm

Hi,
I have the same problem. After example code is working in the first few days, then it never work any more. Android phone shows "Java.lang ClassCastException: Java.lang.String cannot be cast to lysesoft.transfer.client.filechooser.bk". Is there any hidden code which block my app to work ?

Anyone can tell me how to move on? Thanks.
powerstick
 
Posts: 1
Joined: Thu Aug 21, 2014 1:20 pm

Re: lysesoft.transfer.client.filechooser.bk

Postby candymajik » Wed Oct 22, 2014 2:53 am

@fedex5
I see an error (perhaps just a typo?) in the code that you posted - you are using '0' instead of '1' for the download request. From the lysessoft sample code, I see that a '0' is an upload request:

private static final int UPLOAD_FILES_REQUEST = 0;
private static final int DOWNLOAD_FILES_REQUEST = 1;
private static final int UPLOAD_FOLDER_REQUEST = 2;
private static final int DOWNLOAD_FOLDER_REQUEST = 3;
private static final int DOWNLOAD_FILE_ALIAS_REQUEST = 4;
private static final int BROWSE_REQUEST = 5;
private static final int SEND_REQUEST = 6;
candymajik
 
Posts: 2
Joined: Wed Oct 22, 2014 2:48 am

Re: lysesoft.transfer.client.filechooser.bk

Postby candymajik » Wed Oct 22, 2014 3:07 am

Hello - I am using andSMB intents for the first time and I am getting the same error on a Moto G phone, Android 4.4.4, no cell service, WiFi connection to LAN, Drobo on this LAN with files attempting to download, developing code, invoking andSMB intent from Android Studio Beta 0.8.9.

Note that the Drobo file can be downloaded by directly using the andSMB App, but the error is encountered trying to download it programmatically with Intent.
candymajik
 
Posts: 2
Joined: Wed Oct 22, 2014 2:48 am

Re: lysesoft.transfer.client.filechooser.bk

Postby support » Thu Oct 23, 2014 6:40 am

Do you still have the issue with latest version of AndSMB?
support
 
Posts: 1025
Joined: Sun Apr 20, 2008 4:40 pm

Re: lysesoft.transfer.client.filechooser.bk

Postby support » Thu Nov 13, 2014 3:22 pm

Fixed in release 3.2.
support
 
Posts: 1025
Joined: Sun Apr 20, 2008 4:40 pm


Return to AndSMB



Sitemap | Privacy Statement | Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc.
in the U.S. and other countries. All other company and/or product names are the property of their respective owners.