Exit the application and open another

Hello guys

In my application, I read the SIM card. If the app does not have permission to read the SIM card, it displays a dialog that informs the user that should be given permissions. The dialogue has 2 options: 'Go to Settings' and 'exit '.

This is my code

void TestApp::processSIMPermissionAlert(bb::system::SystemUiResult::Type value) {

    if (value == SystemUiResult::ConfirmButtonSelection) {
        //go to security settings
        char* dummy = 0;
        int success = navigator_invoke("settings://security", &dummy);
        if (success == BPS_FAILURE) qDebug() << "INVOKE FAIL: " << dummy;
    }
    Application::exit(0);
}

The problem is that when the user clicks on 'Go to Settings', the application exits and at the same time the settings app opens, but it is all black and messy. You must reduce it to make it work again.

Is there another way to open another application being closed?

Thank you

Pepe

Don't know what that means "all black and messy", but if you say that the settings application does not display itself properly, then this is probably a bug and you must file a ticket within Jira to report.

Then ignore, since there is no reason (yet) to spend a lot of time trying to circumvent critical bugs that would have fixed by launch (if reported).

There is also a chance that the call of navigator_invoke() will be replaceable with something more specific in the context of the call, but we are still waiting on them to document the way in which we can use to interact with system applications. For example, it would be a good idea if we could have our apps to open the right settings for permissions for our own applications, rather than requiring the user to find them in the list.

Tags: BlackBerry Developers

Similar Questions

  • How to exit the application and jump to the top any screen battery by single click?

    Hello

    for example,.

    My application contains some screen battery and train to do a task,

    the user now wants to exit the application and go to the blackberry icon page.

    How can I do that.

    Thank you best regards &,.

    Narendra Shekhawat.

    Hello

    System.Exit (0);

    or UiApplication.getUiApplication.requestBackground ();

    Kind regards

    Jochen

  • How to return to the previous screen on Pre apps? THETE´s no back button... just close the application and start over?

    for example with text messages once im in a conversation can how to return to the screen with all my converdations? It's the same with any of the apps, West no way to go back? should I always close the app and start again to go to the previous screen?

    You must not yet be aware of the gesture «back» It goes like this, the straight shot, left on the gesture area (the area below the screen, left and right of the Center button). You enter only at half way, and you can start on the right edge, or just left of the Center button.

    Become very familiar with this gesture he used all the time.

    There is also an option that you can activate by allowing a complete sweep in any direction will take you to the adjacent open card. I think that this gesture is set to off by default.

    Good luck.

    PS - In the application of Navigation of Sprint, I can't seem to leave the navigation once it starts. In other words, you must close the application and open again to define a new topic. I know two ways to issue the command to stop the navigation, but none of them work effectively.

    Message edited by Mrolesen on 21/06/2009 20:17
  • Cannot open the application "iTunes" because another user is open.

    I recently bought a new computer with vista. Installed iTunes on this computer and found that there is a problem between the two profiles on the computer. I run iTunes on my profile - but whenever my wife profile is active we are getting consistent error messages indicating "cannot open the application"iTunes"as another user, he has opened." Ask the other user to quit the application and try again.

    I need to keep itunes open in my profile - and anyway, why are they bent them in two profiles in Vista... we never had this problem under XP.
    I asked Apple for advice, and they suggested to install itunes in the second profile... which I did and said to reinstall/repair...which is not the goal... Apple then told me to contact Microsoft support as he would have to do with the admin files...
    Any advice pls.
    Thank you

    Find the Itunes.exe in the Itunes folder in Program Files.  Right click on the .exe / Properties / compatibility, look down at the bottom of this page for the 'privilege level' and check the box that says "change settings for all users.  In the heartbeat window according to the box that says "run this program as an administrator".  This can only solve your problem if you can both run under the same user name.

    When you run a program as an administrator you should get a quick UAC (unless maybe you have turned off UAC?

    To see the file extensions, you may need to go into Control Panel / folder Options / discovers, there you can uncheck "hide known file type.

  • When I type in a search on the web for anything whether it's IE, eBay or Facebook my PC just redirects research and opens another page, how can I rectify this

    Original title: redirection

    When I type in a search on the web for anything whether it's IE, eBay or Facebook my PC just redirects research and opens another page, how can I rectify this

    Hi Mark,
    Your computer is probably infected by a virus. Try following the steps in this virus/malware removal guide: http://www.selectrealsecurity.com/malware-removal-guide
    It contains instructions which will remove most malware infections. If you have any questions, just ask me. I hope this helps you.
    Brian
  • When I open a program that takes a few seconds to load and open another program while I'm waiting, it will automatically put the first window on top

    When I open a program that takes a few seconds to load and open another program while I'm waiting, it will automatically put the first window on top when it has finished loading.  How do I not do?

    Hello

    Unfortunately, it is not possible to change that outside of the modification of the order in which the programs open.

    If you have feedback or suggestions, you can express their opinion on this at:

    http://connect.Microsoft.com

    It will be useful.

  • In fact, I have problem in adding music to be played across all folios, the problem happened when I simply lock the ipad and open it, the publication is always open and I can browse, but the music stops and cann't continue. How can I solve this t

    In fact, I have problem in adding music to be played across all folios, the problem happened when I simply lock the ipad and open it, the publication is always open and I can browse, but the music stops and cann't continue. How can I solve this problem to continue after the opening of the ipad and continue to navigate the digital publication.

    The background sound plays only if the application is open. Once the device is locked or the user switches to another application the audio will stop.

  • Skype rings only when the application is open

    I have a Skype number for my phone a few days ago and I just noticed a problem. When people try to call me using my Skype number, it sounds only when the application is open and the phone is unlocked. However, people can still call me normally on my Skype ID, it is locked or not currently open to the app. It's a rule I missed when having a Skype number?

    I reset my phone to factory settings and it works now.

  • Skype number rings only when the application is open

    I have a Skype number for my phone a few days ago and I just noticed a problem. When people try to call me using my Skype number, it sounds only when the application is open and the phone is unlocked. However, people can still call me normally on my Skype ID, it is locked or not currently open to the app. It's a rule I missed when with a Skype number?

    (Previously posted this in the Android subforum)

    I reset my phone to factory settings and it works now.

  • A screen of closing and opening another through a wire

    I'm showing a screen with my logo at the beginning of the application and to close and the new screen opena after 10000 milliseconds, but I don't know how make the wire placed an order for closure for the logo screen to close the logo screen and open the menu screen.

    appreciate your help.

    Alaa

    the logo screen

    --------------------------

    public final class extends Logo screen
    {
    public Logo()
    {
    final TireMap Bitmap = Bitmap.getBitmapResource ("Thanks");
    final BitmapField TireMapImageField = new BitmapField (TireMap);
    VerticalFieldManager VFM_TireMap = new VerticalFieldManager();
           
    int remaining is Display.getWidth () - TireMap.getWidth ();.
    VFM_TireMap.setMargin(10,remaining/2,10,remaining/2);
    VFM_TireMap.Add (TireMapImageField);
    Add (VFM_TireMap);
    Add (new NullField());
    SleepingTimer TW = new SleepingTimer();
    New Thread (TW) m:System.NET.HttpListener.start ();

    Thread class

    ---------------------

    public void run()
    {
    Try
    {
    Thread.Sleep (10000);
    }
    catch (InterruptedException e)
    {
    e.printStackTrace ();
    }
    }

    It works:

    final Screen logoScreen=new LogoScreen();
    final Screen mainAppScreen=new MainAppScreen();
    
     new Thread(new Runnable() {
                public void run() {
                    UiApplication.getUiApplication().invokeAndWait(new Runnable() {
                        public void run() {
                            UiApplication.getUiApplication().pushScreen(logoScreen);
                        }
                    });
    
                    try {
                        Thread.sleep(10000);
                    } catch (InterruptedException e) {}
    
                    UiApplication.getUiApplication().invokeAndWait(new Runnable() {
                        public void run() {
                            UiApplication.getUiApplication().popScreen(logoScreen);
                            UiApplication.getUiApplication().pushScreen(mainAppScreen);
                        }
                    });
    
                }
            }).start();
    
  • In the 30 days trial Lightroom, the application is opening her self, how can I stop this?

    In the 30 days trial Lightroom, the application is opening what it self and showing the import screen image. The app and the cathalog that is installed on the C: drive, but the photo files are on the disk D:. How can PLS, I stop this?

    Hi sstamant,

    Could you please let me know when the Lightroom Application opens by itself?

    You connect any external drive?

    Kind regards

    Tanuj

  • Hi, I am Ganesh, I tried to installed the application using creative cloud. But seems it's taking too long to install the application and it is hit. After the installation of 42%. Still, I tried to restart my computer and re-install the application. But i

    Hi, I am Ganesh, I tried to installed the application using creative cloud. But seems it's taking too long to install the application and it is hit. After the installation of 42%. Still, I tried to restart my computer and re-install the application. But it is keep taking so long time and struck at the end of the installation of 42%.

    If the installation process is stalled at 42 percent with no possibility of error, there is a problem with the zipped file to Extraction of downloaded in the Temp folder.

    As a fundamental step. Leave the creative Cloud desktop application.

    Delete the contents of the Temp folder:

    Optional: it will be ideal to install software like Winrar, WinZip or 7-zip,., etc.

    Please press Windows + R and you will get a command window run, get hit and type %temp%.

    Delete all the content inside the temp folder.



    Then try again to install application InDesign CC again.

    Just in case, if you are still having the same issue.

    Creative application cloud thus released, do not close it.

    Open the Temp folder, then search for the CC InDesign installation file and copy it to the desktop computer.

    Then leave Creative Cloud application and try to install.

  • Cannot install point. Restart the application and re-download your purchase.

    We have an application published with two folios in there. Several users have complained that when they try to update the app, they get this error: "cannot install point. Please restart the application and download your new purchase. "I have NOT been able to reproduce this error on 4 different iPads. However, I have 3 users who receive this error whenever they try to update the folio.

    They tried to remove the app and reinstall. The same problem.

    They tried several different WiFi FORT connections, same problem.

    A user came to my office. We have updated the app on my iPad. Worked well. Tried it on his iPad. Got the error. Same WiFi connection within minutes following one another.

    What is going on?!!!

    Adobe has released a series of patches for viewers to iOS to handle this problem, you have described. V31 V32 these patches and are in need of an update. Knowing that your application is v29, v32 app you just submit you should be fine.

  • Can I work in Adobe Cloud while traveling without my computer in the studio and using another computer?

    Can I work in Adobe Cloud while traveling without my computer in the studio and using another computer?  Can I work on just in the cloud to Adobe?

    Hi Legauche,

    You can install and activate creative cloud on two computers desktop applications, regardless of the operating system, for the individual associated with the composition of the creative cloud. See the page of the product license agreements for more information. Install the CC apps on the second machine and applications.

    Kind regards

    Romit SInha

  • I select save files, but when I close the browser and open it again, he was always ask me where to save files.

    I select save files, but when I close the browser and open it again, he was always ask me where to save files. Whenever I closed and re-opened my browser it goes back to ask me where to save files.
    Help, please

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance).

    • Do NOT click on the reset button on the startup window Mode without failure.

    If you do not keep the changes after a reboot or have problems with preferences, see:

    If you like Advanced SystemCare software that could restore some files from older versions to protect files against the changes and then check their settings or uninstall this software.

Maybe you are looking for

  • Why my thumb nails do not show photos

    When I search Pictures results listed as thumbnails do not show a sample of the image. I have to use another program to see what they are. Can anyone help?

  • 2004-address addresses Outlook Express

    I don't know if this is possible, but I wanted to add a list of emails from customers that I recorded on a CSV to Excel in the address book. I can easily import the file and the address, but I was looking for have added them only in a folder or a gro

  • Printing multiple photos

    Can I print 2 different pictures on one page at the same time? I am in Microsoft Office Picture manager and when will print the window "How do you print your photos" appears, the same as in the photo gallery and there you have the option to print 2 4

  • The Xbox 360 wireless receiver only works on a PC W8 with USB 3.0 ports?

    So my question is: is the X Receiver 360 works on a USB 3.0 port or not, because I think to buy one, but I don't know if it will work or not.

  • Is there a new code for PANTONE 2171C?

    Is there a new code for PANTONE 2171C?I can't find it!