02-27-2013 06:01 AM
I am developing one Application where i want to install file from server in background thread and when installation completed ,notification should send to the forground application.
is there any way to do it ?
02-27-2013 06:08 AM
By 'installation' do you mean that the data you are downloading is an application that you are installing. Or do you mean when the background process has finished doing its work.
Either way, I think the usual approach here is to start the Background Thread form the foreground processing, and have the foreground processing act as an Observer (see the Observer pattern), in which case the Background Thread can inform an observers of the completion of its work. So look at the Observer pattern - this is a standard development approach and not specific to BlackBerry, there is nothing in the API to specifically support this.
02-27-2013 06:44 AM
Thanks for your quick reply.
As you suggested I have already worked with Observer pattern,As far as I know Observer patteren will help me in scenarios where we have to establish notification machanism between different modules.
But the issue i am currently facing is I want to get notified when user installs particular application.
Like in case of android we get Broadcast when user installs application.Do we have any way to get notified when any application gets installed.
02-27-2013 06:53 AM
03-05-2013 12:29 AM
Thank you for your reply.
There is something like CodeModuleManager and CodeModuleListener with the use of this i can check when any application deleted from device or installed.
I already checked it .but my problem is about appworld application installation.
i am not able to get contentId from appworld application.
03-05-2013 02:44 AM