New Android plugin - Wifi transfer

Support for Android version of Total Commander

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

New Android plugin - Wifi transfer

Post by *ghisler(Author) »

A new Android plugin is available now: Wifi Transfer!

The plugin allows to send files, folders, plain text, and URLs via a combination of QR-Codes and Wifi (wireless LAN) from Android devices to other Android devices, or to any device with a Web browser.

Download here:
http://www.ghisler.com/androidplugins/wifi/

To use, select a few files, open the context menu and choose "Send to". Here you can choose "Send via Wifi (Total Commander)". It will also be integrated into the "copy" dialog in the next version of TC.

There are two modes of operation:
1. If the sender is connected to a Wifi network, it will just run a Web+WebDAV server, and publish the server URL as text and QR-Code.

2. If the sender isn't connected to Wifi, it will first try to create an access point, and if this fails, a Wifi Direct server. Then it will publish the QR Code.

Receipient:

1. If you use the plugin together with Total Commander for Android also on the receiving side, you can browse the shared files and folders. If you shared folders, you can allow uploads and transfer files in both directions.

2. If you use a different QR-Card reader, or enter the URL manually, you will be directed to a Web interface which allows to download files, and upload to subfolders if allowed.

3. On Windows, you can use the WebDAV plugin in Total Commander to access the device. Just create a new connection with the URL shown on the server side.


Unfortunately, many translators seem to be on vacation, so a lot of languages are still unfinished. If you want to help translating the plugin to your language, please go to:
https://crowdin.net/project/total-commander

Thanks to everyone who has helped so far!
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14700
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

In the dialog that pop up after you have scanned the barcode in the "Receive via WiFi (Total Commander)" function - may I suggest that the 3 buttons: "Open", "Copy to clipboard" and "Cancel" are placed under each other - on a phone in portrait view, the button text "Copy to clipboard" is cut off (at least in Danish), as you can see here on picture 2:

http://madsenworld.dk/tcmd/androidwifi1.png
http://madsenworld.dk/tcmd/androidwifi2.png
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
seb-
Senior Member
Senior Member
Posts: 276
Joined: 2011-11-15, 06:14 UTC
Location: DE\BN - only part time TC user after switching to Linux ;)

Post by *seb- »

Nice!! Very interesting.

Just tried and it worked on the second try. Its faster than bluetooth.

one suggestion / feature request though: on the client/recipient side, can you store the wifi that was used before the plugin takes over the conncetivity?

To me it seems that the client automatically closes the connection to the temporary wifi but then does not re-connect to the WiFi that was used before.

But thanks for the innovation!
User avatar
Mikefield
Power Member
Power Member
Posts: 628
Joined: 2006-02-26, 19:13 UTC
Location: Oberursel, Germany HE

Post by *Mikefield »

Wow, nice feature! Thanks! Is there a limitation?
I've marked the external SDCard for the send to function. On the extSDCard is a sub folder (Music) 16GB big and with Subfolders and a lot of mp3 files. The Music folder cannot be opened with the WebDAV. Tried with Android Devices and WebDAV plugin of Total Commander for Windows.

mf
Bankster - Word of the Year 2009
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

2petermad
Good idea, just changed it!

2seb-
The previous Wifi isn't deleted, it should still be stored when you disconnect from the temporary Wifi. TC turns off Wifi when disconnecting from the temporary connection, so you will need to turn Wifi back on yourself to reconnect to the previous Wifi.

2Mikefield
How many files are in the large subfolder? I tried with 4000 files, and it worked fine. There may be a problem when _reading_ the folder takes more than a few seconds - then the HTTP connection may time out (depends on the client, not the server). The plugin calls the Java "list" command, and starts sending data as soon as that command returns.
Author of Total Commander
https://www.ghisler.com
seb-
Senior Member
Senior Member
Posts: 276
Joined: 2011-11-15, 06:14 UTC
Location: DE\BN - only part time TC user after switching to Linux ;)

Post by *seb- »

ghisler(Author) wrote:
2seb-
(...) TC turns off Wifi when disconnecting from the temporary connection, so you will need to turn Wifi back on yourself to reconnect to the previous Wifi.
hmm. is there no way to somehow preserve the previous state so it can be restored seemlessly? It would add to the user expierence and be very comfortable.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Beta 3 is out! The URL is the same:
http://www.ghisler.com/androidplugins/wifi/

2seb-
I have to turn off Wifi to disconnect, but I have now added code to re-enable Wifi if it was enabled before. Please try it!

2Mikefield
Unfortunately you didn't answer, but I have now added code to handle more than 20'000 files in a folder. Directory listings should also be quite a bit faster now. Please try it!
Author of Total Commander
https://www.ghisler.com
seb-
Senior Member
Senior Member
Posts: 276
Joined: 2011-11-15, 06:14 UTC
Location: DE\BN - only part time TC user after switching to Linux ;)

Post by *seb- »

ghisler(Author) wrote:
2seb-
I have to turn off Wifi to disconnect, but I have now added code to re-enable Wifi if it was enabled before. Please try it!

2Mikefield


It works, but...

i dont know how to clearly reproduce these issues:
- sometimes when switching the apps (putting TC to BG and take it back to FG) the camera seems not to load in the barcode reader thing of the client
- sometimes the connection won't establish (might be some specific issue of my devices (Samsung S4Advanced i9506 and S4-Mini).
User avatar
Mikefield
Power Member
Power Member
Posts: 628
Joined: 2006-02-26, 19:13 UTC
Location: Oberursel, Germany HE

Post by *Mikefield »

Hello Christian, sorry for the late answer. With beta 3, I made following tests:
Device 1: Galaxy S4 with KitKat 4.4.2, 36GB with mp3 files
Device 2: Galaxy TabPro 10.1 with KitKat 4.4.2, 16GB with mp3 files
Device 3: Notebook with Total Commander 8.51, WebDAV Plugin 2.5

It's possible to open the 16GB TabPRO folder with the S4 (TC for Android with webDAV Plugin).
It's not possible to open the 36 GB S4 folder with the TabPro, a "xml parse error" is shown in TC for Android with webDAV Plugin.
With the Notebook it's not possible to open any of the both folders.

How can I find out how many files are in a folder? The folder properties of the TotalCommnder doesn't show it. But I'm shure thats are lower as 20.000 files.

mf
Bankster - Word of the Year 2009
User avatar
Mikefield
Power Member
Power Member
Posts: 628
Joined: 2006-02-26, 19:13 UTC
Location: Oberursel, Germany HE

Post by *Mikefield »

Short correction! When I establish the connection with the Wifi Transfer plugin, then it works between both devices!
Only the WebDAV plugin has the problem! Hope that helps and sorry for the confusion.

mf
Bankster - Word of the Year 2009
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

2seb-
- sometimes when switching the apps (putting TC to BG and take it back to FG) the camera seems not to load in the barcode reader thing of the client
I have seen this too, but haven't found a reason yet - the plugin tries to initialize the camera in onResume(), so it should work. You need to close the app via Android task manager then.
sometimes the connection won't establish
Can you give me more information where it stops?

2Mikefield
TC for Android with webDAV Plugin
You are using the wrong plugin: WebDAV is only needed on devices which do not have the TC Wifi Transfer plugin! Please use the TC Wifi Transfer plugin as the client too.

I have updated the webDAV plugin now to handle large directories, please try it:
http://ghisler.fileburst.com/aplg/tcandroidwebdav207.apk

It's important that you test it even though the Wifi Transfer plugin works now - it also fixes some other problems.
Author of Total Commander
https://www.ghisler.com
HJarausch
Junior Member
Junior Member
Posts: 9
Joined: 2014-08-08, 15:29 UTC

Post by *HJarausch »

Hi,
can I use this plugin to connect to my Linux PC.
If yes, how can it be done?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

2HJarausch
Your linux PC can connect to your Android device:
1. Make sure both are on the same Wifi subnet
2. Share the files/folders on your Android device with this plugin
3. Use a webDAV client to connect to the shown URL
http://ubuntuguide.org/wiki/WebDAV#WebDAV_Clients
Author of Total Commander
https://www.ghisler.com
HJarausch
Junior Member
Junior Member
Posts: 9
Joined: 2014-08-08, 15:29 UTC

Post by *HJarausch »

Dumb question: how to do that?
If I click on this plugin I'm told (in German)
Verwenden Wie auf dem anderen Gerät die Option 'teilen' in einem beliebigen Programm, dann "Senden via WLAN" ... URL
Is this plugin a WebDAV server or a webDAV client?
User avatar
Mikefield
Power Member
Power Member
Posts: 628
Joined: 2006-02-26, 19:13 UTC
Location: Oberursel, Germany HE

Post by *Mikefield »

ghisler(Author) wrote:2Mikefield
I have updated the webDAV plugin now to handle large directories, please try it:
http://ghisler.fileburst.com/aplg/tcandroidwebdav207.apk

It's important that you test it even though the Wifi Transfer plugin works now - it also fixes some other problems.
Unfortunately, the new webDAV plugin 207 does not solve the problem. And yes, I use the latest Wifi Transfer plugin.

mf
Bankster - Word of the Year 2009
Post Reply