Problem using Invoke.invoke from a non - UI Application

Hello

I have an application that displays a PopupScreen that consumes only part of the screen. Currently, I designed the application as an "Application" vs. "UiApplication" so I do not see the ugly white screen of death. I pushed my screen as a Global fine screen.

The problem is that now I want to use the API call to open a new message to a destination. When I call:

Invoke.invokeApplication(Invoke.APP_TYPE_MESSAGES, new MessageArguments(tm));

where "tm" implements javax.wireless.messaging.TextMessage.

The problem is that I get a ClassCastException because the Invoke API attempts to call getUiApplication.

Thread [project(125)id=1035919360] (Suspended (exception ClassCastException))     UiApplication.getUiApplication() line: 474    SMSEditorScreen(ModelScreen).go(boolean) line: 460    SMSEditorScreen(ModelScreen).go() line: 454   SMSEditorScreen.run() line: 739   SMSEditorScreen.runEditor(Object, SMSModel) line: 563     SMSComposeVerb.runEditor(ContextObject, SMSModel) line: 213   SMSComposeVerb.doInvoke(Object) line: 174     SMSComposeVerb(ShowMessageAppVerb).invoke(Object) line: 76    Invoke.invokeVerb(Verb, Object) line: 733     Invoke.invokeApplication(int, ApplicationArguments) line: 413

Is it possible that I can make my application a UiApplication consuming part of the screen without a white background or work around the problem otherwise?

You can do so by extending UiApplication.  When your application starts, have it call Application.requestBackground to move it to the bottom before you push your popup screen.  This avoids the white background.  You can also override Application.acceptsForeground to return false, prevent your application to appear in the Chooser of the task.

It should also use the invoke class.

Tags: BlackBerry Developers

Similar Questions

  • Earlier today, I registered on a different account. When I registered in the account that I use or music from apple, none of this was there. I do I get my apple music?

    Earlier today, I registered to a different Apple ID account in iTunes. When I registered in the account that I use or music from apple, none of this was there. I do I get my apple music?

    Your Apple's music is only available at the account Apple ID was purchased from.

  • My verse ATT modem (non apple devices to use this modem} is connected to the ATT line, Time Capsule (iPhones, Macs Time Capsule use) via ethernet Uverse.) Non apple devices can collect data from iPhones or Mac using the time Capsule?

    My verse ATT modem ({use of devices not apple wifi of this modem} is connected to the ATT line, Time Capsule (iPhones, Macs use the wifi of the time Capsule) and connect to the Uverse modem via ethernet.)

    Both devices are set to the highest security and each uses separate passwords.

    Non apple devices can collect data from iPhones or Mac using the time Capsule?

    With a bit of work by someone who knows how to do such things, not Apple computers could read some files on the Mac if file sharing is configured on the network... devices non-Apple and... He knew the device passwords or administrator for Macs.

    Mac could also play the files on other Macs if file sharing has been implemented and the device password or admin was known.

    If you ask if a PC can read the files on the Time Capsule, the answer is Yes, without doubt, assuming that the PC knew the password of device for the time Capsule.

  • I have problems using the parental control. I want to block facebook from a user account. I have facebook in the ban list, but apparently not block. I have Vista. What should I do to block facebook?

    I have problems using parental controls. I want to block facebook from a user account. I have facebook in the ban list, but apparently not block. I have Vista. What should I do to block facebook?

    Have you followed all the steps like that?

    http://www.howtogeek.com/HOWTO/Windows-Vista/use-parental-controls-to-filter-websites-in-Windows-Vista/

    It is an alternative.

    http://explore.live.com/Windows-Live-Family-Safety?OS=other

    http://Windows.Microsoft.com/en-us/Windows-Vista/protecting-your-kids-with-family-safety

    If this post answers your question, click mark as answer .

  • Compaq Evo D5pM - problems using this model number, never find what he listed...

    Compaq Evo D5pM - (Pent4 - 1.7 GHz) problems using this model looking for parts or information number.  Serial number has not been useful.

    Someone said "aka Compaq D510." Trying to buy memory model (found on the case) my number wasn't so I tried to use D510 (it was listed). Apparently not the same computer / mine use 168 pins sticks and D - 510 came 188 pins. I did my 'upgrade' purchase by check the number of pins and using the already installed type.

    My computer is a vertical minitower - looks like D - 510-, but like I said the components are different.

    I was wondering if anyone knows a model Compaq Evo w / same components (P4 1.7 GHz; 168 pin memory) I could use for research purposes. The smallest horizontal model Evo often uses different (smaller) maps, etc..

    Tried the Ctrl-Alt-S keyboard shortcut to bring up the model number (etc.), but my keyboard shortcuts do not work on this computer. Run a search for edge came up with nothing to tune.

    I tried HP support and drivers.  With the help of several model numbers and found that absolutely nothing for HP Compaq or "Compaq" is in the list.

    It is a great 3rd computer that I've updated w / spare parts, use it remotely, especially for music. Only problem was the dark model number. If anyone has something useful to add would be most appreciated. Thanks in advance...

    PS I'm currently trying to identify MB for what it's worth, but a number of alternative model that works would be great.

    Hello:

    Your model is a d500 CMT HP.

    1 GB 128 x 64-133 MHz PC133, 168P DIMM, 3.3V, sync

    Type of memory: , (non - ECC)
    Maximum memory: 3 GB
    Slots: 3

    This is the page for support and drivers for your PC.

    http://h20566.www2.HP.com/portal/site/hpsc/public/PSI/home/?cc=us & lang = in & sp4ts. OID = 96294 & Task = & AC.admitted = 1389381517647.876444892.199480143

    QuickSpecs:

    http://h18000.www1.HP.com/products/QuickSpecs/productbulletin.html#spectype=North_America & type = HTML & docid = 10946

    Because nobody does more than the memory, it will be hard to find and very expensive.

    You can plan on paying more $ $70 / 1 GB chip if you do not find the specification above used on a place like eBay.

    You can buy a newer, faster CMT from HP on eBay for less than $70 delivered.  Memory is much cheaper to buy as well.

    http://www.eBay.com/ITM/HP-DC7600-Pentium-4-3-0GHz-40Gb-512MB-DVDRW-XPPRO-30-day-warranty-/281231108334?PT=Desktop_PCs & Hash = item417aae28ee

  • When you use Outlook Express from home I can send and receive emails, but when I'm away from my connection at home I can only receive emails.

    Problems using Outlook Express offline at home

    I get an error message when I try to send e-mails, would it be possible to send and receive e-mails via Outlook Express from another connection. I hope someone can help, thank you.

    Jack

    Always display the complete text and correct all errors when you ask about a problem.

    ISPS don't like people using their networks to forward mail from other networks.  The symptoms you describe are usually the result of not properly is authenticating with the outgoing server or the use of a non encrypted SMTP connection (that is, port 25 instead of 587 or 465 or whatever your email port provider requires for encryption).

  • Can I use a font that comes with a subscription to Adobe first Pro CC to make a video intro with Adobe first Pro CC, for use in videos from Youtube that will be monetized?

    Can I use a font that comes with a subscription to Adobe first Pro CC to make a video intro with Adobe first Pro CC, for use in videos from Youtube that will be monetized?

    If so, I'll be able to continue to use this intro for these purposes, if I decide to leave the subscription?

    I looked this info on the EULA for Adobe fonts and the font itself, but the information was not conclusive.

    Thank you!

    Licensing - in particular for fonts - is always a big pain - and even if you have a lawyer paid handsomely on the case, it is always a challenge to navigate in all licenses of the difference and the different situations.

    In reality, the chances of trouble to use a font Adobe provides as part of the suite Creative Cloud is little or none - even if it's TECHNICALLY in a kind of fine print.

    However if you are doing a project where you must provide tangible evidence that everything is legally more High Council (which you have to do a lot of time for projects that are funded for example the Government), then things can become difficult.

    In the case of Myriad Pro - even though the creative cloud agreement specifically lists the fonts in the list of the restricted fonts - you can always register Myriad Pro through Adobe's Typekit service (see: Myriad Pro |) Typekit) so that circumvents this problem.

    My advice - if you need evidence that the fonts of your use of any good - then I would contact Adobe directly, in order to have their response in writing. See: https://helpx.adobe.com/contact.html

    If you are just doing a personal project, and you put the work on YouTube (even if you get advertising revenue as part of the YouTube partner program), and then the case to get into any kind of trouble because of policies is VERY thin - but if you want to play it is really safe, it is best to do your research , and make sure you have something in writing say that everything is perfect.

    If in doubt - talk to a lawyer, because they will be able to do a risk assessment appropriate - even if it is somewhat a grey area.

    We had similar issues trying to license of Adobe Stock content - a few clauses in the agreement that is very unfortunate entertainment lawyers.

  • Problem using Extract IMAQ. Don't not out two different images

    Hi, I am using the multiple functions of extract IMAQ for some parts of the image of the webcam, then using color extracted from function to get values of RGB. The problem is that two functions extract IMAQ give the same image on its out port. The extract of diagram of block and VI are attached below. Also, please let me know if there is a better way to do this. I need to expand this later to extract parts of the image instead of two different about 40 - 50 RGB values below.

    It's happened because IMAQ Images transferred by references. You must provide images of different destination for each extraction:

    Andrey.

  • After installing something from windows update my computer start Startup Repair each time and said "a hard disk problem is preventing Windows from start" and turn off.

    Hello

    After installing something from windows update (about 300 MB in size) my computer start Startup Repair each time and said "a hard disk problem is preventing Windows from start" and turns off.
    Then a window pops up saying "Startup Repair cannot repair this computer automatically.
    The details of the problem say;
    Problem event name: StartupRepairV2
    Signature of the problem 01: AutoFailover
    Signature of the problem 02: 6.0.6001.18000.6.0.6001.18000
    Signature of the 04:65537 problem
    Signature of the problem 05: unknown
    Signature of the 06 problem: BadDisk
    Signature of the 09 problem: unknown
    Signature of the 10:1168 problem

    System Restore does nothing, and all the other tools of recovery. :(

    Please help, it will be much apreciated :)
    DOM

    If you are sure that the problems began immediately after installing a Windows Update, use the free support of MS here:
    Visit the Microsoft Solution Center and antivirus security for resources and tools to keep your PC safe and healthy. If you have problems with the installation of the update itself, visit the Microsoft Update Support for resources and tools to keep your PC updated with the latest updates.  MS - MVP - Elephant Boy computers - don't panic!

  • Help! Problem using HPSCAN.exe or the TWAIN for HP Laserjet Pro cm1415fnw driver using Windows 7

    I used the HP Laserjet Pro cm1415fnw for over a year without problem.  When I first bought the unit, I was using a Dell with Windows XP desktop computer and connected to the printer via the USB port.  I was able to print and scan from my computer, even in applications that use the driver scan TWAIN such as Word, Acrobat, etc.

    I've since upgraded to a HP slimline s5-1160 computer using Windows 7.  I installed the software my installation CD Laserjet is no problem.  The printer is connected to the computer by USB port.  I can continue to print without problem.  However, I am is no longer able to scan using the HP (HPscan.exe) software, or applications that use TWAIN scanning driver such as Word, Acrobat, etc.  When I try to do, it takes a lot of time before he asks me which scan TWAIN driver to select.  When I select the MFP from HP cm1410 series, the program hangs or returns to the State wherever it was before I tried to scan a picture in a document from the program.

    I can scan however successfully using the Wizard Windows Scan / Fax or if I choose "Devices and printers" in the Start Menu and select 'Start scan' in the menu after right-clicking on the HP printer icon.  However this option restricts my use of the scanner - I can't scan to PDF and I can scan several pages in an OCR application.  I have to analyze on a JPG or TIF or PNG.

    What to try to solve this problem, I did the following without success:

    1. Uninstall and reinstall the drivers and software complete (and using the most recent version on the HP site)
    2. Change ETIOU USB ports
    3. Run the HP scan diagnostic utility, which seems to show an error to the WIA, scanning stage and then recommend that I have uuninstall and reinstall the full software.  When I skip that and allow it to check for TWAIN scanning, it gives me a similar error, suggesting I use the latest version of the drivers (the driver that I use is v 3.0 dated 12/11/2009) so in this case the utility of diagnostic scanning HP provides NOT a fix for this problem other that uninstalling and reinstalling , which I did several times without success
    4. Contact HP support for the computer and the all-in-one (which as I understand it there's different support staff).  Staff of the printer claims it's a software problem and that the staff of the computer must be able to resolve the issue (something not having "launchpad" installed correctly.  When I communicate with the staff of the computer, they say it is a printer driver problem.  So I'm at a standstill
    5. I studied the HP support forums to see from this link - http://support.hp.com/us-en/document/c02661093 - if you can't scan from software HP you can use programs that rely on WIA (Windows Fax and Scan) drivers that I already know I can do it, but implies that HP doesn't have a solution to find out how to scan using their own software!

    My gut tells me that he is one of those problems that many others perhaps, but for which there is no viable solution.  It is possible that during the uninstall and reinstall the software, remains can stay behind that prevent the proper functioning of the drivers, but without knowing how to "clean up" specifically those remains before you reinstall the software, I am at a loss.  Oh and by the way, I also tried using CCleaner and Norton Registry Cleaner to try to clean up these remains, but that effort did not help.

    My question is basically this... or does anyone know of a fix for this problem should I resign myself to use the Wizard Windows Fax and Scan to scan documents and pictures, and forget about using TWAIN programs like HP seems to suggest?  I think that because I use a HP printer/scanner and a HP with Windows 7 computer, this problem should NOT be a problem!

    Hi Radiopeople,

    Follow the steps below to check the WIA Service:

    1. type services.msc in run or search and files program

    2. scroll the page up to the WIA Windows Image Acquisition

    3. make sure that the service is running. Click on stop and then restart to ensure

    4 restart the computer

     

    Restart the services of dependencies:

    1. Click Start, in the search box type 'service ' without quotes.

    2. scroll down until you see Windows Image Acquisition (WIA).

    3. double click on it and go to the Dependencies tab.

    4-2 services must be listed.

    5. close this window and look for the remote procedure call (RPC).

    6. make sure it's on manual or if it is enabled automatically, just leave it. Make sure the service is started.

    7. go to hardware detection kernel and Double click.

    8. set the Startup Type to manual and click on apply.

    9. you should be able to start the service by pressing Start.

    10 now, you are done and the Twain Manager must work and gives you is not a mistake.

    Check the dependencies or sous-dependances:

    Right-click WIA (Windows Image Acquisition) by selecting the first Properties , and then click the dependencies tab. It should list: remote procedure call and Detection of Harward Shell

    Under the CPP, it will then list DCOM Service Process Launcher point final RPC Mapper date back to the start all the items listed as dependencies or dependencies under WIA void list main services.msc and right click then

  • Problem using Mr Fixit

    I used Mr Fixit from Microsoft to reset my default hosts file and now there is no Hosts file in C:/windows/drivers/etc/my browsers work. What should I do?

    Thanks PML. This discussion is useful. The Hosts file FAQ is not very useful.

    If the hosts on 135kb files are bad, why the MVP recommend a 608 kb?

    The hosts file, kidnapped by Mr Fixit has been 407KO. Wouldn't that one be better than the biggest MVPS hosts file?

    How can I reverse the changes made by Mr Fixit from Microsoft Support? I tried the system restore, but it did not work. Is there anyway that I can use the hosts.old file?

    Also shouldn't you or someone tell Microsoft that is hosts by default file reset program is defective and remove the hosts file?

    Finally, your best judgment. I would be better to use the huge MVPS hosts file? What features I'll lose by disabling services.msc, as recommended?

    Additional questions. What is the hosts.*.backup? (* indicates an alphanumeric string.) What was the purpose of the 86 hosts.*.backup files that I deleted? A BAK file is similar to a backup file? What is the difference? Can I use the backup file to re-create the hosts file?

    I do not use a file hosts at all, so I can't answer from personal experience.  However, it is not the size of the hosts file that is important, it is what is in it.  Point entries in any "anti-malware" hosts file (there may be other reasons to use a hosts file, but anti-malware is most common for individuals) is to deal with HTML code hidden on a web page which redirects the web browser to an unwanted site.

    Suppose that someone has written a webpage so that when get you there, it tells your browser to www.stealmyidentity.com.  If someone ' one - as the people who compiled the MVPS hosts file - aware of this site and puts an entry in hosts like this
    127.0.0.1 www.stealmyidentity.com
    When the HTML code is executed, your browser will then the IP address 127.0.0.1 instead of the IP address of the wrong site.  127.0.0.1 is the IP address of 'closure' of your computer (which is why the logo at the top of web page MVPS hosts said "There is no place like 127.0.0.1").

    Thus, you can't compare your old hosts file 407KO with the hosts of MVP 608 kb file and say that the first one was "better".  No, it's probably not best, because it lists less "bad" sites.

    I know not the details of why a leader hosts more than 135 k could slow things down, but given that 407KO is so much greater than 135 k, I guess that from a performance point of view, 407 kb is not much better than 608KO either.  And in any case, MVP web page gives you a procedure to deal with this potential to slow down.  And you're not disable services.msc - you use services.msc to disable the DNS Client service.  Note also that the definition of a service on 'manual' is not the same as 'off '.  Defining a service to "Manual" just will not start the service until something he needs.

    I suggest to use the MVPS hosts file and set the DNS Client service on 'manual' as suggested.  If this is a problem, you can just go back to the default hosts file and set the Client DNS service on 'automatic', which is the default value.

    You seem to be correct only the Microsoft FixIt routine (in the future, remember to identify the Knowledge Base article that includes the FixIt you speak because Microsoft has a lot of different routines "FixIt") does not quite what it says it will do.  What routine FixIt seems to do is rename the file hosts in hosts.old.  This brings the system to what I recall is the State of the default system - no hosts file at all.  If you want then the hosts 'default' file, you copy the example of hosts (hosts.sam) file to a new file named simply hosts (with no file extension).

    In this case, a file *.backup or master is just the previous hosts.  It seems as if you were using a service that regularly gave you a new hosts file.  Rather than simply replacing your existing with a new hosts file, this service renamed your current file and then created a new.  There is no good reason to keep 86 versions old what whatsoever.

    To "recreate" the hosts.old hosts, hosts.bak file host.backup or hosts.backup75 file, just rename to remove the file extension.  You can watch one of these files in the notebook, but because the file extension is not txt, when you double-click a master file or use 'open with', you will get the dialog box asking you to select the program to open the file in the list.  Simply choose the notebook and're you good to go.

  • How could I give priority to my network connections, (without turning off the strap attached, as it took), so that it uses the internet from my main network connection?

    Prioritize network connections

    OK, here's the situation.
    I have a regular ethernet connection that provides me with a network and the internet.
    I have also a tablet PC which I attach to my PC so I can use it as a controller. (Not that it is important, but it's for a DAW/Midi controller)

    My problem is that whenever I place my tablet, PC starts by ignoring my normal connection and taking the internet from my Tablet (even when it is not connected to the internet). As a result, my internet is de-energized once I tie it, if I'm not as under the wifi on my tablet.

    My question is, how could I give priority to my network connections, (without turning off the strap attached, as it took), so that it uses the internet from my main network connection?

    Hello

    As well as the troubleshooting provided by Boumediene steps, you can also try the steps in this link. Some screenshots are also available on the link for a better understanding.

    http://www.howtogeek.com/HOWTO/27994/how-to-change-the-priority-of-wiredwireless-network-cards-in-Windows/

    Hope you will find this is useful.

  • Laptop had a problem to "Solve a problem with PSIKey", solution from Windows & installed according to the instructions. How will I know that the problem is solved?

    has stopped working properly.

    An update is available that solves this problem.

    Downloaded Update site Web Protexis, Inc. and told to follow the steps in the installation wizard. The file downloaded and said he was setting up installation. Then after a few seconds, the box has disappeared and nothing else happened. How will I know if this problem has actually been resolved? My laptop has shown 6 problems with this unit from 30/07/11-08/12/11, where the unit has stopped working. Because I don't know what it is yet, I don't know really if the problem is solved or not. What should I do at this point? I have a SP2 7520-5185, running Vista Home Premium, Acer-Aspire. Thanks for any help you can give.

    Hello

    If you have installed a trial or paid a licensed version of Corel software products, you probably may notice a third unannounced software application makes its way into your computer too. The program is PSIService.exe by Protexis, which installs a Protexis V2 of Licensing Windows operating system service or Protexis licensing service.

    PSIService belongs to protect DRM (digital rights management) copy protection and license management software, which is intended to protect an application or software against piracy and illegal copying. Thus PSI service is normally installed by another program, such as Corel Paint Shop Pro Photo X 2, Corel Paint Shop Pro XI (X 1), Corel Paint Shop Pro X, that uses its service to collect information of license to repatriate much like spyware, protect copy and authenticate the user who is using an authentic version of the program.

    When you tried to download and install the program, if the box that says closed the dialog box when the download is complete has been verified, it will close the dialog box.

    I suggest that you restart the computer and check if you get an error message.

  • unknown problem using WMP 12 no sound when played the song in the folder but has sound when he played in the player

    Hi all

    I have a weird problem using WMP (Windows Media Player v12).  When I double-click a song of in my library, the trail seems to play, but didn't have all the sounds.

    However, if I hover over the same path and then click Preview, the pop-up, the track plays with sound.

    When the track (s) do not play, all indications show the way to correctly play through of progress ' Now Playing ' screen, but no sound.

    In the past, when I clicked on any MP3 file, he would play using WMP.  Now, when I click on an MP3 file, it brings just "Now Playing" and looks LIKE he plays, but no sound.

    I have looked & looked for clues as to why it may be of WMP, but I can't understand the problem.  I also searched the Web for 'day' drivers in the Win System Manager, but Win says that pilots are "up to date".

    I have rebuilt the DB Library (twice) by removing the DB files in from WMP to a procedure in a WMP support forum. I also went to check the audio device in Device Mgr Win (mine is one on one). Everything seemed ok.  I also changed the devices to "Win by default" to what I think my onboard audio device is called.  I thought that that can do, but it's not.

    I was struggling with this since the day of the year.  Please help me solve this problem!

    Here is a link to my system features:

    http://Speccy.Piriform.com/results/0JAQshtlODwFxgwHeGb4rfq

    Hi, Pie,

    Welcome to the Microsoft community.

    Appreciate your efforts to try to resolve the problem that you have set so far. I guess that is not a problem with the driver that ultimately, the songs are playable using the media player. It could be a corrupted in Windows Media Player framework that is causing the problem. Let's run the Windows Media Player troubleshooting utility that resets all parameters to the player. Check out the link to do so:

    http://Windows.Microsoft.com/en-za/Windows7/open-the-Windows-Media-Player-settings-Troubleshooter

    Please let us know the results.

  • Problems to import pictures from a scanner

    Hi, I am writing to report several bugs with the "import" Wizard when importing images directly from a scanner.  So far, I noticed 3 bugs:

    (1) if you disable the option tag images as import you them, there seems to be no way to get the 'Import settings' dialog box, except by another type of import (for example the import of images from a memory stick).  If you have disabled the tags for all types of imports, you'd be stuck - no way to make it back at all.  (Note: this has been reported elsewhere)

    (2) in the import dialog box, deselect "Open Windows Explorer after import" has no effect.  After each import, a Windows Explorer window appears showing me that the directory of the file has been imported to (i.e. "imported photos and videos").  Worse still, this happens even if another this window is already open - so if (for example), I scan 10 pictures, I have 10 windows explore open all showing this same directory (unless I close them I will).

    (3) I have my default scanning profile configured to save scans to. PNG format.  Once I log in, the first time I scan an image it works fine.  However, the time 2 and following, I get an error message "the following error occurred during the import Image.png: the file or directory is corrupted and unreadable."  I need to click 'Try Again' to twice before the import goes forward, every time, but after doing that it works. (This only happens when registering as a. JPG; Note that I'm using Win7 x 64 and my scanner is a multifunction Canon MP730 with the latest device drivers installed from Microsoft Update).

    I have the same problem using a scanner hp scanjet 3670 in Windows 7. Doesn't seem to be common - in fact it is one of only two posts, I found pertaining to it! The workaround is to set "always combine, skin tags" in the properties of the taskbar, do a right click Explore and "Close all windows" both button.

    In the end, I stopped using a direct link to the scanner, as these options has never made any difference despite an OS reinstall :(

    Somewhere, I found a recommendation to scan using Windows Fax and Scan Manager:
    http://Windows.Microsoft.com/en-GB/Windows7/products/features/Windows-fax-and-scan

    Surprisingly simple & uncluttered, unlike a vendor supplied software. I can do several previews and analysis within the program save in the specified directory. The same program allows you to move the image files according to the needs

Maybe you are looking for