Skip to main content

Windows Mobile & JSR75

3 replies [Last post]
hnipak
Offline
Joined: 2006-02-03

Hello,

first of all I must say I'm dying see to MR3 running on my WM6 device when a binary distribution is available.

However my question is related to MR2 and File Connection API: on WM6 device, my midlet can only see "fake" fs roots under \phoneme\midp\appdb. How can I access the "real" one(s), or at least memory card, which is mounted as "Storage Card"?

I'm using MR2 binaries from http://www.cs.kuleuven.be/~davy/phoneme/downloads.htm.

Thanks!

(changing title to match the content better)

Message was edited by: hnipak

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
romanz
Offline
Joined: 2006-10-16

Hello,

Assuming that you have downloaded a binary bundle of phoneME Feature MR2, I am not sure what the origin of the WinMobile implementation of JSR-75 is. As far as I know, WinMobile is not among officially supported platforms of phoneME Feature.
The roots seen by MIDlets through JSR-75 depend on the JavaCall implementation of JSR-75. So, you need a different implementation for root access functions, in particular, javacall_fileconnection_get_mounted_roots() and javacall_fileconnection_get_path_for_root().

Regards,
Roman

Davy Preuveneers

On Thursday 31 July 2008 17:44:44 romanz wrote:
> Hello,
>
> Assuming that you have downloaded a binary bundle of phoneME Feature MR2, I
> am not sure what the origin of the WinMobile implementation of JSR-75 is.
> As far as I know, WinMobile is not among officially supported platforms of
> phoneME Feature. The roots seen by MIDlets through JSR-75 depend on the
> JavaCall implementation of JSR-75. So, you need a different implementation
> for root access functions, in particular,
> javacall_fileconnection_get_mounted_roots() and
> javacall_fileconnection_get_path_for_root().
>
> Regards,
> Roman

The builds on my website used an old JSR-75 implementation from:
https://phoneme.dev.java.net/downloads_page.html
phoneme_feature-mr2-rel-src-b23-08_may-2007.zip

A quick attempt to compile pMEF MR3 for Windows Mobile failed. I had several
compilation problems because my current patches are too far off of the
sources in MR3. I might give it another go if I have more time.

I haven't been able to get a working javacall for pMEF, but JSR 75 works fine
with plain PCSL after a little tweaking. I do not know if the implementation
of JSR-75 has changed much in MR3 (beyond relocating configuration scripts
etc). In fact, why are so many JSRs for which the sources are included in the
mr3 src zip not available in the public svn repository?

Regarding the "fake" fs roots: that's the way the jsr was implemented. The
behavior is the same as under linux. Also, a memory card is not always
mounted under "Storage Card". I have a PDA where a SD card is mounted
under "Memory Card".

A pitty though that PMEF for Windows Mobile is not officially supported,
because when I look at my download logs, pMEF seems far more popular. These
are just download statistics for the binaries from last week:

Jul 20 -> Jul 26
* CLDC: 5350 ( ppc03=308 wm5=3612 wce42=117 wce50=325 linux=45 )
* MIDP: 4180 ( ppc03=750 wm5=2025 linux=111 )
* CDC: 868 ( pocketpc=159 ppc03=236 wm5=473 linux=45 )
* Foundation: 1825 ( pocketpc=201 ppc03=677 wm5=947 linux=67 )
* Personal: 1348 ( pocketpc=208 ppc03=388 wm5=706 linux=92 )

Regards
Davy

---------------------------------------------------------------------
To unsubscribe, e-mail: feature-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: feature-help@phoneme.dev.java.net

hnipak
Offline
Joined: 2006-02-03

Thank you for your comments.

My try to run a midlet in pMEF MR2 was really straightforward - I barely read any doc, so I was a bit surprised by the JSR75 impl behaviour in that it mimics an emulator, and not a runtime, which I expected pMEF to be - perhaps it is, this is just my first impression.

To me, Davy's download statistics speaks clearly what platforms people are interested in. And once pMEF runs on iPhone, I assume iphone build download numbers would also be very interesting.