Problem with the file opened in the application via InvokeRequest

Hello

my application opens the file and reads its binary content. I have a small problem to open a file from a navigation or an attachment.

But first here's how my app works. I have a signal/slot-connection in my applicationUI constructor:

ApplicationUI::ApplicationUI(bb::cascades::Application *app) : QObject(app), m_invokeManager(new bb::system::InvokeManager(this)) {

  bool ok;

  // Since the variable is not used in the app, this is added to avoid a
  // compiler warning.
  Q_UNUSED(ok);

  ok = QObject::connect(m_invokeManager, SIGNAL(invoked(const bb::system::InvokeRequest&)), this, SLOT(handleInvoke(const bb::system::InvokeRequest&)));

}

So if the user clicks on a file it can open in the following C++ function:

void ApplicationUI::handleInvoke(const bb::system::InvokeRequest& request) {

    QString workingDir = QDir::currentPath();

// Initiate the appropriate target based on the invoke.target-key
    if (request.target() == "com.myapp.card.previewer") {

        m_uri = request.uri().toString();

        QString FileToOpen = m_uri.replace(QString("file://"), QString(""));

        bb::cascades::Page* PageToOpen = ApplicationUI::doLoadPageDetails(FileToOpen);

        if (PageToOpen != NULL) {
            initPreviewerUI();
        } else {
            ShowToast("FEHLER! Seite kann nicht geladen werden");
        }
    }
}

The doLoadPageDetails () - function creates a page and filled with binary content of reading a file. If the file contains errors or is corrupted an exception is thrown.

And here is my problem. When I opened a file corrupted first the screen becomes darker before opening the app. The I get error messages, exactly as I want. But the screen stays dark. I can't take another navigation element. Also, I can't use the back button. The only solution is to wipe the screen and then use the active frame to close the filebrowser and reopen it.

That I can't use it with attachments to emails. When I open on and the screen is dark, I can't close the view for emails. So to see the mails again I have to restart the BB decive.

I'm not fluent in English, but I hope you understand my problem. Is it possible to cancel the invokeRequest when the file is corrupted? Or what can I do here?

Well, the solution was to use a Toast message but the dialog box. Because that prevents the application and I can't and shows just the message, with the button on this dialog box, I cannot tell the app to close.

Tags: BlackBerry Developers

Similar Questions

  • 7 error "Paris 7.2.241.1enRegInstaller.exe of work and has been closed." A problem with the application to stop functioning properly. Windows will notify you if a solution is available.

    Original title - 7.2.241.1enRegInstaller.exe

    Hello.

    Today, JUST after I "Set Windows to update," twice, I got the disconcerting message:

    "Paris 7.2.241.1enRegInstaller.exe of working and was closed".

    A problem with the application to stop functioning properly.  Windows will notify you if a solution is available. »

    Any wisdom or experience with this?  I'm on a 64-bit HP Pavilion older (dv7-1245dx) with this OS JUST-update Windows (Vista Home Premium).

    Thank you.

    GIES W

    The solution has been found just uninstall bing bar, restart the computer, and if you want just bing toolbar to reinstall. This easy solution my system fixed.  Bing has again reminded all my points that I have amassed

  • I had problems with the application Manager Update, then I was instructed to re - install the product now I can not install I get the error

    Cs6 bought for more than a year, and recently had problems with the application manager, then I was instructed to re - install the product now I get errors after downloading to install it, so now I don't have cs6 on my computer, I can't go to adobe as I keep getting palmed to do that and the next thing , why can't I talk to someone why my program is not installed.

    It's ok now, I used the creative cloud cleanser and then tried to install again and bingo! everything fine now, thanks anyway

  • Problem with the application after the installation of the .bar file

    Hello

    I created an application. Everything works fine when I compile Momentics, but when I create a file via the 'Export release build'.bar and install this file on the device app does not work properly.

    The application creates a profiles and showing them in the list view, all the data in the json file. When I install the application of the .bar file create profile and change the settings for this profile and return to the main screen, profiles disappear. This problem will not occur when you compile a program on the phone directly from Momentics.

    Welcome on the support forums.

    you reproduce the workflow step by step with a debug version?
    do you have any record that can give you advice? If not, add a little.
    where is the location json file that you use to save the data? Perhaps a relative path is used.

  • I have a problem with the applications and programs on Windows 8.

    Hello/community, Microsoft

    This isn't exactly a "I can NOT LIVE WITHOUT CE SUPPORTS REALLY" but anyway. Since graduating from the programs Windows 8 and I use installed, I ran into a problem. Programs install fine however, sometimes, I find that I try to open the application program / and when I do it is open, but I cannot view it (when clicked) when this happens, I cannot view the content of the programmes, but it is active in the windows taskbar.

    I rebooted, used the Manager of tasks etc... but the program will remain open, but look at one is impossible.

    EDIT: THESE PROGRAMS ARE NOT TO DO WITH THE SHOP 8 MICROSOFT WIN THAT IT IS APPS SUCH AS CHROME/SPOTIFY

    The only soloution I found was to uninstall/reinstall, but I think it's a pain if my Chrome/IE9 was not accessible, I'd be well: limited

    In any case if you could look at this problem and suggest me some links/soloutions.

    Thank you for your time.

    Hello

    You could try to set the compatibility mode of the .exe file to an earlier version in which they worked.

    Right-click on the shortcut and select 'Open file location' then right click on the file and select "properties, then click the tab compatibility.

    You can also try to "Run as Administrator near the bottom of the window.

    Another option would be to click with the right button on the .exe and select troubleshoot compatibility.

  • After the upgrade to El Capitan having problems with the application Mail

    Hello:

    Recently upgraded my Mac mini to El Capitan. Before the upgrade (from Mountain Lion), I got Thunderbird mail application works perfectly access my GMail account and my Hotmail account. Now, I have no problem with Hotmail and Gmail keeps asking for the password to connect to the gmail imap server. I have TBird in my laptop Ubuntu Linux and Windows too and that you have not had any problems like that. Any help to solve this problem is appreciated. Thank you.

    Try this: https://support.google.com/accounts/troubleshooter/3178296?hl=en

  • Problems with the application mail in Windows 8

    Original title * app email windows problem 8

    my windows mail 8 app suddenly stopped receiving and sending e-mail, but they are received in the mail from bt

    Hi Neil,

    Thanks for posting your query on the Microsoft Community.

    As described in the question, I understand that you are unable to send and receive emails.

    This issue would have occurred due to corruption Mail app.

    I need some information to move forward.

    1 did you changes to the computer before the show?

    2. which email account you set up with Windows mail app?

    I suggest you follow the methods to check if it solves the problem:

    Method 1: Run the Windows 8 App troubleshooting tool.

    This utility automatically solves some issues that may prevent your running applications, including the suboptimal screen resolution and security or incorrect account settings:

    http://download.Microsoft.com/download/F/2/4/F24D0C03-4181-4E5B-A23B-5C3A6B5974E3/apps.diagcab

    Method 2: Follow the instructions in the link below:

    What to do if you have problems with a soft

    http://Windows.Microsoft.com/en-GB/Windows-8/what-troubleshoot-problems-app

    I hope this helps. Please let us know the results. We will be happy to help you further.

  • Problems with the applications dashboard pages

    I have a problem with how I see pages under dash, I think I need to apply a patch to get a solution, could give you some advice how to improve what it's like?

    All the texts are on the right side of the fields, it's weard but I don't know how to fix this.  I'll give you a link with a snapshoot.

    See the image: dashboard

    Thank you

    I got solutions Note: 1556590.1

    Thank you

  • Since the recent upgrade, I don't see any of my projects in Shutterfly. Their customer support says that it may be the problem with the application Java and Adobe Flash Player

    See above - there known problems with these applications?

    Your player (if any) Java is not indicated clearly in your list of plugins, and your FlashDrive is several versions behind. If Apple has a site update, you can check that first. Mozilla site is here: http://www.mozilla.org/plugincheck/

  • Problem with the application without a head

    Hello.

    My application without head works well in the configuration of the device debugging. When I change to device-release service seems to be frozen.

    "The system. STARTED event"does not start and I don't know why.

    I tried to export the application and install tools, but I get the same result.

    Is there a particular reason?

    Thank you

    There is a known, issue please read this...

    http://supportforums.BlackBerry.com/T5/native-development/unable-to-get-headless-apps-working/m-p/26...

  • Satellite A210 - ATI Radeon HD2600-problem with the TV via S-video connection

    I tried to connect my Toshiba laptop with TV (Philips LCD) via S-video, but TV was unable to detect the video signal from the laptop.
    I also tried to use a connection SCART TV through the reduction, but photo was the only black and white, no color.
    Last possibility is reduction use S-video to RCA yellow, but how do you know... But I really prefer to use 'pure's-video.

    I followed the step the manufacturer ATI and TV guide (first plug the cables, then switch TV, turn to the right in the TV menu, then the mobile source on, activation of TV as a secondary device (I have to force it, autodetect found nothing), press Fn + F5 (thing) and... nothing, black TV.)

    Where could be the problem?
    Cable seems OK, TV should support s-video and I get the right output in TV, I send the PAL signal...
    Maybe something with the Catalyst Control Center, I doubt.

    Can anyone help?

    Thank you very much.

    You use the Vista... Is this good?

    If so, the ATI Catalyst provides the TV option that must be activated.

    You should have an ATI Catalyst icon in the taskbar. Double-click on this icon.
    Then choose Advanced settings (second option).

    In the display options (Display manager) below, you will find the TV Force recognition option.
    Please check this option.

    Then reconnect the TV and try to use the FN + F5 key combination to switch to the TV.

  • Problem with the application Maps Idealpad A1

    I just bought tablet A1.

    When I try to use the Maps application, the system should start reboon in 2-3 sec and I can't use the App.

    I bought 3 tablets for my 3 girls, and each system has the same issue.

    Do you know a solution?

    I had this problem yesterday when I updated Google Maps to v6.0.0, fortunately I was able to uninstall the update & return v5.8.0 & now it works OK once more.

    I don't know if this will solve your problem, but there is a copy of subject v5.8.0 to halfway down this page:

    http://www.apktops.com/Google-maps-5-8-0-world-wide-navigation-activated-support-unrooted-device-now...

    Max

  • Windows Media Center Receiver Service stopped working and was closed. A problem with the application to stop functioning properly. Windows will notify you if a solution is available.

    Started getting the error Windows Media Center feared about 3 weeks ago.  I have tried the MS fix, reflected on the web for solutions, have run sfc/scannow (no violation of integrity) and nothing works.  Cannot restore system it's been 3 weeks.
    System was working fine 1 day and then bam... error messages began to appear.  I can always go into Media Center and listen to music or watch recorded shows.  I just can't watch TV or record something again.   I checked the Device Manager - material and everything works fine. Need help please...   Thank you.

    I guess that's the article that you are referring to?

    Error message when you start a Windows Vista-based computer: "Windows Media Center Receiver Service stopped working and was closed".
    http://support.Microsoft.com/default.aspx/KB/936229

    This site has some good ideas for you to try.

    How to fix the Windows Vista registry entries and files Media Center
    http://blogs.msdn.com/astebner/archive/2007/03/16/how-to-repair-Media-Center-files-and-registry-entries-on-Windows-Vista.aspx

    "Windows Media Center Receiver Service... "Error
    http://thegreenbutton.com/forums/p/50233/223005.aspx

    http://www.Google.com/search?q=Windows%20Media%20Center%20Receiver%20Service%20stopped%20working&hl=en&RLS=com.Microsoft:-AU & output = search & TBS = rcnt:1 & tbo = 1

    See if the System File Checker can help you?

    How to repair the operating system and how to restore the configuration of the operating system to an earlier point in time in Windows Vista
    http://support.Microsoft.com/kb/936212/#appliesTo

    See if you can isolate some processes of third party as the culprit?

    310560 How to troubleshoot by using the Msconfig utility in Windows XP
    http://support.Microsoft.com/kb/310560

    How to troubleshoot a problem by performing a clean boot in Windows Vista
    http://support.Microsoft.com/default.aspx/KB/929135

  • I have problems with the application on the computer.

    I get this (pasted below) every time I have some websites or use certain programs. I cleaned my pc using the virus detection and removal, so it is not caused by that. It is not the hardware due to the cleanliness inside the Tower failure because I keep myself fed air canned to clean on a regular basis. I can think of is to the question because of a certain windows update that may have been installed recently. Thank you for answers and assistance.

    Signature of the problem:

     

     

    Problem event name: APPCRASH

    Application name: Reckoning.exe

    Application version: 1.0.0.2

    Application timestamp: 4f2ffdfe

    Fault Module name: ntdll.dll

    Fault Module Version: 6.1.7601.17725

    Timestamp of Module error: 4ec49b8f

    Exception code: c0000005

    Exception offset: 000332a 0

    OS version: 6.1.7601.2.1.0.768.3

    Locale ID: 1033

    Additional information 1: 0a9e

    More information 2: 0a9e372d3b4ad19135b953a78882e789

    Additional information 3: 0a9e

    Additional information 4: 0a9e372d3b4ad19135b953a78882e789

    Read our privacy statement online:

     

     

    http://go.Microsoft.com/fwlink/?LinkId=104288&clcid=0x0409

    If the online privacy statement is not available, please read our offline privacy statement:

    C:\Windows\system32\en-US\erofflps.txt

    This cleared up the problem, but shortly after the restart, Sendori caused a crash in internet explore. I uninstalled it and it's working great now. Thanks for all the help.

  • ThinApp overhead for any problems with the applications?

    I can see the benefits and flexibility of ThinApp. However, I have a few questions:

    (a) what is the memory bound using vs ThinApp locally installed app?

    (b) are there applications that are difficult or impossible to ThinApp?

    Thank you

    Peter Polkinghorne

    Good question! Overhead (or the impact on the number of users, you can host on a server) is exactly what we have tested with Virtual Reality Check of project phase 4: the impact of virtualization on VDI application. Worst case, you could have 25% fewer users on a host computer compared to a situation where you have locally installed applications. However, this has been tested with a virtualized Microsoft Office 2007 package, and this isn't a best practice (the best practice is to install Office to the base image). We virtualize Office to compare ThinApp with App - V and Citrix Application Streaming.

    If users use only a couple of small applications virtualized, the impact is between 3% and 12%. On my blog, there is a link to the white paper of the Phase 4:

    http://virtualfuture.info/2011/06/impact-APPVIRT-VD/

Maybe you are looking for