Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 516
Registered: ‎07-23-2010
My Device: 9900

Re: Persistent store not working in device

That is great and thanks for posting your solution. Can you mark the thread as solved?

Highlighted
Developer
Posts: 1,477
Registered: ‎12-30-2008
My Device: Torch 9810

Re: Persistent store not working in device

He can't! Because he isn't the starter of this thread. Notify a moderator or I can do it Smiley Very Happy

--
Manimaran Selvan
Co-Founder, Tech Lead,
Equity Markets Research Group
Developer
Posts: 516
Registered: ‎07-23-2010
My Device: 9900

Re: Persistent store not working in device

Oh wow lol. The original poster never posted anything back!!!

You can notify a moderator thanks.

Developer
Posts: 54
Registered: ‎06-07-2010
My Device: 9780
My Carrier: sw

Re: Persistent store not working in device

hey hi .. now its working in my device..ok can u plz post  the other solution if you have, because i am new to BB, but its working fine now..please post you solution also Smiley Happy

Developer
Posts: 54
Registered: ‎06-07-2010
My Device: 9780
My Carrier: sw

Re: Persistent store not working in device

hey hi,

your current, my data could not saved in devices, i don't know where i did the mistake...

please tell me my mistake in coding, because you find that mistake...

again i posted my code, 

 

 

 

synchronized (store) {
 try {
   dataHandler = (Vector) store.getContents();
  System.out.println("data stored******************");
 } catch (Exception e) {
 }
 if (dataHandler != null) {
     dataHandler.insertElementAt(hashT, 0);
  System.out.println("data stored ifblaock******************");
 } else {
  dataHandler = new Vector();
  dataHandler.addElement(hashT);
  System.out.println("data stored else blaock******************");
 }
 }
  synchronized (store) {
  store.setContents(dataHandler);
  store.commit();
 }

 

 please help me out...

 

Thank you all Smiley Happy