I'm developing an application for taking orders. Everything is OK with consuming webservices and that kind of stuff , the problem comes when I have to save all the read data into the device and then query that data. At the moment I'm using RMS. I have two record stores (one for products and one for clients) but I'm not sure about the performance when I'll have to save a considerable number of records especially for the products.
I didn't even tried to write the results from the webservices into text files because the book I read before starting to develop my app stated that :
Reading and writing files requires appropriate permissions, which means you have to cryptographically sign your application to make sure your users aren’t plagued by security prompts. As you read in Chapter 5, signing is expensive in terms of time and money. By contrast, your application can use RMS for free.
But now that I've been through all the pain of having to use RMS to store objects (serilized using json) :
rs = RecordStore.openRecordStore(mRecordStoreName, true); byte raw = stringJSON.getBytes(); idNuevoRegistro = rs.addRecord(raw, 0, raw.length);
I started to wonder if there wasn't any way to write text files , specially for data that I'm not going to update like products and clients.
The answer to my question might be a simple NO, but at least it's worth trying.
Thanks for your time.