How to remove the app from the blackberry with programming

Hello

I have a blackberry application that works properly when I installled that application I get not all delete option in option > advanced > application.

Please help me to provide the solution for the removal of the application of the option > advanced options > application.

I want this because I want to uplaod the application to the blackberry app world.

Concerning

Antoine Singh

Hello

Please follow the update here class

import net.rim.device.api.system.ApplicationDescriptor;
import net.rim.device.api.system.CodeModuleManager;
import net.rim.device.api.ui.MenuItem;
import net.rim.device.api.ui.UiApplication;
import net.rim.device.api.ui.component.Dialog;

public class UserInterface extends UiApplication{

    UserInterface()
    {
        Test1 t=new Test1();
        pushScreen(t);
    }
    public static void main(String args[])
    {
        UserInterface app=new UserInterface();
        app.enterEventDispatcher();
    }
    private MenuItem _deleteeMenu = new MenuItem("Delete Tool", 110, 10) {
        // Delete us
        public void run() {
            int actionCode = Dialog.ask("Confirm Deletion",
                    new String [] { "Continue", "Cancel" },
                    new int [] { 0, 1 }, 0);
            if ( actionCode == 0 ) {
                ApplicationDescriptor ad = ApplicationDescriptor.currentApplicationDescriptor();
                int moduleHandle = ad.getModuleHandle();
                int rc = CodeModuleManager.deleteModuleEx(moduleHandle, true);
                String tellUserMessage = "";
                if ( rc == CodeModuleManager.CMM_OK_MODULE_MARKED_FOR_DELETION )
                { CodeModuleManager.promptForResetIfRequired();
                tellUserMessage = "Please restart the device to remove the application"; } else
                    //              if ( rc == CodeModuleManager.CMM_OK_MODULE_MARKED_FOR_DELETION ) {
                    //                  tellUserMessage = "Please restart the device to remove the application";
                    //              } else
                    if ( rc == CodeModuleManager.CMM_OK ) {
                        tellUserMessage = "Deleted";
                    } else {
                        String errorString = Integer.toString(rc);
                        switch (rc) {
                        case CodeModuleManager.CMM_OK_MODULE_MARKED_FOR_DELETION:
                            tellUserMessage = "Will be deleted on restart";
                            break;
                        case CodeModuleManager.CMM_MODULE_IN_USE:
                        case CodeModuleManager.CMM_MODULE_IN_USE_BY_PERSISTENT_STORE:
                            tellUserMessage = "Module In Use";
                            break;
                        case CodeModuleManager.CMM_HANDLE_INVALID:
                            tellUserMessage = "Invalid Handle";
                            break;
                        case CodeModuleManager.CMM_MODULE_REQUIRED:
                            tellUserMessage = "Module Required";
                            break;
                        default:
                            tellUserMessage = Integer.toString(rc);
                            break;
                        }
                        tellUserMessage = "Error Deleting Module: " + tellUserMessage;
                    }
                Dialog.alert(tellUserMessage);
            }
        }
    };
}

If you want to get the option delete in options > advanced options > application.use the code above.

Concerning

Antoine SIngh

Tags: BlackBerry Developers

Similar Questions

  • There, nobody how to remove the windows update program?

    If anyone knows how to remove the update on a laptop program can they please leave me a message telling me how to. It is causing major issues on my sister's laptop, but microsoft are not willing to help solve the problems caused by the update program! I recommend to everybody out there to change your settings to update to you forever, you are better off not having them f * to the top of your laptop!

    I need to know how to remove a laptop with windows 7 and a laptop with windows xp. Thanks!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    You don't delete it. You set to operate in the way that you choose. Find in files of aid, or Google.

  • How to remove an application from a device with the Profile Manager?

    I use iOS devices 9.1 in collaboration with Apple Configurator 2.1 and 5.0.15 Profile Manager. Configurator locks iPads and the Profile Manager is used for the distribution of applications. We are assigning apps in device that is a great feature. However, when I delete an application from a device with the Profile Manager, the application does not remove himself. The Profile Manager back the license and I can redistribute app for iPad one another even if the application is still installed and usable on the iPad first.

    Is this a bug? It seems that it should remove the app. If I delete the management profile in distance from the unit, it removes apps.

    Click on the gear box and then delete Apps and select the application you want to remove.

    Initially, I did what you did probably has been to select the name of the application, then press the 'less', who pulled out of the app in the list, but it has not removed the iPad, he just removed their license.  Through the gearbox and to remove it it removes of the iPad.

    You may have already thought of it, but I found this post unanswered after two months, and once I found the answer, I thought I'd put it here.

  • How to remove a background from an image with a body similar to the background color

    Hello world!

    New here so I hope I ask this in the right place

    I used to use photoshop many years ago and get back inside. One thing with which I have a particular problem delimbing Fund images that are quite bright whites / have little white in them - normally I would use techniques basic as the background eraser or the magic wand, but due to the edges by a quite brilliant and mix a little in the back on the ground, I find it very difficult to cut the image.

    I work with an example image is this yo-yo > http://yoyovillage.co.uk/img/c/iYoYo%20Steel_1200px_01.jpg

    Basically, I want to remove the white background and also the reflection / shadow below while I'm just left with the body of yo-yo in the image (like this > http://www.yoyovillage.co.uk/264-home_default/level-6.jpg)

    One option, I was advised might work using a layer mask shape and essentially make a copy of the image in photoshop layer and then use the settings of brightness/contrast to ensure that the yo-yo is a little more easily selectable, but this does not work either (and I'm a bit of a n00b when it comes to layer masks).

    I was hoping someone here might be able to help - it may be that it's just not possible, but if anyone can say anything I would really appreciate it.

    Thank you very much

    Luke

    Took about 3 minutes:

  • How to remove the folder with name

    Hi all

    I had created a folder with a name, using ALT + 0160, but now iam not able to delete or rename it.pls tell me how to remove it.

    You get an error message when you try to delete it?

    Boot into safe mode and see if it will remove. If this is not the case, try this tool.

    Unlocker File Remover

    Download it from FileHippo
    http://filehippo.com/download_unlocker/

    Download from CNET
    http://download.CNET.com/WOT/3000-2378_4-75011499.html

  • Satellite 5205-S505 - how to remove the battery with the damaged battery latch?

    I try to set aside my laptop (satellite 5205-s505) today. But I found that the release latch was damaged somehow. What can I do?

    My seriously damaged lcd. I have method to close the LCD to save energy (just use external moniter)?

    This battery is a very good question. I think you're the first person who asked it.
    If you cannot remove the only way is, I think, to disassemble the entire laptop and somehow free battery.

    When you use the external monitor, you have to use the FN + F5 key combination and switch to an external monitor only. Portable computer's LCD will be OFF.
    You can also check the Advanced display settings. Usually, you can also find settings to define where should be the office.
    Check it out!

  • How to remove the xml with indesign file attributes.

    Dear friends,

    I need to remove attributes xml ('ul' element), I try to underside of coding and joint screenshot also, but I made a mistake. I'm not that I lack the coding below.

    Screen Shot 2016-02-22 at 12.57.49 PM.png

    My coding in the below.

    var elements = app.activeDocument.xmlElements[0].xmlAttributes.item["@new_class"] = "list-style-type:none";
        alert(elements.length);
        delete elements["@new_class"];
    

    Please suggest friends,

    Thank you in advance,

    Hello

    Try this...

    var doc = app.activeDocument;
    
    removeAttributes(doc,'ul','style','list-style-type:none');
    
    function removeAttributes(source,element,attributename,attributevalue){
        for (var i = 0; i < source.xmlElements.length; i++){
                try{
                    for(j=0; j		   
  • Graphic Flex: how to remove the shadow with CSS?

    Hello!

    How can I remove shadow my columns with CSS?

    I know that I could do:

    <mx:seriesFilters>
      <mx:Array />
    </mx:seriesFilters>
    

    But I'd really only my CSS to control all of the visuals.

    Thank you!

    -Dwayne

    Don't think that you can. Since it is an array, you need to fix in the code. Sorry, Flex is like that, it makes you do a lot of things in the code that should be doable in CSS. But on the side of good news, instead of what you have done you can put this argument in your table tag: seriesFilters = "[]".

  • How to remove the image with a single click?

    Hello friends, I want a help with something simple.

    I want to open my app when displaying an image with data or information and clicking on, get out and show me the menu of the application as usual.

    My picture is this:

    seen in my application, but I can't make it go away

    Solution:

         ImageButton {
                    id: imageView02
    
                    defaultImageSource: "asset:///images/IMG_00000014.png"
                    onClicked: {
                        imageView02.visible = false
                    }
                }
    
  • How to remove a city from the weather app in IOS 9.2.1?

    I have an IPhone6S that I bought recently and am running IOS 9.2.1. I can't understand how to remove a city from the weather app. I tried to go to settings, where there is a list of all the applications on my phone except the weather app, so no help there. Any body can help me with this?

    You must tap on the small set of lines in the lower right to get list view. Then you can find the city that you want to delete, drag to the left to see the button Delete.

    See you soon,.

    GB

  • How can I remove an app from the iPad?

    I want to remove an app from the IPad that I use this site is no longer. How to remove an application?

    Thank you

    Nora

    Press and hold on the application until all applications start jiggling. Then press the x in the upper corner of the (s) you want to delete. Press the Home button to stop the jiggling. Notice that a lot of these pre-installed applications (clock, Messages, etc.) will not have an x when jiggling and they cannot be deleted.

  • How to remove the version of app on appworld supplier portal and do not delete the whole product?

    Hello
    How to remove the version of app on appworld supplier portal and do not delete the whole product?
    I added some changes in my verion 3,0,0 App and send it to stable appworld and it pass the process but now
    I want to go back to the previous version (2,4,8), but not remove any product from the store.

    I can't remove the store version, but only to remove any product.

    You cannot delete a version, but you can ask RIM to do it for you
    https://www.BlackBerry.com/profile/?EventID=8109

    If your application is a smartphone application there is a workaround 'disable' release, simply edit the supported devices and leave only one device (e.g. 8800), in this way, no users will be able to download this version.

  • How to remove the color profile from an image

    The question is how to remove the color profile from an image

    Color fail not in this Document: option to load Photoshop to remove an existing integrated profile but when I save the file, close and open it I always see a color profile in the embedded image.

    Not tried:

    When I clicked on "don't color manage this Document" and click OK and save the document without closing, I see that Photoshop says there is no profile in the image, but once I got close, and then reopen the file it keeps the color profile. How is that possible?

    Use the ColorSync scripting Remove.app found here /Library/Scripts/Remove.app

    Just drag your image to the Remove.app script.

  • How to remove a Word from the default dictionary of firefox?

    How to remove a Word from the default dictionary of firefox?
    If I wanted to remove the word 'dog' or 'and' for example

    There may be a range of reasons for wanting to do this, including the deletion of the words you use rarely as similar to other common spellings used words for example. "minute" and "Minuet", delete the words that you find personally offensive, or removing words that, because of linguistic or cultural background, you would not consider words at all.

    Note that I'm not asking how to remove my 'dictionary' words, words that I added myself.

    Hello

    I talked to a few people and I think I'm able to help you with this.

    There are two dictionary files, the default that comes with your version of Firefox and personal 'custom' that you create yourself with phrases and words.

    If you want to change the personal;

    1. Copy Subject: support and paste into the address bar.
    2. Next to the profile folder, click the marked File Show
    3. Find the file persdict.dat. Rename a text file, open, modify, re save it as persdict.dat and replace.

    If you want to change the default dictionary, it could be more of a problem and a lot more technique to do. I would recommend that you look at the problem differently and consider filtering of pages based on inappropriate content using Add-ons such as ProCon Latte Content Filter.

    I hope this helps, but if not, please come back here and we can look at another solution for you.

  • How to remove "Skype available" from the top of the notification page?

    How to remove "Skype available" from the top of the notification page - useless promotion!

    Hello!

    Disable the Skype status under Notification settings in Skype.

    All best
    Siim

Maybe you are looking for