uninstall without restarting the device, OS4.2

is this possible?

read:

http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800620/What_Is...

in this context, have written a simple test application which hangs herself in various processes of the BB system as follows:

Session.getDefaultInstance () .addFolderListener (oMyFolderListener);

BlackBerryPIMList oTaskList = (BlackBerryPIMList) PIM.getInstance () .openPIMList (PIM. TODO_LIST, PIM. READ_WRITE);

oTaskList.addListener (oMyPIMTaskListener)

Application.getApplication () .addGlobalEventListener (oMyGlobalEventListener);

Then, in response to a request from the user interface of unloading, my test application does the following:

Session.getDefaultInstance () .getStore () .removeFolderListener (oMyFolderListener);

BlackBerryPIMList oTaskList = (BlackBerryPIMList) PIM.getInstance () .openPIMList (PIM. TODO_LIST, PIM. READ_WRITE);

oTaskList.removeListener (oMyPIMTaskListener);

Application.getApplication () .removeGlobalEventListener (oMyGlobalEventListener);

Then I can happliy proceed to the Options-> Advanced Options-> Applications, choose my application and delete it * without * a fearsome re - start. Everything is good so far!

However,.

If I want to set up the following system BB hooks:

ApplicationMenuItemRepository.getInstance () .addMenuItem (ApplicationMenuItemRepository.MENUITEM_MESSAGE_LIST, oMyMenuItem);

Session.addViewListener (oMyEmailOpenCloseListener);

And the answer to my UI test app unload application, follow these steps:

ApplicationMenuItemRepository.getInstance () .removeMenuItem (ApplicationMenuItemRepository.MENUITEM_MESSAGE_LIST, oMyMenuItem);

Session.removeViewListener (oEmailOpenCloseListener);

Guess what? -When I go to delete the test application, I now need to restart? -Why?

The foregoing certainly * have * been dropped out of the BB system somehow. They no longer appear in the menu display of BB app list Messages or receive events opening/closing, but somehow, it would seem that a reference to my objects is still being detained. How can I delete it? Is this a bug?

-Have you tried invoking the garbage collector system.GC() but no luck.

Brilliant ideas people or will he fall once more to the poor Mark Sohm have to say, it cannot be done...

resolved/hacked - kill the BB application.

-If for example wrt says:

Session.addViewListener (oMyEmailOpenCloseListener);

In my oMyEmailOpenCloseListener object, I defined my own unload event handler detaches from the BB App messages that first and then he kills, like this:

Session.removeViewListener (this);

.

.

System.Exit (0);

-bingo, no more no required reference, lol

Tags: BlackBerry Developers

Similar Questions

  • Device appears to be offline. Restarting the device can solve the problem.

    With Flash Builder 4.7 and Flex SDK 4.6 with AIR SDK 3.6 after my Google Nexus 10 updated to Android 4.2.2 I now get this error when you attempt to start the unit to Flash Builder:

    Device appears to be offline. Restarting the device can solve the problem.

    He showed not installed Adobe AIR so I uninstalled the device and which does not solve anything. I've tried everything. Restart the device. Restart Flash Builder. Restart Windows. Nothing helps.

    Someone knows how to fix this?

    Same boat,

    of \android-sdk\platform-tools

    Copy the files of theses: adb.exe, AdbWinApi.dll, AdbWinUsbApi.dll, aapt.exe and dx.jar (under lib rep)

    and paste into \lib\android\bin

    To check, type cmd

    $ adb.exe version, you should have instead of 1.0.26 1.0.31

    This is!

  • How do you know hyperthreading enabled or disabled on the Windows 2003 EE server without restarting the server to the BIOS setting

    a small question:

    I have a server with AMD64 (8 CPUs), ~2.3GHz, I want to know if Hyperthrreading is enabled or not, how can I check the setting without restarting the server?
    I am about if HT enabled will allow the server to get better performance?

    Thank you
    -Mulu

    Hello

    The question you posted would be better suited in the TechNet support forum. I suggest you to post the question on the following link.

    http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer

  • Launch application on the debugger device restarts the device

    I'm trying to debug an application on the device. I had some initial success, but lately that the machine restarts when the debugger tries to run the application. The application is installed, and I can run from the device after restarting the device, but so far I can't get it to work under the debugger.


    Configuration

    Feature: 9700

    OS: v5.0.0.602

    Eclipse: Galileo (3.5.2)

    BlackBerry Java plug-in: 1.1.2.201004161203 - 16

    BlackBerry SDK: 5.0.0.25

    -rich

    I think that I found a solution to this problem. I tried the suggestion to remove the application Options. Applications on the device. It turns out that it has not completely removed the application. Some library modules remained behind. I was able to remove these Desktop Manager. It is a bit heavy treatment, but it's me unblocked for debugging on the device.

    I hope that RIM will provide us with a better debugging experience in the future. It would be nice if the reset of the device were not necessary, but I guess that's in some scenarios. For the latter, the debugger must tolerate the delay in the connection because of reset. It would also be nice to be able to attach the debugger to a running application. IIRC, it was available in the old JDE SDK.

  • ADE 3.0 crashes on Windows 7.  Transfer screen continues to operate. Cannot close ADE without restarting the computer.

    ADE 3.0 under Windows 7.  If I transfer a book at my e-reader, the screen freezes in the 'transfer' and seems to keep loading even if the book is already present in the drive.  Cannot close ADE without restarting the computer.

    Right click to the digital edition and run as admin.

  • get utc time in oracle without restarting the session

    Hello world

    I need to get utc time in oracle without restarting the session. Now I get what type:

    Select double sessiontimezone;

    In the new session, I'm sessiontimezone exact value, for example, I live in Istanbul, Turkey and there + 02:00. But last Saturday, this value is passed to 03:00. If a session that was created only, when I call sessiontimezone, back + 03:00, this is true.

    But, if I call sessiontimezone, I see + 02:00 in a session that created it before last Saturday night.

    What should I do to get the value real sessiontimezone without restarting the session?

    do you want to time UTC, you can use...

    select systimestamp at time zone 'UTC' from dual
    

    This will give always the hour UTC

    Ravi Kumar

  • AirPlay does not connect without restarting the computer

    Hey guys,.

    I work in a school and all teachers have a MacBook Air 2011 or newer running 10.10.5 or newer. Many also have Apple TV connected to projectors so that they can use AirPlay to reflect their computers to projectors. So here's the problem:

    A couple of my professors can connect to their Apple TV and use without problems, but when they log off of Apple TV, the image of airtime in the bar of menus remains blue (which is normal when AirPlay is enabled). The problem is teachers are unable to reconnect to the Apple TV because the computer thinks it is still connected. Restart the computer to log in again!

    The computer will display the Apple TV as a device which we can connect to, but it never connects once it has been disconnected. It is a problem because teachers often connect to view a video and then disconnect so that they can work on their computers. If they try to reconnect, they need to restart their MacBook Air.

    ATV is up-to-date. Has been restarted and connected to another network and always has the same question. Not sure if this is ATV related or associated with MacBook Air. The two devices are connected to the same network that has no restrictions.

    I think I've cracked it because I had the same problem and since there are 2 minutes I solved it.

    Open activity monitor

    Click on the tab network and research AirPlayXPCHelper.

    This quick process and fact.

    Not sure if you have to do each time it stops working, but it is much faster that restarting your computer.

  • BlackBerry Q10 Q10 - the battery life low, overheating, restarting the device.

    Hello

    My camera has been upgraded to 10.3 towards the end of February, I think.  Battery life was low at first, but eventually improved to an acceptable level.  (Acceptable = able to make it through the day without charge.)

    In recent days, the battery life was horrible.  At 01:00 this morning, it was fully charged and from 05:00, it's about 40%, without any use at all.  All idling with the screen off.

    I read some suggestions in the forums.  I deleted all my email accounts, restarted the unit, then added them.  I also confirmed that there are no other applications running that might be draining the battery.

    I bought the unit directly from BlackBerry back to November, so I have no support available carrier.

    So sometimes after typing a message, I hung up and he begins to restart.  I'm quite sure physical were issued with the phone - it is never dropped or roughed up somehow.

    When I look at my use of the battery, I see the remaining 38%.  System of 26%, and PIM services is 8.6%.

    Someone more detailed suggestions on how to fix this?

    Bryan.

    Hello and welcome to the BlackBerry support fourms!

    Try to veiw of the last 12 hours of the CPU usage. The heat is probably high CPU load.

    I also recommend that you recharge the device through BlackBerry link software. Good luck and keep me posted.

  • Restart the device issue?

    Hello
    I would like to ask how can I restart BB device throuch java code. I read this article http://www.wikihow.com/Reboot-Your-Blackberry-Without-Taking-Your-Battery-out. I also tried to use the injectores event:

    EventInjector.invokeEvent(new KeyCodeEvent(KeyCodeEvent.KEY_DOWN, (char)Keypad.KEY_ALT,0,0));         EventInjector.invokeEvent(new KeyCodeEvent(KeyCodeEvent.KEY_UP, (char)Keypad.KEY_ALT,0,0));                   EventInjector.KeyCodeEvent pressCapsKey = new EventInjector.KeyCodeEvent(                 KeyCodeEvent.KEY_DOWN, (char)Keypad.KEY_END,KeypadListener.STATUS_CAPS_LOCK, 0);          EventInjector.KeyCodeEvent releaseCapsKey = new EventInjector.KeyCodeEvent(                   KeyCodeEvent.KEY_UP, (char)Keypad.KEY_END,KeypadListener.STATUS_CAPS_LOCK, 0);            EventInjector.invokeEvent(pressCapsKey);          EventInjector.invokeEvent(releaseCapsKey);
    
              EventInjector.invokeEvent(new KeyCodeEvent(KeyCodeEvent.KEY_DOWN, (char)Keypad.KEY_BACKSPACE,0,0));           EventInjector.invokeEvent(new KeyCodeEvent(KeyCodeEvent.KEY_UP, (char)Keypad.KEY_BACKSPACE,0,0));
    

    I did not.

    P.S. My request is signed and after installing it, I can use injectors. Method CodeModuleManager.promptForResetIfRequired () not suits me better. It's the reason to desire return to market through java code.

    This question is asked quite frequently, if you have a search around you can find various discussions.

    There is a 3rd party product that apparently does this, but I don't know of it or how it works.

    I looked at a thread I can find is more, who did something that I thought was clever enough.  Memory, the idea under discussion was to have an application that has been built and signed, once removed, required a reboot - call this Application.  This app was packed inside another application that provided an icon - call this application B.  When the user clicks on the icon of the Application B, B Application will use CodeModuleManager install Application A, and then it removes it, forcing a reboot.

    I don't know to what extent this discussion did, I thought that was established in the Thread code to do this, however I can't find the thread.

    Hope you have better luck.

  • The SX20 language setting cannot be saved after restarting the device.

    Hello world

    Anyone encountered below the question before?

    I have a SX 20 with the TC7.1.4 software, when I change the default language to another, it will work, but after restarting, the automatic restore of the default language. I have tried the factory reset, but this isn't a job.

    Can someone help me? Thanks in advance!

    Billy

    How did did you deploy the device (CUCM, VCS, TMS,...)?

    Have you tried to reboot the device without the network that is attached to it?

    I wonder if CUCM or TMS reset your language, have you checked the parameters / models here?

    What languages do you speak? Have you tried to update to TC7.3?

  • Can I change my Game Center account without changing the devices all Apple ID?

    I have a game I started playing my old Game Center, but I want to continue to play it without having to change my Apple ID in the genres. What I'm basically asking is:

    Can I change my Apple ID only on my Game Center and not in the device?

    Settings < Game Center

    Enter the Apple ID

    Disconnect

    Then connect you with the right pair

  • There is no volume after restarting the device. Need urgent help

    Hello.

    Our ReadyNAS RN31600 iSCSI target device. We have (had) two LUNS of 8 terabytes each built on X - RAID 5, which are presented on a Windows Server.

    This device is less than a year, and he began to have problems today. First two LUNS disappeared from the iSCSI (WS 2008 R2) client. When we tried to restart the NAS server, he's hanging on "restart now, see you soon."

    We power off of the switch and after restarting, two LUNS seem to have disappeared, and the unit is empty somehow? How to solve this problem? Or is it quite normal on the Netgear devices to suddenly lose 16 terabytes of data?

    The GUI shows "there is no volume" and also "delete inactive volumes using disk. Disc # 1,2,3,4,5,6 ". This means that all the disks.

    Firmware is 6.4.0.

    And no, we don't have backups, because this device is used to a backup unit.

    I suggest you to contact support (support.netgear.com), because I think it will be faster than from here.

  • BlackBerry Z10 Date and time restarts everytime I restart the device

    Hi guys! Im a new user of blacberry and my new Z10 is my 1st blackberry phone ever, it is a great phone and the device, but actually im affected by some technjcal issues or is these issues are considered normal the BB function? Sorry guys because im an android user before and its my first time to experience those issues on my z10 bb:

    #1 date and time always resets everytime I turn on my phone from turning off or restarting simply, is this normal on bb z10?

    #2 im experiencing a low autonomy (as an Android device im and I got nothing like before), it is as I finished charging my phone around 7:45 and used it with wifi on, viber and downloading applications, then around 22:15 58% remaining just after 2 and a half hours, here it normal on the life of the battery of the z10?

    #3 I have a little find the setting to change the default message and call ring tone, wherin I checked on youtube how on the video is on the framework of the notification of the settings, but when I checked it on my bb it shows not on exactly where I see on the video. IM on bb 10.2 is the latest version? Hoping for you guys to help me out, thank you in advance!

    Setting, Date & time - set your time zone, Auto update time zone - on

    Battery life improves after a week or two, but will probably exceed never 12 hours with BT and WiFi continuously on, I load all night.

    Each Contact can have a distinctive ring, Notifications, Contacts > customize to Contact (bottom)

    Global ringtone, Notifications, requests > phone > Tone - select the tone or browse music.

  • OnLoad does not start after you restart the device

    Hello

    is it possible that "onload" in the body section is executed when the application is actually open?

    What I've noticed is when the device is restarted and the app is started after the boot process, then I need to open the application until something works. Is this as expected?

    Is it possible to run that a hat of javascript function will be executed after the application is started after a reboot?

    Thank you.

    I think you need to add

        
    

    in your config.xml file where the file name is the file that you want are running in the background.

    More details at:

    https://bdsc.webapps.BlackBerry.com/HTML5/documentation/ww_developing/rim_background_element_1265316...

    Rory

  • Restarting the device on the garbage collection

    Hello

    I created an application that performs the following operations:

    1. Read an email address of a BasicEditField that an end user will be input.
    2. Convert this string to an object of net.rim.blackberry.api.mail.Address
    3. Persist the object address by doing a commit sync
    4. Read the persistent object even to intervals and use it to send email.

    I am able to record the e-mail to the PersistentStore address.  When I get out my app running (for sending electronic mail timed) so the device restarts.  After a reboot, the device remains stable and emails come out because they are supposed to.

    I am now able to reproduce this exact behavior if I first enter the e-mail address, it persists and call a GC (garbage collection).  As soon as I do this, the device restarts.  As a tip, I also did a forceCommit() rather than a commit() and there is no difference.

    I tested the following physical devices:

    Bold 9700 - v5.0.0.862 (1446 Bundle, platform 5.1.0.175)

    Torch 9800 - v6.0.0.246 (695 Bundle, platform 6.4.0.150)

    The same behavior is exhibited in both devices.

    I don't think any of you have already encountered this?  I was not able to understand why this is happening and it has been driving me crazy.  If you've seen behavior like this and have either thought about it or not, please answer.  Thank you!

    Imagine that... Address is not persistent.  Could have fooled me because once or twice, the program worked by reading the object address of is.  The behavior seems to be inconsistent.  I have changed my address object in a string and now everything works fine.

Maybe you are looking for

  • No Audio - HP Envy Phoenix 810-145QE

    Not audio on the back or the upper connector, using the "Troubleshooting" of the message, it is that no device is connected. My headphone and line connection of the speakers work fine on my old HP computer. HDMI audio output does not work, but I real

  • How to "/ users/Bob/library/application support/steam.

    Please could you describe exactly how to get to this please. IM new with the Mac. Thank you

  • insydeH20 Setup utility

    Dear Sir. I have laptop Acer V5-473PG for over a year now and using W8.1. My problem is now (for a month), whenever I start my laptop, the screen goes to "insydeH20 Setup utility". Then I have to press ESC, press enter for 'Yes' and the screen will c

  • data off exacution

    my computer guard the deactivation of the execution of my data off how can I prevent this from happening

  • Reading files FLAC on my Clip

    Hello I have a 4 G Sansa Clip allows you to read files FLAC. However, when I now try to download files FLAC on the player, I get an error message indicating that the file type is not supported. How can I get my video to play files FLAC? Thank you.