Working on BlackBerry applications ProgramDuring development, you sometimes need to serialize or store an object or a pojo object. At this time, many APIs on j2sdk cannot be directly used because they are developed on j21, for example, Java. io. serializable interface. In many cases, when we use persistentobject and persistentstore to persistent data, we want to persistent a Java object directly. For example, this is the simplest user object, at this time, because the user object cannot implement Java. io. serializable interface. Therefore, when persistentobject and persistentstore are used to persistent user objects, the error "Bad Persistent Object: User" will appear. Here is a method to solve this problem, is to let the user class implement net. rim. device. API. util. persistable interface, and then per Sistent.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.