views:

537

answers:

3

Hi guys, I'd like to be able to access the contents of my Storage Card which is in my Windows Mobile device. Normally, I'd just remove the card and shove it in a card reader, but its encrypted (and thus, locked to my WM device).

Is there an API or some sort of framework allowing read/write access to the Storage Card (while PDA is docked to PC)?

Reason is: I'm sick of having to create playlists for each album every time I upload to it. I'd like to automate this process.

Any pointers would be greatly appreciated.

+1  A: 

When the PDA is connected to the PC you can use RAPI to access files, registry etc on a Windows Mobile device, but I don't know of a Java interface to it. Should be a piece of cake with JNI though... :-)

divideandconquer.se
+1  A: 

RAPI (Remote API) is used for accessing the WM device from the desktop, and can be used to access files. See RAPI and CeCreateFile, or this tutorial on RAPI.
You can point it to files on the storage card by the "\Storage Card\" path.

But, as you notice, this is a C++ API... I'm not aware of any RAPI wrappers for Java, unfortunately.

E Dominique
A: 

thanks guys, will look into it. should be a peice of cake if I use Swig (rather than pure JNI)

Alex Lim
Swig sounds easier, yes! :-) Maybe the code at http://synce.svn.sourceforge.net/viewvc/synce/trunk/librapi2/tools/ could be of use to understand how the RAPI calls work. (But pleae note that those tools won't compile on MS Windows.)
divideandconquer.se