i have extend a uiapplication for user interface,in which i will take a date on which i schedule a task.
and i extend another base class application for running background process which will check the date and execute desired operation.
but these both are base class so i want to synchronize them..
and don’t know how to synchronize base class..
plz help mee..
i have extend a uiapplication for user interface,in which i will take a date
Share
First, and I know it is a fine point but programming is all about fine points, you don’t synchronize on Classes, you sychronize on Objects (which are instances of Classes).
On Blackberry you can use standard Java sychronization techniques, synchronized methods:
and synchronized blocks:
You can also use a specific object to synchronize with the event thread and have your code run on the event thread which allows serialized access to the UI: