Start threading with another processID, and then close the application

Hello

It is a delicate issue, so maybe something for all wizards among us

OS 4.6.0 9000 "BOLD", put to the test through Wifi and 3 G networks

As far as my knowledge about operating systems goes, it is not possible to start a process of your own application, close the application and then update the application. This is because the process began has the processID of the app as a parentID. So long as the process is running the application is running and access its files of cod.

I'm trying to get an update mechanism in my application. At the moment I am citing a new private and out of my application (via the call onClose() on all the screens on the stack or the System.exit (0)) after the start of the thread of displayPage() browsersessions. I know, that probably would never work, but it is the simplest approach and worth a try. With the two variants to close the parent application ota download starts but hangs at about 10%. I guess that's because then a cod of the application file is tried to be crushed. The following threads and knowledge previously mentioned on OSs, it would be the point where the application must be fully completed.

Now, even after all ways to close an app I know... even if I try to reinstall on OTA via the external browser, download hangs at 10% (App closed before!). Seems I have the same problem as this guy, but calling onClose on all screens does not solve him.

Screw on the problems to kill a bb - app

After the crash, the machine stops and restarts. Unless I start the app again once I'm able to reinstall via OTA Download in the external browser. This brings me to some open handles that could be left by my application close. Is it possible to really put an end to the application without the remains? In the following article, I read that there is some app cleaner memory running in the background. A cleaning of my application data can be requested manually when closing?

Thread mentioning the cleaner memory application

Article on cleaning memory

Another approach, that I thought would write a separat Updater app. It would be installed via OTA on the original app (does not affect the files of applications). Then the application closes, the update must be run manually by the user. It will offer an opening to private download ota of the new app problem is still that the download would crash unless the former PPP has been terminated correctly before.

Any ideas on this subject?

Rob has soon

Thanks Jerome,.

He will give a try.

Regarding the problem of update: call the external browser works fine, the only thing to be wary of is not to close the app but just ask the application to get to bottom:

synchronized(UiApplication.getEventLock()) {
    synchronized (PersistentStore.getSynchObject()) {
        UiApplication.getUiApplication().requestBackground();
    }
}

from the download ota after that works almost perfectly (browser cache needs to be cleared before, cod size is 650 kb).

Regarding the intelligent programming, I found this:

Article on installing and updating applications programmatically

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for