Since my last post got closed somehow, I will post the update to my extension in this new thread.
Version 2
⦁ added Download method
⦁ added Delete method
⦁ added FileSize method
⦁ added TestSpeed method (just for testing purposes which buffer size to use. You can leave it as it is.)
Please test and report back. It took some time to get a decent download speed, it's now nearly as fast as other file explorers with SMB on android.
I'll try to add Tim's suggestion next, opening files in the shared folder with the activity starter. If you have any other suggestions, feel free to ask:-)
--
Thank you to plug your sample source. Thank you
--
Sorry, I don't understand. What do you mean with "plug source"?
--
Since my last post got closed somehow, I will post the update to my extension in this new thread
thank you Jörg...
threads automatically will close after a few days in case there is no activity anymore...
--
Thanks for adding the link in the old post
--
It should work on Windows 10, couldn't test though.
The only precondition is write access for the authorized user. Could be problematic if it's a public share with no user authorization.
The only precondition is write access for the authorized user. Could be problematic if it's a public share with no user authorization.
Your URL is wrong, it should be in this format:
/SERVERIP/FOLDER/
/SERVERIP/FOLDER/
The same for uploading, for downloading just add the filename.
Sorry, I thought I had added the used format in the description of the blocks. Maybe I missed it, I'll check later when I have computer access
--
--
thank you Jörg
meanwhile I was successful using this path
however let me suggest you add some error handling and provide a better error message...
there can be an error like
or also
--
Thanks for testing, glad it worked.
I thought the same, I will add error message handling to this method and check the others too.
Thanks for the feedback, I need testers
--
I thought the same, I will add error message handling to this method and check the others too.
Thanks for the feedback, I need testers
--
trying to upload an image taken by the camera results in error, see screenshot, an empty file is created in Windows
it seems to be, full paths are not accepted...
using path as shown in your screenshot results in no error, and an empty file in Windows, AfterUpload event does not fire...
--
OK, so to be better compatible with other components I should probably implement a check so full paths get accepted too.
Did I understand that right, uploading doesn't work with the right paths, it just creates an empty file?
I guess your user has write access to the shared folder? Is this Windows 10?
--
Did I understand that right, uploading doesn't work with the right paths, it just creates an empty file?
I guess your user has write access to the shared folder? Is this Windows 10?
--
@Taifun the path you used 192.168.0.106/Office ; is that your IPv4 address plus a directory name or what?
-- Did I understand that right, uploading doesn't work with the right paths, it just creates an empty file?correct
I guess your user has write access to the shared folder? Is this Windows 10?
yes and yes
--
I'll check into it. Do you have a logcat for upload too by any chance?
--
--
the path you used 192.168.0.106/Office ; is that your IPv4 address plus a directory name or what?
this is the IP address followed by a shared folder name
--
'll check into it. Do you have a logcat for upload too by any chance?
here is the logcat output
1) for the full filename
2) for the reduced filename (not much to see)
example project attached
--
Thanks...that is what I though I was using. So far it ist not working. I will see if the folder is really shared.
-- Thanks...that is what I though I was using. So far it ist not working. I will see if the folder is really shared.
@Steve: it is important to add a slash in the end like this
as already said, to get a directory list works fine
--
however in logcat there is also this System.err reported...
@Taifun OK... I got the slash at the end and I have my IP address and a shared folder ...still not working. Perhaps my firewall is blocking.
--
Appreciate your advice. I will try to work this out later. Thanks.
Thanks Taifun and Steve for testing.
The last one isn't an error, I had the log level set higher.
My mistake was doing most of the testing with a Linux smb share on which everything runs smoothly.
I guess download doesn't work either?
I'll do some testing in the next couple of days and publish a new testing version
--
The last one isn't an error, I had the log level set higher.
My mistake was doing most of the testing with a Linux smb share on which everything runs smoothly.
I guess download doesn't work either?
I'll do some testing in the next couple of days and publish a new testing version
--
@Jorg Do I have to fill in the password and user name? I used what should have worked if a password is required . I entered the info using blocks and also using the Designer Properties. I still cannot connect to what Win10 says is a SHARED folder. What I get is error.
--
I will put this away for the moment and wait for your next version. This seems so simple. Thanks.
Do I have to fill in the password and user name?
try your Windows user login name and corresponding password
I guess download doesn't work either?
this is the result
@Steve usually you have to put in username and password of a user which exists on the remote pc and is authorized for that share.
@Taifun thanks, seems to be the same error as with uploading.
For now it seems my extension ONLY works with Linux systems.
I'll try to fix it ASAP and get back to you for testing.
--
@Taifun thanks, seems to be the same error as with uploading.
For now it seems my extension ONLY works with Linux systems.
I'll try to fix it ASAP and get back to you for testing.
--
Thanks guys. The extra guidance help a lot. Got it. Not the username I expected or the pass. Finally. :) I can see the directory.
--
Alright, I'm pretty sure I found the error. It should work now on Windows Shares too.
Would be great if you guys could test again:-)
--
thank you for the new version... I now get nice error messages! ;-)
--
ListContent
trying to use the ListContent method in a remote directory, which is completely empty does not trigger the GotContent event
Download
Thanks again for testing, at least your suggestion to improve error handling is working now.
I'll add an error message if a directory is empty.
For downloading and uploading it seems to be an authentication problem, but I don't have a clue why you get "write privileges" error on downloading, makes no sense...
Do you have an '@' symbol in your username by any chance? If so, just use the part before the '@' as username.
I need more testers, doesn't matter which windows version, so I can narrow down the possible problems. It works for me with windows 7, anyone else too?
In the next test version I will implement a different way of authenticating (there are two different ones), hopefully this will fix it.
--
I'll add an error message if a directory is empty.
For downloading and uploading it seems to be an authentication problem, but I don't have a clue why you get "write privileges" error on downloading, makes no sense...
Do you have an '@' symbol in your username by any chance? If so, just use the part before the '@' as username.
I need more testers, doesn't matter which windows version, so I can narrow down the possible problems. It works for me with windows 7, anyone else too?
In the next test version I will implement a different way of authenticating (there are two different ones), hopefully this will fix it.
--
--
Thanks a lot!!
--
--
Bravo!
Brilliant!
Thank You!
Brilliant!
Thank You!
--
I just finished fast tests and I can say that on windows 10 pro I can read and write on a shared folder. I go in and out of a android 6 "one plus one" device by entering Windows user name and password. The next test I will do will be to read and write to everyone's shared folder and without entering user name and password from android device. I will update you soon. Thanks to everyone, but especially to Jorg.
--
Great, thanks for testing!
--
--
댓글 없음:
댓글 쓰기