Problem with push the screen of an application

Hello

I developed an application with another point of entry. I have the main GUI application and an application that listens for push notifications. The background listener auto starts when the unit is turned on and tuned to push. When it receives the push message, it displays a popupscreen with the options 'launch' and 'Cancel '. By pressing 'start' should open the graphical application by pressing the main screen of the application. However, I get "ClassCastException" and I have no idea why.

I looked around and the process is similar to what I did, but somehow, it does not work for me. Can someone explain or show me how to push a background application screen?

See you soon!

Welcome to the forums!

I guess as you push a display context global [and maybe modal] 'launch' and 'Cancel' buttons. When you press 'start', then, you should not just push a screen - you should actually run the main application!

To do this, you must create an application with the appropriate settings and say ApplicationManager descriptor to run it. Take a look at the documentation ApplicationManager, especially the section "running an application with different arguments. Make sure the arguments are according to the needs of your main application, not the bottom one.

Only one problem: what happens if your application is already running but reduced? Don't worry - you try to run the same application with the same arguments will activate one already running!

Good luck!

Tags: BlackBerry Developers

Similar Questions

  • Problem with pushing the attribute child xml to an empty array

    Hi guys,.

    I have another problem with the bet, or should I say, pushing data from an xml file to an empty array, as I stated earlier.

    During the xml_mc.onload, I can see the data, but after that, it becomes undefined.

    It seems that I couldn't find the solution on the net as well. I suspect that's not possible, but I'm not giving up.

    Please help me.

    Thank you.

    This is the code example:

    var monTableau = new Array();

    var xml1:XML = new XML();

    Xml1.ignoreWhite = true;

    Xml1.onload = function (success: Boolean) {}

    {if (Success)}

    var nodes = this.firstChild.childNodes;

    for (i = 0; i < nodes.length; i ++) {}

    MyArray [i] = nodes [i].attributes.name;

    }

    Text1. Text = MyArray [2];  to check if the 'name' attribute is visible

    } else {}

    trace ("could not load the XML");

    }

    }

    Xml1.load ("icons.xml");

    Text1. Text = MyArray [2]; I commented on the first text to try to display it again, and the result is not DEFINED...

    the XML would look like this:

    icons. XML

    < icons >

    < name of icon = "icon1" / >

    < name of icon = "icon2" / >

    < name of icon = "icon3" / >

    < name of icon = "icon4" / >

    < / icons >

    Thank you

    I do not understand your problem.  Table fill with data.  If you expect this second "text1.text ="show another thing that 'no set', it won't happen as you wrote it. "  This line of code is run before the onLoad function (code execution does not wait for loading files).  You want only to deal with the processing of the data, once the onLoad function he treated in the table.

  • I have problems with random blue screens - 1st BC Code - of the suggestions?

    I have problems with random blue screens - 1st BC code - all others are zeros.  6_1_7601 OS version, produced 768_1.  Any suggestions?  My computer is a model of HP P7-1235.

    Thank you.

    The minidump files showed two errors blue screen, an error KMODE_EXCEPTION_NOT_HANDLED (1e) referring to the amdxhc.sys and an error SYSTEM_SERVICE_EXCEPTION (3B) referring to the usbfilter.sys:

    Bugcheck 1E, {0, 0, 0, 0}

    WARNING: Unable to verify timestamp for amdxhc.sys
    ERROR: Module load completed but symbols can be loaded for amdxhc.sys

    Bugcheck 3B {c0000005, fffff8000f4770c5, fffff880085feb10, 0}

    WARNING: Unable to verify timestamp for usbfilter.sys
    ERROR: Module load completed but symbols can be loaded for usbfilter.sys

    The amdxhc.sys is the AMD USB 3.0 driver and the usbfilter.sys is the AMD USB filter driver.

    The amdxhc.sys is dated January 3, 2012 and the usbfilter.sys is dated November 16, 2011.

    Two of these drivers should be updated to the latest version to ensure compatibility with the motherboard and between them.

    HP has an available Update for AMD USB 3.0 driver but I do not see an AMD USB filter driver available for your computer updated.

    I might suggest to try to get the package of motherboard chipset from AMD for versions newer and compatible to the two pilots.

    You can try the "AMD Chipset drivers' starting from the following link which should update the two drivers.

    http://support.AMD.com/us/gpudownload/Windows/pages/raid_windows.aspx#2

    I recommend to create a System Restore Point before installing the new motherboard drivers.

  • I have the dell vostro 3450. I have problem with "ST Micro Screen detection sensor is not compatible with win 7.

    Hello

    I have the dell vostro 3450. I have problem with "ST Micro Screen detection sensor is not compatible with win 7.
    can someone help me please.

    THX,
    Sepahdar

    http://en.community.Dell.com/support-forums/laptop/f/3519/t/19390317.aspx

  • problem with playing the clash of clans

    I'm having some problems while playing the clash of clans on my 2 mini ipad screen does not seem to meet sometimes as if it was some sort of delay so I have to tap several times in order to use a filter or throw the troops on the battlefield.

    Hi Trinitygr,

    Thanks for posting in the Community Support from Apple! I understand that you are having problems with your iPad screen while playing a game. I like to play games on my iPad and I don't see how this could be a nuisance. I'm happy to offer assistance.

    Are you only had this problem when using the app clash of Clans, or does it happen in all applications? I recommend to start by following the steps described in this article:
    If an application you have installed unexpectedly closes, unresponsive, or does not open

    Take care!

  • Not pushing the screens and camera 8900

    Im having two problems in my code...

    the first don't push a screen in a menu. What of weird, is that I have two other options on the menu that will push the screens.

    Here is the code:

    private _server MenuItem = new MenuItem ("Server", 110,
    30 k
    {
    public void run()
    {
    UiApplication.getUiApplication () .pushScreen (new Server());
                    
    }
    };

    the second problem is very similar... but it's the camera of 8900 dreaded

    SerializableAttribute public class CameraScreen extends form {}
        
    private photMan PhotoManager = new PhotoManager();
        
    private VideoControl _vidcon;
    Player;
    _videofield of private sector;
        
    private String image_Type = "encoding = jpeg & width = 2048 & height = 1536 & quality = very good;
    private byte [] image_Array;

    Phto of photos;
     
    CameraScreen _camScreen;
        
    VerticalFieldManager _vfm = new VerticalFieldManager (VerticalFieldManager.USE_ALL_HEIGHT |) VerticalFieldManager.USE_ALL_WIDTH)
    {public void paint (Graphics graphics)
    {
    graphics.setBackgroundColor (0x00BDC29A); / / Gray special
    Graphics.Clear;
    Super.Paint (Graphics);
    }};
        
        
    Private UiApplication UiApp;
        
    CameraScreen (Photos pht) {}

    Games of skill to the singleton
    photMan = PhotoManager.getInstance ();

    UiApp = UiApplication.getUiApplication ();
    Photo gets assigned locally and assigns him photomanager
    This.PHTO = pht;
    photMan.setPhoto (phto);
    make easy pop screen
    _camScreen = this;
                
    Add the player to the screen to be used
    _vfm. Add (_videofield);
            
        
    This starts the camara media feature
            
            
    CreateCamera();
    try {}
    Player.Start ();
    } catch (MediaException e) {}
    Dialog.Alert ("Err:" + e);
    }
            
            
    Dialog.Alert ("Press Enter to take photo");
    }

    It takes the photo and shows a preview
        
    Public Sub takePicture()
    {
    Dialog.Alert ("what happens");
    try {}
    photMan.setImageData (_vidcon.getSnapshot (image_Type));
    Dialog.Alert ("inside the test');
    } catch (MediaException e) {};
                               
               
    Dialog.Alert ("just before the next screen push");
    UiApp.pushScreen (new CamPreviewScreen (_camScreen));
            
        
    }

    Public Sub CreateCamera()
    {
    try {}
    Reader = Manager.createPlayer ("capture://video");
    Player.Realize ();
                
    _vidcon = (VideoControl) player.getControl ("alarm");
                
    If (_vidcon! = null)
    {
    _videofield = _vidcon.initDisplayMode (Field) (VideoControl.USE_GUI_PRIMITIVE, 'net.rim.device.api.ui.Field');
    _vidcon.setDisplayFullScreen (true);
    _vidcon.setVisible (true);
    }
    Add (_videofield);
                
                
                
            
    } catch (Exception e) {}
                    
    Dialog.Alert("E:"+e);
    }
    }

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

    I use a headset button to access the feature, and I know that the function is called... This works also in the Simulator, but not in the device...

    Any help would be appreciated...

    This is random... but I solved the problem of 8900. Also, it happened to me when I was with the InvokeCamera App. The solution to get the CameraDemo to work is to make sure you build the program is less than or equal to the JDE version JDE on the phone

    Example:

    Compile the JDE 4.6.0 (computer)

    Work on 4.6.1 (phone)

    Compile the JDE 5.0.0 (computer)

    Does not work on 4.6.1 (phone)

    Just make sure that you compile the .cod with the correct version of the SDK and you wil have no problem. Hope this can help some people.

    Note: You will still need to clear the screen of all fields except for the videoField to do, this includes the setTitle()...

  • Problem with installing the game "no apps are installed to open this type of link try find at the store.

    Original title: problem with installing the game

    install a game but saying o\s

    No apps are installed to open this type of link try find in the store and when I opened store it for the app its available nt tried compatibility troubleshooting but no use it please help

    Hi harsh,

    For a better understanding of the issue, I would need more information on your side.

    1. What is the name of the game you install?

    2. where did you install the game from?

    3. What is the full error message?

    4. the question facing you while opening the store Windows or you are looking for an app? Have what compatibility troubleshooting steps you tried?

    To resolve the problem with applications, I suggest you try the procedure described in the article and see if it helps.

    Solve problems with a soft

    Please provide the necessary information to help you further, I'll be happy to help you.

  • Facing a problem with writing the custom for WLS identity assertion provider

    I am facing a problem with writing the custom for WLS identity assertion provider.

    Requirement:

    Asserter identity configured in WLS should get called when the following cookie is sent in a request by my application
    cookie name: OAMAuthnCookie_blr1234567.idc.oracle.com:7777

    I added the name of the cookie as a token of support and Active token in WeblogicCustomIdentityAsserter.xml

    < MBeanAttribute
    Name = "SupportedTypes.
    Type = "java.lang.String [].
    Writeable = "false".
    Default = "new String() {& quot; OAMAuthnCookie_blr1234567.idc.oracle.com:7777 & quot ;}.
    / >
    <!-ActiveTypes attribute contains the subset of your mbean SupportedTypes who are active in the area. ->
    < MBeanAttribute
    Name = "ActiveTypes".
    Type = "java.lang.String [].
    Default = "new String() {& quot; OAMAuthnCookie_blr1234567.idc.oracle.com:7777 & quot ;}.
    / >

    Problem:

    Identity asserter provider is not invoked for the request that has the cookie named OAMAuthnCookie_blr1234567.idc.oracle.com:7777.

    I did some experiments with the cookie name, to see where the problem could be

    Identity asserter provider is triggered for the following cookies:
    OAMAuthnCookie_blr1234567.idc.oracle.com7777.
    blr1234567. IDC. Oracle
    blr12_XXX. IDC. Oracle.com

    and it does not work for cookie name - OAMAuthnCookie_blr1234567.idc.oracle.com:7777

    I think that the name of the token supports not the colon. I don't have control over the name of the cookie, two points will always be

    Tried it with giving the name of the cookie after the encoding of the colon

    < MBeanAttribute

    Name = "SupportedTypes.

    Type = "java.lang.String [].

    Writeable = "false".

    Default = "new String() {& quot; OAMAuthnCookie_blr2211441.idc.oracle.com & #58;. 7777 & quot ;} »

    / >


    But still does not work
    Am I missing something? Any help will be appreciated.
    Help, please!

    colon ': ' is an illegal character in the name of the cookie.

    RFC 2616, Section 2.2 says:

    token = 1 *.

    separators = "(" | ")" | " <" |="" "="">" | " @"

    | "," | ";" | ":" | " \" |<">

    | "/" | "[" | "]" | "?" | "="

    | "{" | "}" | SP | HT

    It is clear ":" a "separator" and thus not allowed in a token or a cookie name.

  • Problem with uninstalling the Toshiba Bluetooth Stack for Windows

    Guys, I have a problem with uninstalling the Toshiba Bluetooth Stack for Windows v4.00.22 on my laptop Windows XP SP2. Whenever I choose to remove the "battery Bluetooth for Windows by Toshiba" (or "Bluetooth HID Switch Service") the installation program starts to prepare, but crashes after a few minutes - the only way to continue is to turn off the laptop.

    The same thing happens when I try to update the stack to the latest version - the installer says that the old battery has to be removed first and crashes after trying to remove it. So is it possible to remove it by hand? I really don't want to reinstall Windows!

    I don't have a copy of the original Software v4.00.22 to recharge so if you have a copy or know where I can get a copy I would gratefully

    Thanks in advance.

    I would try to delete the folder: "C:\Program Files Toshiba Stack.
    Registry settings will remain, but should be repaired after a new installation of the Bluetooth stack.

  • Problem with finding the SmartGlass an Xbox to Store or App Store

    Original title: xbox a smartglass

    I can't find that the smartglass an Xbox on the windows store or the appstore please help

    Hi Ibrahim.

    Please contact Microsoft Community. I understand that you have a problem with finding the SmartGlass an Xbox to Store or App Store. I will surely you help with this.

    You can download Xbox a SmartGlass from the following Windows store link.

    http://apps.Microsoft.com/Windows/en-us/app/Xbox-one-SmartGlass/c3a46cb8-e733-4579-B716-862e123fa831

    For more information you can check the link.

    http://support.Xbox.com/en-us/Xbox-360/apps/SmartGlass-Info

    Hope this information helps. If you need more assistance or information on this question, reply to this message. I'll be happy to help you.

  • I have problems with downloading the Lightroom app! What is the location of the appropriate installation?

    I have problems with downloading the Lightroom app! I have already many programs Adobe works on my PC and I have a cloud of Adobe license. But now, with the installation of Lightroom, I get the following error:

    Exit code: 7

    Please see specific errors below for troubleshooting. For example, ERROR: DF014...

    -------------------------------------- Summary --------------------------------------

    -0 fatal Error (s), 1 Error (s)

    -Payload: Adobe Lightroom 6.0.0.0 {8048A5DF-8A70-5BE1-954B-E0FDE1BD0D0D}.

    ERROR: DF014: unable to create the symbolic link to ' \\XC-DC-01\Users\Patricia\... \Desktop\Adobe Lightroom.lnk "(Seq 6641).

    When I go to the solution, then it says: rerun the installation. Select a different installation location.


    But I tried to select all the other folders on my computer for the last two weeks and it still not working? Update other programs is not a problem, then I don't understand what goes wrong? What is the location of the appropriate installation? Why it changed on my computer?

    Can you help me with a solution? Thank you!

    Hello

    Please see Exit Code 7 Installing and errors ' Exit Code: 6 "," Exit Code: 7 "|"» CC, CS6, CS5.5

    Hope that helps!

    Kind regards

    Sheena

  • Problem with editing the content in the administration Console

    Hi I have problems with editing the my site published in the administration Console.

    Everything what top an embeded google map works fine, but everything below is not clickeble/editable.

    Someone else has this problem, and you have any ideas on how to solve the TI?

    Hello

    Will you please try to remove the code embed to Google Map and then check, because it seems that the code used is in conflict.

    Also test with the Google Map widget in the social widgets.

    Thank you

    Sanjit

  • Problem with REPLACING the clause in Sybase

    I am facing a problem with REPLACING the clause in embedded SQL with a Sybase database.

    My Cold Fusion Server is MX 7.

    The database is the Adaptive Enterprise/12.5.0.3/EBF 10689 IR/P/Sun_svr4/OS Server 5.8/rel12503/1915/64-bit/FBO/Thu 23 Jan 16:05:19 2003

    That is the problem. I have a variable bureau_incode of Cold Fusion, which I use to set the values in my IN clause. When I comment on my request and display this value in the HTML page, bureau_incode has the following value:

    ('TAB', 'OGC', 'BIG', 'OLA', "MDG", "SEO", "OSP", "ANOTHER OWD ',' ', 'PSHSB", "CAT", "WTB")

    My CFQUERY embedded SQL looks like this:

    Quote:
    < name cfquery = "qResults" datasource = "#request.dsn #" >
    Select Name,
    bureau_code,
    Telephone,
    Mobile phone,
    Pager,
    E-mail
    Availability,
    Explanation,
    Password,
    Admin,
    last_login = convert (varchar (20), last_login, 0)
    of PAMS where availability = ' don't
    < #request.seltype # cfif IS NOT "ALL" >
    and bureau_code IN #bureau_incode #.
    < / cfif >
    < / cfquery >
  • Problem with invoking the Application Messages

    Hello

    I'm testing an application that adds an element of application menu in the list of messages and when clicked, displays just the old content and beneficiaries on the screen 'Compose Email'.

    That's what I did.

    public Object run(Object in_objContext)
    {
       if(in_objContext instanceof Message)
       {
        Message msgOrig = (Message)in_objContext;
        try
        {
            Message msgNew = msgOrig.reply(true,true);
    
            Invoke.invokeApplication(Invoke.APP_TYPE_MESSAGES,
                new MessageArguments(msgNew));
    
        }catch(Exception e){}
       }
       return null;
    }
    

    The problem is, there is no "Send" command in the context menu.

    Can someone help me?

    I can confirm that, but you're probably referring to my post on the other forum anyway.

    What you will find (if the memories are good) is that a message created with the Message.reply () function object doesn't have a 'Send' menu item when the envoys to the Messages app.

    However, I think you will find that the method of 'memory' works.

    What we ended up doing are creating our own processing of the Message object to generate a response object.

  • Problems with crash blue screen: seems to be a problem with the updates? Maybe w Java or updates from HP? Vista Ultimate on Hp Pavilion;

    Here are my logs of the events which, in my view, are relevant elements n pieces:

    Computer is old 4 shape: tried MS point-to-point previous system restore
    but nothing helps: tried Antispyware and malware and ran Avast: found Logger virus that had been deleted

    Can turn on the computer but crashes whenever I try to do anything:

    Event 1000
    Application error
    (task category 100)

    Failed application jucheck.exe, version 2.0.2.4, time stamp 0x4bed9a0d, failed module unknown, version 0.0.0.0, time stamp 0x00000000, exception code 0xc0000005, offset 0x7589a57d, process id 0 x 280 error, start the application time 0x01cc6d8f5d03816c.
    ----
    Event 1002

    Category: Dhcp Client

    The lease of the IP address 192.168.1.100 for the network card with network address 001B77C0E361 has been denied by server 0.0.0.0 (the DHCP server sent a DHCPNACK message).
    -----
    Event 2017

    SRV

    The server failed to allocate from the system non-paged pool because the server reached the limit configured for the non paged pool allocations.
    ===

    Event 2004
    Windows Defender

    Windows Defender encountered an error trying to load signatures and will try to return to a verified set of signatures.
    Signatures sought: current
    Error code: 0x8050a001
    Error description: the program cannot find the definition files that detect unwanted software. Check for updates to the definition files and then try again. For more information about installing updates, see Help and Support.
    Loading of signatures: backup
    Signature of loading version: 1.111.1301.0
    Loading engine version: 1.1.7604.0
    -----
    Event ID: 4609

    Category: EventSystem

    Internal system of events from COM + has detected what a bad code back during his treatment.  HRESULT has c 8007043 line 45 of d:\longhorn\com\complus\src\events\tier1\eventsystemobj.cpp.  Contact the Services de Support technique Microsoft to report this error.
    ----
    Event: 10005
    DistributedCOM

    DCOM got error "1068" trying to start the BITS service with arguments "" to start the server:
    {4991D34B-80A1-4291-83B6-3328366B9097}
    Event 4609
    ----
    Category: EventSystem

    Intel (r) PRO/Wireless 3945ABG Network Connection: has determined that the network adapter does not work correctly.

    ----
    Event 7001

    Service control manager event

    The computer browser service depends on the Server service which failed to start because of the following error:
    The dependency service or group was able to start.
    -----

    Event 8193
    System restore

    Unable to create on the volume restore point (process = C:\Program Files (x 86) \Common Files\Microsoft Shared\OFFICE14\Office Setup Controller\Setup.exe files (x 86) \Common Files\Microsoft Shared\OFFICE14\Office Setup Controller\Setup.exe"- Embedding;) Descripton configured = Microsoft Office Home and Student 2010. (HR = 0x8007043c).
    ----

    SuperFetch, computer Microsoft which preloads software in memory in order to reduce their loading time - see Windows Vista IO technologies

    Much disabled the feature-

    http://www.howtogeek.com/HOWTO/Windows-Vista/how-to-disable-SuperFetch-on-Windows-Vista/

    To correct the "not".

    Navigate to the C:\Windows\Prefetch folder

    Click on the first item in the list to select

    Press Ctrl + A to select all

    Press Delete

    Close this window

    8000287B1A3A that does not appear in the error messages-

    With avast, it would be driver question - problem with their known software

    You could try

    Microsoft Security Essentials - freeware

    http://www.Microsoft.com/en-us/security_essentials/default.aspx

    ClamWin freeware

    http://download.CNET.com/ClamWin-antivirus/3000-2239_4-10369483.html

    Malwarebytes freeware

    http://www.Malwarebytes.org/products

Maybe you are looking for

  • How can I register so I can contribute to the problems of the users?

    Looks like I have to create a question before I can record.

  • Satellite Pro A300 stops

    Hello. I've had my laptop A300 - 1 l 4 5 years, product maintenance on this matter on several occasions and I am puzzled. What happens is that it started randomly closing several times a few weeks ago. It was not so boring then because after the 3rd

  • Satellite A500 - 17 X restarts while gaming

    I recently bought a Toshiba Satellite A500 - 17 X to pc world.I also bought a 500 GB external drive (works with power!) & installed a few games on the outside [modern grid & ware2].I turn on the pc (with no battrey inside, only through his power) & s

  • So my T400 might have exhausted all 9 lives...

    A month ago, I tried to fix the lock on my T400; the left side closed automatically once the lid closed. In the middle of disassembly, I forgot which screws to take off. I went home with my screwdriver and eventually remove the screws for the rails o

  • Scanner Lide 200 cannon.

    I have a Canon Lide 200 scanner that digitizes images and text in a PDF file.  I want to be able to transfer the sacnned image / text (PDF file) in my Word documents on my computer.