java me - j2me - Is it possible to read/write text files without having to use the FileConnection API? -
java me - j2me - Is it possible to read/write text files without having to use the FileConnection API? -
i'm developing application taking orders. ok consuming webservices , kind of stuff , problem comes when have save read info device , query data. @ moment i'm using rms. have 2 record stores (one products , 1 clients) i'm not sure performance when i'll have save considerable number of records products.
i didn't tried write results webservices text files because the book read before starting develop app stated :
reading , writing files requires appropriate permissions, means have cryptographically sign application create sure users aren’t plagued security prompts. read in chapter 5, signing expensive in terms of time , money. contrast, application can utilize rms free.
but i've been through pain of having utilize rms store objects (serilized using json) :
rs = recordstore.openrecordstore(mrecordstorename, true); byte[] raw = stringjson.getbytes(); idnuevoregistro = rs.addrecord(raw, 0, raw.length);
i started wonder if there wasn't way write text files , specially info i'm not going update products , clients.
the reply question might simple no, @ to the lowest degree it's worth trying.
thanks time.
i'm using fileconnection write info , have no issues. state permission in application descriptor (jad) file , utilize it.
if app not signed (which indeed expensive not hard, bit of commandline magic), on more strict systems symbian inquire user "can open file/can write file" everytime writes, , on less strict systems such sony erricson won't ask.
java-me
Comments
Post a Comment