View Full Version : Java Midlet access permissions

01-10-2005, 01:31 PM

Does anybody know anything about writing java Midlets for mobile phones?

I'm wondering if it's possible to write an app which can browse the directories on the phone's memory and also on a transflash card in the phone then copy and paste files, rename folders etc? Kinda like a mini windows explorer but without any frilly bits ;)

Perhaps it's already been done... if so could you let me know where I might find a compiled version of the App. Or maybe Java does not have permission to probe the phone's storage device in this way?

I basicaly need an app which can copy files from the transflash onto the phone's storage device (for user's who do not own a datcable for transferring files to the phone's storage - including myself).

Thanks to anybody who can help on this one :)

01-10-2005, 03:36 PM
Do you have any specific phone in mind. In general, MIDP devices don't have access to the phone's file system for security reasons. Recently a JSR has been proposed and accepted that would give MIDlets access to the file system (JSR-75), but the number of devices that actually support this out on the market is very small.

Depending on what phone you have, there might be other options.


01-10-2005, 03:45 PM
I had a feeling this may have been the case.

The handset it primarily needs to be run on is a 3G phone... the Motorola C975.

Thanks for your help :)

01-10-2005, 04:37 PM
With that phone you might be in luck. Looking at the Developer Guide pdf from the phone's spec sheet (http://www.motocoder.com/motorola/template.jsp?filename=center_C975.html), it seems to support file connections.


01-10-2005, 05:15 PM
Hmmm.... it's a pretty new model like ;)

I've never used Java (or any other compilable language) but as a new starter would you say that this would a complex app to write?

I'll have a go myself if nobody will be able to help but it may be a bit of nightmare to a newcomer. Then again I suppose I only need to learn a few opertions (copy file, rename file, paste file (or folder)) that's it really.

I can pick up new languages pretty fast if I learn the basics and then sit with a book while I work (but so far I've only done JavaScript, Perl and PHP - relatively simple languages compared to Java).

Thanks very much :D

01-10-2005, 06:36 PM
Does this relate to pJava?

01-11-2005, 09:08 AM
It's a rather simple application so it's just a matter of getting acquainted with the a few functions from the API. But if you don't know Java to begin with then a couple of tutorials surely wouldn't help.

And no, this is MIDP, which is slightly different from pJava.