09-24-2013 12:45 AM
Is there something in blackberry java application development that can be used like "Session" type storage...I just want to ask that when app starts and goes on through first screen..second screen...and i want to store something from first screen or second screen which can be retrieved in 5th or 6th screen and used that value...
Thanks and Regards,
09-24-2013 03:00 AM
Hi Aman, First of all Thanks for the reply.
Will static object persist throughout the application...? if yes, How can we use it? Any sample source code help?
PersistentStore will store data still after my application is closed.. isn't it? I don't need this type of storage in my requiremnt... As per my understanding this type of storage can be used where "Remember Me" like checkbox is needed. but for my requirement, i need a storage mechanism which can persist only from start of the app to close of the app...
09-24-2013 03:19 AM
declare like thisin your first main screen
public static String test;
initialize it in constructor
test = "this is a test string";
use this test variable in any screen like
09-25-2013 10:59 AM
static variable is the best way...