Blackberry 中是否有像 Android 中的 SharedPreferences 之类的东西?
我想在我的 BlackBerry 应用程序中实现 SharedPreferences 之类的东西,类似于 Android 中可用的东西。我想要做的是在验证登录详细信息后存储它们,以便用户不需要一次又一次登录。
I want to implement a SharedPreferences kind of thing in my BlackBerry application similar to what is available in Android. What i want to do is store the login details after authenticating them so that the user is not required to login again and again.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用 PersistentStore 类通过 RIM SDK 来存储数据并在必要时在不同应用程序之间共享数据。
Use PersistentStore class from RIM SDK to store data and share it among different applications when necessary.
您可以使用 PersistenStore 和 RuntimeStore 通过 BB 设备保存数据。主要区别在于,即使手机重置后,持久存储也会保存您的数据。但运行时存储会在重置设备后删除它们。您可以使用您认为更适合使用的那个
You can use both PersistenStore and RuntimeStore to save data over the BB device. The main difference is that the persistent store will save your data even after a phone reset. But the runtime store will erase them after resetting the device. You can use the one that you see better for usage