Accessing Windows Mobile device Storage Card from Java?

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.

Answers


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... :-)


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.


Need Your Help

OnClickListener don´t work in activity with fragment

android android-fragments onclicklistener

I have activity that uses fragment. But if I want use OnClickListener, my app crahed. If I don´t use OnClickListener, everything is ok. How can I solve this problem ? Here is my code.