Click here to Skip to main content
15,891,864 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have searched for hours but can't find a solution. When I finish updating my desktop app (vb.net) I currently save a copy of the sqlite database to my Samsung tablet using file explorer (drag and drop). to:
"This PC\Galaxy Tab A\Tablet\Android\data\b4a.example\files" so that my app can access the client data in the field while offline.
I would like to save direct to that location from within the vb.net desktop program but vb doesn't appear to see this location. The tablet is attached via usb.
Any help would be appreciated

What I have tried:

I have tried to save using "This PC\Galaxy Tab A\ etc but this only saves it to the PC's User folder.
Posted
Updated 24-Jul-19 16:53pm
Comments
Richard MacCutchan 22-Jul-19 3:41am    
You need to find the real device path that can be accessed by your code. What you are using above is a junction point set up in Windows Explorer.
Member 13188160 23-Jul-19 1:34am    
Thanks Richard - looks like a new adventure...
Appreciate the direction
Brad

Do not expect this to be simple ... and it's probably going to depend on how your Android device is configured: MTP will probably not work at all, Mass storage device may.

This is a good starting point: External Drives Library: Part 1 - Dealing with USB-Connected Devices[^]
 
Share this answer
 
Comments
Ravi Bhavnani 22-Jul-19 16:44pm    
John's code works amazingly well. He's also very quick to respond to questions.

/ravi
OriginalGriff 22-Jul-19 17:05pm    
Yeah,I've got some to bring up with him tomorrow - I can't get the D/L sample to work without exceptions / asserts at the moment, but I didn't play with for long this afternoon.
I use WebDav Server Pro on my Android and it shows up after some doing, as a network location and shared folder. The windows 10 webdav support is buggy but it's working here over wifi. I master stereo wavs to my phone regularly.

https://play.google.com/store/apps/details?id=com.theolivetree.webdavserverpro&hl=en_US[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900