Greetings.
I have been developing an Android app which allows the user to manually add data (Native SQLite DB) and then Sync that data (Bidirectionally) to a PC Native Database (Any MS OleDB Capable Database).
The development of the app was going perfect, but i faced a great wall:
It is required to explicitly Sync the data through USB and to be compatible with almost every device and older versions of Windows (XP - Vista - 7 - 8), so i deceided to use the famous MTP Protocol, which was first implemented on Windows Media Player v10 (XP)
But i don't know if this was a good election.
Searching for hours and hours on the internet(Google) and some other sites dedicated to programing, i found some references:
The "Almighty" WPDAPI (Windows Portable Devices API), this API should make easy the use of the MTP Protocol, and it was implemented Since WMP10. But actually there are no examples (I didn't find anything) of code on the MSDN Site and it seems that is written on C++, like a small rock on the shoe.
The WIA (Windows Image Adquisition) that actually should work for this Job, but it doesn't because it only works with Imaging Devices Such as Cameras and Scanners (.jpg files and stuff).
And a miracle of Lbrary named #MtpSharp, an Open Source (And currently abandoned) Proyect developed almost 10 years ago to be used with any language of the .Net platform (This is important because i'm actually using the MS.Net platform to develop the app) and it encapsulates the Elements of the WPD allowing us to use them naturally.
Doing the Trial and Error mechanism i managed myself to get some information about the connected MTP Devices. (Because of the lack of documentation of the proyect).
This is so difficult for me.
So i deceided to send an E-Mail to the creator of the library asking how to Copy/Delete Documents Bidirectionally.
His response:
I will not surrender about this. But i actually think that it would be better to detect the Attached Device on the PC[Mass Storage Mode] and execute a Natural Copy - Paste operation.
Also i want to add the feature of Sending the Database VIA Internet (On the android device) (It could be any service or e-mail).
So what i wanted to ask is that if there is anyone that have been on a scenario like this and could bring a little help. Greetings
I have been developing an Android app which allows the user to manually add data (Native SQLite DB) and then Sync that data (Bidirectionally) to a PC Native Database (Any MS OleDB Capable Database).
The development of the app was going perfect, but i faced a great wall:
It is required to explicitly Sync the data through USB and to be compatible with almost every device and older versions of Windows (XP - Vista - 7 - 8), so i deceided to use the famous MTP Protocol, which was first implemented on Windows Media Player v10 (XP)
But i don't know if this was a good election.
Searching for hours and hours on the internet(Google) and some other sites dedicated to programing, i found some references:
The "Almighty" WPDAPI (Windows Portable Devices API), this API should make easy the use of the MTP Protocol, and it was implemented Since WMP10. But actually there are no examples (I didn't find anything) of code on the MSDN Site and it seems that is written on C++, like a small rock on the shoe.
The WIA (Windows Image Adquisition) that actually should work for this Job, but it doesn't because it only works with Imaging Devices Such as Cameras and Scanners (.jpg files and stuff).
And a miracle of Lbrary named #MtpSharp, an Open Source (And currently abandoned) Proyect developed almost 10 years ago to be used with any language of the .Net platform (This is important because i'm actually using the MS.Net platform to develop the app) and it encapsulates the Elements of the WPD allowing us to use them naturally.
Doing the Trial and Error mechanism i managed myself to get some information about the connected MTP Devices. (Because of the lack of documentation of the proyect).
This is so difficult for me.
So i deceided to send an E-Mail to the creator of the library asking how to Copy/Delete Documents Bidirectionally.
His response:
Hello
Unfortunately, retrieving files of the device is currently not supported but It should not be that hard to add support for it.
I have developed this library for an mp3 sync application and therefor jmtp currently only supports creating folders, copying files to the device and deleting files.
I currently do not work on jmtp anymore, but feel free to add support for it yourself.
Kind regards,
Pieter
I will not surrender about this. But i actually think that it would be better to detect the Attached Device on the PC[Mass Storage Mode] and execute a Natural Copy - Paste operation.
Also i want to add the feature of Sending the Database VIA Internet (On the android device) (It could be any service or e-mail).
So what i wanted to ask is that if there is anyone that have been on a scenario like this and could bring a little help. Greetings