Hi,
I’m developing an application to log call data on Blackberry Bold -9000. The application works as both ‘foreground’ and ‘background’ application.
The call data is being stored in a ‘static Vector’.
But when I try to check the data stored in the ‘Vector’, it returns different set of values in both states.
I also tried checking the ‘hashCode ()’ value of the reference and they were also different between the two states.
Please let me know any other setting to correct this issue.
Code:
---Application Main file---
PhoneLogs.addListener(new Log1());
---Screen File ---
extends MainScreen
public static Vector vector=new Vector();
protected void paint(Graphics graphics) {
System.out.println(vector);
super.paint(graphics);
}
-----Log file ----
implements PhoneLogListener
public void callLogAdded(CallLog cl) {
try {
Screen1.vector.addElement(cl);
System.out.println(Screen1.vector);
} catch (Exception e) {
e.printStackTrace();
}
}