Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2007

Tip: Looking for answers? Try searching our database.

Is it possible to alter resource files under J2ME.

Thread view: 
ranjan.niraj@gmail.com - 22 Feb 2007 17:02 GMT
Hi,
 I am new to J2ME, and as such, to Java too.
 Is it possible for an application to modify any of the files that
are passed into the device with the application jar file. Example
might be a resource text file used to store dictionary data, passed
into the mobile phone with the dictionary application.

Is it possible, in such a scenario, for the application to add an
entry to the dictionary database file on the mobile phone.

 Any inputs would be highly appreciated.
Thanks,
-Niraj Ranjan
Oliver Wong - 22 Feb 2007 17:17 GMT
> Hi,
>  I am new to J2ME, and as such, to Java too.
[quoted text clipped - 8 lines]
>  Any inputs would be highly appreciated.
> Thanks,

   I'm not very familiar with J2ME, but my understanding is that you cannot
assume the existence of a file system, and so if you want persistence, you
need to use the record management store (RMS).

   If you think that the end user might not make very many changes to the
provided resource file (which might be the case if you're making a spell
checker, and allowing the possibility for custom words), then one solution
might be to store the small deltas that the user DOES make to the RMS, and
when reading, first check the RMS for any overriding info, and if you can't
find anything, fall back on the bundled resource file.

   - Oliver
ranjan.niraj@gmail.com - 23 Feb 2007 06:05 GMT
Thanks Oliver for the reply.

Resource files (accessible with the API getResourceAsStream, supported
under J2ME), passed with the jar file to the mobile device, can also
be used for persistent storage. This is a list of images, text etc
that the application uses internally. My question is, that is it
possible to modify these resources.

RMS is always an option.

-Niraj

> <ranjan.ni...@gmail.com> wrote in message
>
[quoted text clipped - 25 lines]
>
>     - Oliver
Darryl L. Pierce - 25 Feb 2007 13:40 GMT
> Hi,
>   I am new to J2ME, and as such, to Java too.
[quoted text clipped - 5 lines]
>  Is it possible, in such a scenario, for the application to add an
> entry to the dictionary database file on the mobile phone.

No, it's not. Those files are in the MIDlet suite's JAR file and cannot be
modified once they're installed.

Signature

Darryl L. Pierce <mcpierce@gmail.com>
http://mcpierce.dyndns.org/
"What do you care what other people think, Mr. Feynman?"

--
Posted via a free Usenet account from http://www.teranews.com



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.