Показать сообщение отдельно
Старый 18.06.2011, 15:39   #6
Romanzes
Разработчик
 
Аватар для Romanzes
 
Регистрация: 06.04.2008
Сообщений: 541
Написано 196 полезных сообщений
(для 637 пользователей)
Ответ: Взаимодействие приложений

Сообщение от AVL Посмотреть сообщение
Но ведь RMS у каждой программы свой, и одна не сможет получить доступ к данным другой. Такое возможно если у двух программ будут одинаковыми MIDlet-Name и MIDlet-Vendor, но не на всех телефонах такое прокатит.
Начиная с MIDP 2.0, можно создавать RMS, которые будут доступны другим мидлетам.
Ссылка: http://download.oracle.com/javame/co... int, boolean)
Читай параметр authmode метода openRecordStore(String recordStoreName, boolean createIfNecessary, int authmode, boolean writable)
AUTHMODE_PRIVATE - Only allows the MIDlet suite that created the RecordStore to access it. This case behaves identically to openRecordStore(recordStoreName, createIfNecessary).
AUTHMODE_ANY - Allows any MIDlet to access the RecordStore. Note that this makes your recordStore accessible by any other MIDlet on the device. This could have privacy and security issues depending on the data being shared. Please use carefully.
(Offline)
 
Ответить с цитированием