Questions tagged [rms]

In Java ME MIDP, RMS stands for Record Management System API, a persistent storage mechanism, through which MIDlets can persistently store data and retrieve it later. It is also a popular R package where it is an acronym for "Regression Modeling Strategies".

The javax.microedition.rms.RecordStore class encapculates an RMS record store. It provides several methods to manage as well as insert, update, and delete records in a record store. Each record store has Record Header and a collection of Records.

Record Header contains the data (meta-data) about of the Record Store. The various header information stored in a Record Header is.

  • Reference to the first record in the Record Store.
  • Version Number of the Record Store. This parameter is zero for a newly created data store and is incremented by one for each modification to database.
  • Number of records in the Record Store.
  • Last Modified Time of the record store is updated to the header. This information can be used for coding custom synchronization algorithms as RMS by itself does not do any data synchronization.
  • Next available Record ID in the Record Store.
  • Reference to next available Record location. This reference is used by the RMS to insert a new record.

223 questions
9
votes
8 answers

Best practice for storing large amounts of data with J2ME

I am developing a J2ME application that has a large amount of data to store on the device (in the region of 1MB but variable). I can't rely on the file system so I'm stuck the Record Management System (RMS), which allows multiple record stores but…
roryf
  • 29,592
  • 16
  • 81
  • 103
7
votes
1 answer

Implementing Floggy framework in J2ME

I am creating an application with J2ME. for connecting with database I am using RecordStore. This is first get all records and traverse through it to search a record. But I have thousands of records and I just need some based on criteria - is there…
Hemant Metalia
  • 29,730
  • 18
  • 72
  • 91
5
votes
5 answers

How to keep RMS after installing a new version?

I have an j2me application installed on a Nokia S40. Some configuration data is stored in the RMS. Is it possible to overwrite the installed app with a new version? How to keep RMS in the new version? If it is possible can it be set as a default…
Daniel Moura
  • 7,816
  • 5
  • 35
  • 60
5
votes
3 answers

Android code obfuscation and secure android application from piracy

Presently i am a newbie in android development .. I need to develop a secured android application so that i can save it from getteg pirated. For security of application i have used RMS in J2ME.In J2ME i use to do following steps : generate a serial…
Shrey
  • 1,959
  • 2
  • 21
  • 44
4
votes
2 answers

Common simple data storage interface for Android, J2ME and PC

I have read many questions about Android, J2ME and RecordStore, but I still can't find the answer that could satisfy me. I need to implement low-level part of my Java app that should work on different platforms, right now this is Android and J2ME,…
Dmitry Frank
  • 10,417
  • 10
  • 64
  • 114
4
votes
1 answer

How do I read an RMS file from a Nokia S40 device?

I have an RMS file generated on an S40 Nokia phone - is there any way of reading this on a PC? I'm trying to debug an issue on the phone, which seems to be related to the contents of the RMS, and extracting it on a desktop machine seems like a good…
Adrian
  • 1,652
  • 2
  • 22
  • 32
4
votes
2 answers

Predicted values for new data using restricted cubic splines

I have some data that I'm modeling using restricted cubic splines. I'm using the rcs transformation function in the rms package to generate the transformed variables for a linear model. Here is an example using 5 knots. library('rms') my_df <-…
user102162
  • 822
  • 1
  • 8
  • 9
4
votes
1 answer

Plotting histogram with theoretical curve: Random realization

I need to write a program that generates random realizations of the Cauchy distribution with null location and unit scale. Also I need to make a histogram between -5 and 5 bins, for a random realization of 1,000 points, together with the…
4
votes
4 answers

select a group of pairs in order to minimize rms of group

Simplified problem I have ~40 resistors (all the same value +-5%) and I need to select 12 of them so that they are as similar as possible. Solution: I list them in order and take the 12 consecutive with the smallest RMS. The actual problem I have…
muzzle
  • 315
  • 3
  • 9
4
votes
2 answers

MIDP Java implementation of SQLite DB

Are there any MIDP implementation of SQLite db available for use of sqlite db within a MIDlet, rather than using RMS. Of course, there are Floggy and OpenBaseMovil, however they are based on RMS, but are there any implementations that allows to…
Prabhu R
  • 13,836
  • 21
  • 78
  • 112
3
votes
1 answer

Getting different output while running the same code in j2me & NetBeans

Run below code in both j2me & NetBeans: This code is for record filtering(search the records). The problem is that while we running this code in j2me it performs search from the beginning and in NetBeans is search from reverse. import…
3
votes
1 answer

a problem about error in cph of R code: object 'n' not found"

I am trying to generate a nomogram with the following R code and keep on getting error for the last line. The error message says "Error in cph(Surv(futime, fustat) ~ ., x = T, y = T, surv = T, data = rt, : object 'n' not found". Could anyone please…
Thea
  • 33
  • 2
3
votes
2 answers

j2me delete record from recordstore

Problem: unable to use deleteRecord() properly Background: I have a simple j2me application where I add various strings to the record store and try to manipulate the contents of the record store. I add records on one screen and then read them on…
Infinity
  • 75
  • 1
  • 7
3
votes
1 answer

Why does R not relevel?

Please find My data "w" below. I have the covariate w$WHO, which has three levels: w$WHO==1, w$WHO==2 and w$WHO==3 I want to relevel so w$WHO==1 is set as reference. I tried w$WHO <- factor(w$WHO) w$WHO <- relevel(w$WHO, ref=1) and w$WHO <-…
cmirian
  • 2,572
  • 3
  • 19
  • 59
3
votes
2 answers

how can I add several calibrate curve to the same plot

set.seed(888) y<-sample(c(0,1), 100, replace = TRUE) x1<-rnorm(100,2,3) x2<-rnorm(100,1,4) library(rms) f1<-lrm(y~x1,,x=TRUE,y=TRUE) f2<-lrm(y~x2,,x=TRUE,y=TRUE) plot(calibrate(f1)) plot(calibrate(f2),add=TRUE) with the above code, it is supposed…
Z. Zhang
  • 637
  • 4
  • 16
1
2 3
14 15