by pushing the overall push message on the screen

Hello

I use push notification to display push messages, it works very well.

But my problem is that my popup message arrives while I open the app, but I want it appears on the screen without having to open the application, and after clicking ok it must open the app.

any body can help me.

Thank you.

Hello

I use following code to run the ap on the click event of globle push message popup. but I'm not able to run any budy find what wrong with this code.

UI UiEngine is Ui.getUiEngine ();.
Screen = new (Dialog.D_OK, SplashScreen_Land.dealTitle1 dialog box,
Dialog.OK, Bitmap.getPredefinedBitmap (Bitmap.EXCLAMATION), Manager.VERTICAL_SCROLL);
final dialogue screen = new (Dialog.D_YES_NO, SplashScreen_Land.dealTitle1 dialog box,
Dialog.OK, Bitmap.getPredefinedBitmap (Bitmap.EXCLAMATION), Manager.VERTICAL_SCROLL);
screen.setDialogClosedListener (new DialogClosedListener()
{

' Public Sub dialogClosed (final dialog box, final choice dialog box int)
{
If (screen.getSelectedValue () is Dialog.YES)
{
Boolean isAppOpen = false;
                            
int modHandle = CodeModuleManager.getModuleHandle ("Sasta");

ApplicationDescriptor apDes [] = CodeModuleManager.getApplicationDescriptors (modHandle);
                            
If (apDes! = null)
{
Dialog.Alert ("Hi not null");
ApplicationDescriptor [foreground_apps] is ApplicationManager.getApplicationManager () .getVisibleApplications ();.
                            
If (foreground_apps! = null)
{
for (int i = 0; i)<>
{
If (foreground_apps [i]. Equals(apDes[0]))
{
                            
isAppOpen = true;
                            
ID_processus int is ApplicationManager.getApplicationManager (.getProcessId(apDes[0]));.
int fgprocess_id is ApplicationManager.getApplicationManager () .getForegroundProcessId ();.
                                                                                                               
if(Process_ID == fgprocess_id)
{/ / Dialog.alert ("hiforground");}
This means that your application has opened and it is in the foreground
UiApplication.getUiApplication () .pushScreen (new SplashScreen_Land());
                            
}
on the other
{//Dialog.alert ("Hi, background");
This means that your application is open, but it's the bottom
Ask now in the foreground
AppManager ApplicationManager = ApplicationManager.getApplicationManager ();
appManager.requestForeground (process_id);
                                                                  
UiApplication.getUiApplication () .pushScreen (new SplashScreen_Land());
}
                            
}
                            
}
                            
}
                            
if(!isAppOpen)
{
                            
This means that the app is not open, you need to open the application.
try {//Dialog.alert ("Hi new open");
ApplicationManager.getApplicationManager (.runApplication(apDes[0],true));
UiApplication.getUiApplication () .pushScreen (new SplashScreen_Land());
} catch (ApplicationManagerException e) {}
Generative TODO catch block
e.printStackTrace ();
}
                                                                                                       
}
                            
                            
                            
}
UiApplication.getUiApplication () .pushScreen (new SplashScreen_Land());
Alert.startVibrate (2000);
do something that takes a long time
}
on the other
{
Screen.Close ();
}

}
});
            
            
          
ui.pushGlobalScreen (screen, 1, UiEngine.GLOBAL_MODAL);
PersistentStorage_Sasta_High.setTotalMsgCountDec ();
PushController_Sasta_High.updateIndicator (PersistentStorage_Sasta_High.getTotalMsgCount ());

Tags: BlackBerry Developers

Similar Questions

  • Get the content of the push message?

    Try to get the content of the push message to display in the hub.

    In the example, it is on push.fileExtension ();

    I also had push.pushTime () to work, but when I try to push.content () it will fail to compile. Anyone know what I should be using here?

    Just used

    pushPayload.data)

    directly.

  • is authorized to build the screen over the events, but push over the event

    Hi all, I know it's a lame question, but I get an error message and now then guess myself

    the way I coded this app. I usually build screens in a non event, calling thread

    Add when adding fields and all the UI stuff, but once it is done, then I put the pushScreen

    in the case of threading

    is it ok?

    Well, it is certainly not a "lame".  I guess you can add fields to a form on a thread of non-event so the screen is not "displayed" (do not push in the battery of the screen still), otherwise, you will need to run that add inside invokeLater or while now the lock of the event.

    Say, if you pushScreen (MyCustomBackgroundCreatedScreen()) new, some of the screen building code can be executed before the screen is actually pushed and the rest will be executed after that.  The "suite" party (whose actual start is quite random) will throw IllegalStateException unless you put your add code (...) within invokeLater or synchronize the lock of the event.

    I did it myself - parses an XML file in a separate Thread and by creating and adding fields one by one to a display manager - and I distinctly remember having to do it the way I described.

    If it's OK or not depends on your design.  If you have only a few fields to add, that's fine, I guess.  Each addition will cause the entire screen to rearrange, which is a small performance decrease. However, unless you have a few fields of thousands (I remember this post here in the forum), you should not notice a significant slowdown.

  • 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!

  • Videos YouTube are pushed off the screen to the right by an ad, how to fix?

    When I click on a link to a youtube video, the video appears for a few seconds in the correct location of the site, but then an ad square appears on the side left forcing the video screen to be pushed all the way to the right and off the screen. The video will be displayed on the right side of the column of the videos ' read popular. " Sometimes, a scroll bar appears at the bottom of the window, because the page is now much broader, which will allow me to scroll right to see the video, however, sometimes the scroll bar does not appear and I see only the left edge of the video.

    I reinstalled Adobe® Flash® Player, which did not help and I also have the latest version of Firefox. This began to happen quite recently... maybe a week, there is or not.

    The reset Firefox feature can solve a lot of problems in restaurant Firefox to its factory default condition while saving your vital information.
    Note: This will make you lose all the Extensions, open Web sites and preferences.

    To reset Firefox, perform the following steps:

    1. Go to Firefox > help > troubleshooting information.
    2. Click on the button 'Reset Firefox'.
    3. Firefox will close and reset. After Firefox is finished, it will display a window with the imported information. Click Finish.
    4. Firefox opens with all the default settings applied.

    Information can be found in the article Firefox Refresh - reset the settings and Add-ons .

    This solve your problems? Please report to us!

  • I accidentally hit some keys on the keyboard and firfox is now lost at the top of the screen, I do not see the menu items if I push the slider to the top of some of the best appear on my screen, but not all please can you help me?

    I accidentally hit some keys on my keyboard. I don't know what keys hit my hand, but it caused Firefox to go beyond my screen visible at the top. The basis of Firefox is always correct and views correctly. The Chief is absent, but I can't access my menus such as bookmarks etc Articles. The screen drops down, if I push my cursor upwards, but not enough to show menu items. Can you please help?

    Press F11 to exit full-screen.

  • I upgraded to 5.0. The image is now my full screen. To see that the tabs I have open, I have to push my cursor up against the top edge of the screen, where it will appear in the display.

    In the improved version, the image of any page Web I'm on fills the entire screen. There is no info either the top of the screen or at the bottom of the screen, just the image of this Web page. If I push the cursor upward against the top of the image, then two nav bars pop open, one with a list of open tabs or windows and the other with a place to type the URL from another site, as well as on the right of the icons for Greasemonkey, etc.. Pushing against the background of the image icon does not produce anything.

    F11 activates / deactivates the full-screen mode - turn off.

  • My battery is swollen and pushing on the screen

    So I'm an avid user of Apple; I rave about how Apple products are all my friends all the time, because most of the time they are (this includes my IMac, Mac Book, IPad, and IPod).

    But in recent weeks, my IPhone 5 c has deteriorated. The battery seems to be swollen and pushing on the screen, causing my phone does not work at all except on the charge.

    Without warranty, what can I do? And how I can justify getting another IPhone?

    Take it to an Apple Store

  • Is there a button to push that initiates the screen saver without delay to launch?

    Is there a button to push that initiates the screen saver without delay to launch? I want to apply the screasaver with out having to wait the time it takes so that it starts on its own. Looking to see if there is a way to do this?

    Is there a button to push that initiates the screen saver without delay to launch? I want to apply the screasaver with out having to wait the time it takes so that it starts on its own. Looking to see if there is a way to do this?

    see if you can use this tutorial...
    To create an icon to launch the screensaver.

    http://www.howtogeek.com/HOWTO/Windows-Vista/create-icons-to-start-the-screensaver-on-Windows-Vista/

    PS adding...

    An easy way, scroll down for:

    Download of shortcut icons (Vista only). The author has created a "ready-made shortcuts.

    I have not tried. I can't guarantee it.* *.

  • 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()...

  • Push the screen Modal issues

    Hey thanks to pass along,

    I was sitting on my bed, when it hit me, is it possible to push a screen outside of the application.

    So I discovered on the global screens and pushing them. However. Suppose I want to dismiss the screen right now, but I wish instead of opening another application and return to it later. Is it possible to pushGlobalScreen, or I should do otherwise. If other, then suggestions?

    None

  • Push a PasswordpopupScreen of the screen class

    Is it possible to grow a passwordPopUp screen in the form of class.
    The thing is that I have the option buttons in the screen class and when the user selects one, I want to display a passwordpopupscreen
    but I can not use the pushScreen(), it marks error.
    I tried to find like a dialog box where the user can insert text or smt, but I can't find.
    Any ideas?

    Thank you!

    You can give it a reference to the screen or just do: UiApplication.getUiApplication () .pushScreen (screen)

  • Maximum number of the screen to be pushing in a UiApplication without pop anyscreen


    Hello!

    He thinks that max is 16 screens OR amount of peripheral SRAM memory

    City of How-to - manage UI interactions:

    When you manage your application screens in the user interface (UI) stack, not mismatch the pushScreen() and the popScreen(). When the smartphone user BlackBerry finishes interacting with screens, the screens of pop the battery UI; Otherwise, the battery screen continues to grow until the BlackBerry smartphone is short of memory. You may use several modal screens at the same time, because each screen uses a threadand you shouldn't burst on screen only once. If you jump a screen too many times, the keyboard and the BlackBerry smartphone command/wheel ball can become numb.

    So its all about max son number and device memory for jvm.

    City of -of TooManyThreadsError:

    A single application can create up to 16 sons. The total number of threads that can exist on a BlackBerry smartphone from all applications is 128. Therefore, if an application has already created 16 sons, the 17th attempt fails and a TooManyThreadsError exception is thrown. Similarly, if there are 128 threads already created on the BlackBerry device and an application attempts to create another thread, an TooManyThreadsError exception is thrown.

  • How to set the new display root (pop all the screens and screen to push a single root)

    All,

    in my application, the user can move from one screen to the other and back. but as soon as the user has a special screen (such as the password reset screen), should not be able to come back.

    How can I prevent the user to go back? on the iPhone, such a thing is called 'new set root screen' which leads all permeable screens are exploded and that the current screen is on the stack.

    How to proceed on blackberry?

    Thank you

    You can use getActiveScreen to retrieve the screen current and anti-pop who undisplay.

    You can do it in a loop until the last screen is reached.

    not a very good style, but quite possible.

  • What is the best method to refresh the content of the screen (possibly push refresh)?

    We use Coldfusion 9.0, and our question is simple.  We were asked to do some screens display to set up a schedule of events.  So, we created a Publisher backend HTML fast and made the client refresh every 30 seconds with meta refresh that displays the screen that is published.  Wonderful œuvres.  A change is made, the screens to be quickly updated in 30 seconds or less.

    This weekend we had an update put the server to this plate up a larger problem.  Update temporarily stop the Web server and which caused the display to the standard site is not reachable (diagnose connection, etc.).  At this time where the discount is killed, display screens are dead in the water until someone knocks f - 5.  Makes us think that whenever we have any operation of blip, the screens will have to be touched.  It is a small project, we wanted something simple and we got it.  I'm afraid that now we just created a situation of surveillance techsupport involuntarily.

    Which brings me to the real issue.  What is the best practice to do?  After doing a google search, it seems to be all sorts of directions to go.  I don't want a complex solution because the decision not to outsource was based on the speed of a project, it was.  I'm hoping to get some tips on how to make a simple pressure of the HTML to a screen in a Coldfusion environment.

    Thanks in advance for any help offered.

    Thank you very much for your answers.  I think we're going to depend on the network is stable and organize updates on the server at the time we can monitor screens.  After researching the issue, we found that it is a little more deeper than at first glance.  We found which is a good lead if we go to another direction, or someone else has a similar problem: http://en.wikipedia.org/wiki/Comet _ (programming)

Maybe you are looking for

  • FCPX - export of timeline issues

    Hello I can't export my calendar from FCPX. My export destinations are grayed out for this project and the error message - 'a missing titles or offline, effect or the generators.' appears. He said - "this item can be shared while it's still media ref

  • Upgrade memory M50 satellite problems

    Hello I just tried to add 516 MB in my expansion memory slot, but the extra memory has not been recognized. Notepad starts fine, but only shows 465 MB of available space. I tried to change the original and new memory cards, and either card in a slot

  • E3000 USB key permissions

    Long story short, I don't have the permission to change anything on my USB. Everything goes well when it is connected directly to my laptop or any other computer, my account of the computer laptop is the owner and all share and security permissions a

  • Blue screen Code: 1000007e - unable to start

    original title: BSOD on Vista, can use in safe mode but cannot use normally When turning on my computer is loading on the screen of the user, it will also load profiles but shortly after to go on a profile, it will be the BSOD.It starts in safe mode,

  • that means (role: answering machine and role: initiator)?

    Dear all, I have a few questions about ASA 5500 error? a few times I saw the role: answering machine and a few times I've seen role: initiator what it means? and what is the problem? HQ # sh crypto isakmp his HIS active: 3Generate a new key SA: 0 (a