简体   繁体   English

从Java访问Windows Mobile设备存储卡?

[英]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. 我希望能够访问我的Windows Mobile设备中的存储卡的内容。 Normally, I'd just remove the card and shove it in a card reader, but its encrypted (and thus, locked to my WM device). 通常情况下,我只需将卡取出并将其推入读卡器,但其加密(因此,锁定到我的WM设备)。

Is there an API or some sort of framework allowing read/write access to the Storage Card (while PDA is docked to PC)? 是否有API或某种允许对存储卡进行读/写访问的框架(当PDA与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. 任何指针都将非常感激。

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. 当PDA连接到PC时,您可以使用RAPI访问Windows Mobile设备上的文件,注册表等,但我不知道它的Java接口。 Should be a piece of cake with JNI though... :-) 应该是JNI的小菜一碟...... :-)

RAPI (Remote API) is used for accessing the WM device from the desktop, and can be used to access files. RAPI(远程API)用于从桌面访问WM设备,可用于访问文件。 See RAPI and CeCreateFile , or this tutorial on RAPI . 请参阅RAPICeCreateFile ,或关于RAPI的本教程
You can point it to files on the storage card by the "\\Storage Card\\" path. 您可以通过“\\ Storage Card”路径将其指向存储卡上的文件。

But, as you notice, this is a C++ API... I'm not aware of any RAPI wrappers for Java, unfortunately. 但是,正如您所注意到的,这是一个C ++ API ...遗憾的是,我不知道Java的任何RAPI包装器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM