Go Back   CodingForums.com > :: Server side development > Java and JSP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-10-2005, 12:31 PM   PM User | #1
d11wtq
Regular Coder

 
Join Date: Dec 2004
Location: Manchester, UK
Posts: 134
Thanks: 0
Thanked 0 Times in 0 Posts
d11wtq is an unknown quantity at this point
Java Midlet access permissions

Hi,

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
d11wtq is offline   Reply With Quote
Old 01-10-2005, 02:36 PM   PM User | #2
shmoove
Regular Coder

 
Join Date: Dec 2003
Posts: 367
Thanks: 0
Thanked 0 Times in 0 Posts
shmoove is an unknown quantity at this point
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.

shmoove
shmoove is offline   Reply With Quote
Old 01-10-2005, 02:45 PM   PM User | #3
d11wtq
Regular Coder

 
Join Date: Dec 2004
Location: Manchester, UK
Posts: 134
Thanks: 0
Thanked 0 Times in 0 Posts
d11wtq is an unknown quantity at this point
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
d11wtq is offline   Reply With Quote
Old 01-10-2005, 03:37 PM   PM User | #4
shmoove
Regular Coder

 
Join Date: Dec 2003
Posts: 367
Thanks: 0
Thanked 0 Times in 0 Posts
shmoove is an unknown quantity at this point
With that phone you might be in luck. Looking at the Developer Guide pdf from the phone's spec sheet, it seems to support file connections.

shmoove
shmoove is offline   Reply With Quote
Old 01-10-2005, 04:15 PM   PM User | #5
d11wtq
Regular Coder

 
Join Date: Dec 2004
Location: Manchester, UK
Posts: 134
Thanks: 0
Thanked 0 Times in 0 Posts
d11wtq is an unknown quantity at this point
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
d11wtq is offline   Reply With Quote
Old 01-10-2005, 05:36 PM   PM User | #6
d11wtq
Regular Coder

 
Join Date: Dec 2004
Location: Manchester, UK
Posts: 134
Thanks: 0
Thanked 0 Times in 0 Posts
d11wtq is an unknown quantity at this point
Does this relate to pJava?
d11wtq is offline   Reply With Quote
Old 01-11-2005, 08:08 AM   PM User | #7
shmoove
Regular Coder

 
Join Date: Dec 2003
Posts: 367
Thanks: 0
Thanked 0 Times in 0 Posts
shmoove is an unknown quantity at this point
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.

shmoove
shmoove is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:05 AM.


Advertisement
Log in to turn off these ads.