BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 07-31-2009, 03:44 AM   #1
adex08
New Member
 
Join Date: Jul 2009
Model: 9000
PIN: N/A
Carrier: Cosmote
Posts: 2
Default Application reinstallation

Please Login to Remove!

Hello,

I have a problem with reinstalling an application on a BlackBerry device.
After I reinstall I am being asked to reboot the device, but if I choose no I can still start the application. The problem is that the old application starts and I don't want that.

I there any way to check in java if the application was reinstalled and a reboot is required (maybe a system property or something), I want to show a message that the application will not work until reboot when the user tries to start the application.

Thanks,
Adrian
Offline  
Old 07-31-2009, 07:14 AM   #2
dankarlinski
BlackBerry Master
 
dankarlinski's Avatar
 
Join Date: May 2007
Model: 1
Carrier: 1
Posts: 3,391
Default

Wirelessly posted (White and Nerdy)

The app will not work until you restart it because of the fact that the system is using the files. Its just like windows update. End of story
Offline  
Old 07-31-2009, 07:20 AM   #3
adex08
New Member
 
Join Date: Jul 2009
Model: 9000
PIN: N/A
Carrier: Cosmote
Posts: 2
Default

Thanks for the answer dankarlinski.
Offline  
Old 07-31-2009, 07:35 AM   #4
dankarlinski
BlackBerry Master
 
dankarlinski's Avatar
 
Join Date: May 2007
Model: 1
Carrier: 1
Posts: 3,391
Default

Wirelessly posted (White and Nerdy)

Hope this answered your question.

You asked about adding text about having it not work until a restart. I don't believe it is possible as that function is built into RIM's GUI
Offline  
Old 07-31-2009, 07:45 AM   #5
andreybutov
Knows Where the Search Button Is
 
andreybutov's Avatar
 
Join Date: Dec 2006
Location: New York City
Model: Many
Carrier: Multiple
Posts: 21
Default

Quote:
Originally Posted by dankarlinski View Post
Wirelessly posted (White and Nerdy)

The app will not work until you restart it because of the fact that the system is using the files. Its just like windows update. End of story

I don't think that's what Adrian was asking about.

I actually think his question was more subtle, and a good one at that.

A user has downloaded a new binary, OTA, which replaced the existing running copy of your app INLINE. Since the app is running memory resident, the OS tells the user that a restart is required in order to properly install the new version - which is correct.

The user chooses not to, for whatever reason, but at this point you don't want the OLD version of your app to keep running -- indeed, there may have been a reason for the update (perhaps a server communication component has changed, and the client needs to match), and you need the restart so that the new version runs.

Adrian's question is a good one -- how do you, in the above circumstance, programatically determine if the device is in a "Reboot Pending/Required" state, even if the reboot doesn't happen for hours or days, his "old version" of the app needs to know that a new version is pending full installation.

Unfortunately, I'm not sure how to address this. I'll take a look into this right now, because the the question is solid, and a resolution would be quite useful for posterity.
__________________
Antair BlackBerry Software
A spam filter for a cleaner inbox, a call screener to block calls, and more great BlackBerry tools.
www.antair.com
Offline  
Old 07-31-2009, 07:58 AM   #6
dankarlinski
BlackBerry Master
 
dankarlinski's Avatar
 
Join Date: May 2007
Model: 1
Carrier: 1
Posts: 3,391
Default

Wirelessly posted (White and Nerdy)

I see. I must have understood it incorrectly.

Well, I know that if you use quick pull for example, and you deny the reboot now command, there is an entry in options>advanced>apps on the bottom. That tells you a restart is required.

As for the practical use of it, I would just restart it and do that. If it asks for a restart, it usually needs it to work
Offline  
Old 08-04-2009, 07:37 PM   #7
DriveSafe.ly
New Member
 
Join Date: Aug 2009
Model: Storm
PIN: N/A
Carrier: AT&T
Posts: 12
Default

I had the same issues even if we killed all running processes that dealt with system interactions aka sms listeners. We still need to reboot the phone.
__________________
iSpeech.org
DriveSafe.ly
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Motorola 68060 68EC060 MC68EC060RC75 CPU / Processor AMIGA unused, new USA stock picture

Motorola 68060 68EC060 MC68EC060RC75 CPU / Processor AMIGA unused, new USA stock

$69.99



New Greaseweazle V4.1 USB Floppy Adapter Flux Reader Writer Amiga PC Case 1598 picture

New Greaseweazle V4.1 USB Floppy Adapter Flux Reader Writer Amiga PC Case 1598

$36.20



New Greaseweazle V4.1 USB Floppy Adapter Flux Reader Writer Amiga Atari ST 1591 picture

New Greaseweazle V4.1 USB Floppy Adapter Flux Reader Writer Amiga Atari ST 1591

$28.73



New Amiga Gotek OLED IIC I2C 0.91

New Amiga Gotek OLED IIC I2C 0.91" 128x32 LCD Display Module 3.3V 5V White 679

$6.57



Camera for Laser Engraving Machine picture

Camera for Laser Engraving Machine

$186.67



Camera Precise Positioning Support Video Record for Acmer Laser Engraving picture

Camera Precise Positioning Support Video Record for Acmer Laser Engraving

$150.78







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.