Push the message overall form of a substantive uiapplication

I have a uiapplication, which has a user interface with the main menu, mainscreens and other things, but it works also on startup, in order to keep listening for updates. I made a point of entry for it, so I can push the GUI when I want to.

And I want to inform the user, with a simple dialog screen, when theres updates day and asks if he wants to start the application (gui).

The problem is: I want the dialogue on the home screen, like a simple notice, but I couldn't, because I try pushGlobal the uiapplication on background, and even if I had the Ui.getUiEngine (), it returns the uiengine uiapplication and then it only shows if I enterEventDispatcher(), with a white background.

I can't extend ask just to show the dialog boxes, because my application's gui.

I think I may have need to create two applications, an Application that extend, to manage the listener in the background and to be able to pushglobal dialogues on the home screen and an another UiApplication which extend, can be described as the first.

Is there another approach? Is it possible to dialog boxes of pushGlobal on the home screen of a uiapplication?

I searched a lot but I have not found someone who wanted to do what I need. In fact I think I'm on the wrong track, so I hope someone will have the answer to my problem.

So, as I thought, the solution is quite simple.

I created another class that extends the Application and when I want to start the listener in the background, instead of instantiating my UiApplication I just instantiate this class, which looks like this:

SerializableAttribute public class BackgroundListener extends Application {}

Public Sub startBackgroundThread()
{
New Thread() {}
public void run() {}
While (true) {}
try {}
Thread.Sleep (180000);
} catch (InterruptedException e) {}
e.printStackTrace ();
}

do my logic

synchronized (getEventLock()) {}

with this UiEngine, I am able to pushGlobal dialog boxes

When I want to with the application in the background

UI UiEngine is Ui.getUiEngine ();.
Screen = new dialog box (Dialog.D_OK, "You have updates!",
Dialog.OK, Bitmap
.getPredefinedBitmap (Bitmap.EXCLAMATION),
Manager.VERTICAL_SCROLL);
ui.pushGlobalScreen (screen, 1, UiEngine.GLOBAL_QUEUE);
}
}
}
}. start();
}
}

And my main method ends like this:

Public Shared Sub main (String [] args) {}

{If (args.length > 0 & {args [0] .equals ("gui")})}
MyUiApp app = new MyUiApp();
app.showGui ();
app.enterEventDispatcher ();
} else {}
BackgroundListener app = new BackgroundListener();
app.startBackgroundThread ();
app.enterEventDispatcher ();
            
}
}

Thanks for listening! Laughing out loud

Tags: BlackBerry Developers

Similar Questions

  • fail to push the message - error on pushSDK property

    Hi all, I'm trying to push a message to my BB Simulator. I use MDS, BB 9550 Simulator and running in enterprise mode. For my system, I use Windows Server 2003, JDK 1.6.0_18 and Oracle. I added the new application through BB push Service SDK - portal to debug, and it works. But when I try to push the message in my BB 9550 simulator, it gives me an error message:... net.rim.pushsdk.commons.PushSDKException: IOException taken sending message to the address URL of PPG: http://192.168.10.113: 81/pap... I think that there is a misconfiguration on my pushSDK or something else, properties which cause the Debug Portal could not connect to http://192.168.10.113: 81/pap. What I want to know: 1. Port of PAP: where should I write these port information in my config MDS? 2. How do I know if my PAP service work? 3. somebody help me? Thank you. Best regards, Novan Ananda

    I think I know why I got this error... This issue is cancelled.

  • The free push service. Push essentials can also push the message via BIS

    I get the news which says RIM has published a free push api for Developer: push the essential elements.

    I hope to get that the developer can use this message push via BIS or can only use BES?

    When I fill the register form, I find there are a lot of questions such as:

    Source for shoot - this issue IP address ask my server IP?

    Just use your external IP address. The best way to find this is http://www.whatismyip.com

  • Push the message undeliverable to the live Device - Simulator (Eclipse) works

    My app works great on different simulators, receive messages from my server (all on localhost). However, I can't make it work when I plug in my phone via USB. I select my phone in the list of Blackberry devices and then installs the application, starts the listener in the background and I can open the user interface. Messages are delivered to the MDS, but they then fail with the message:

    PushServlet: FAILURE - cannot map device XXXXX a host to the PDAP.

    I tried to add my device Simulator "rimpublic.property" section, but that didn't work either: I think that it comes to queue messages.

    Any advice?

    Thank you

    Karl

    I found the answer. It is the combination of two things:

    (1) I had to use 'ApplicationManager.getApplicationManager () .inStartup ()' to delay my code from running until the aircraft was ready.

    (2) I tried to debug using my direct phone with an SDM server on my laptop (localhost). I never had this work, but once I opted for the reality of the BES server, the debugger kicks and everything worked as expected.

    Karl

  • push the two overall display of the background thread

    Hello

    I am pushing GLOBAL SCREEN of my background thread using synchronized (Application.getEventLock ()).

    Now, I want to push another SCREEN on this GLOBAL SCREEN.

    But the new SCREEN is not visible on the GLOBAL SCREEN.

    Please help me

    When you push your overall screen make sure that you also provide a priority:

    pushGlobalScreen (aScreen, PRIO_as_INT, UiEngine.GLOBAL_SHOW_LOWER);

    where 0 is the most high prio (always on top)... I use it to mix screens above the other... Screens with the same priirity will display above the other - the last pushed to win...

  • Can I get the messages more former return will only until March?

    Original title: Outlook express
    -----

    Can u put more messages on outlook express than mine only go back to March?

    It depends on whether or not you've lost them.  See www.oehelp.com/OETips.aspx#4 and see point 2 on this page.  If messages have simply disappeared, and then check the store of Recycle bin and message to bak files, which are files dbx you can restore backups.  Otherwise, you can find them with my DBXpress program (www.oehelp.com/DBXpress/).  If you have older dbx files, you can import them manually as described here: www.oehelp.com/backup.aspx#imp1

    Steve

  • iPhone cuts read the mail when you open the mail application and pushing new messages

    Everytime I open the mail application on my iPhone 6 (9.2.1) all my mail previously reading disappears as soon as it pushes new messages.

    I found no adjustment that deals already read the mail on my iphone.

    Any ideas? And no it's not because I'm opening mail on the server's desktop in outlook that I rarely use more except as archive. I usually open mail on my iPhone first.

    Please confirm that you are in the mailbox of all mailboxes and not the mailbox unread. To do this, up on the back of boxes button at the letters on the top.

  • Consuming APIs push read and deliver the message through BBM surveys

    Hi all

    This is the problem, I really hope that you can give me help or at least a hint guys...

    I have an online store, and I have a server to run my App chatbot that I use chatbot handling some customer service taks and act as store customer assistant helps when they like to ask or order stuff from my store.

    currently my bot run using api telegram handling in and outbound message, how ever many of my clients use BBM as their main email applications.

    I want to know, if there is a way I can use push api to act as bot api telegram, im sory if I miss understand how push api works, because that I really really new in blackberry application development.

    I understand that BBM is like PIN messaging function, so first idea who come in my head is to buy a new phone, BlackBerry or android phone, then make this phone as a bot with the creation of some applications to manage incoming BBM messages inside and send back throug push API, but I think that the idea is really not effective or worse probably misslead.

    really appreciate all the help you guys

    Cherrsss...

    The Service of BlackBerry Push to push messages to BBM.  You can push messages to your own application that runs on the device.

    BBM has no API to programmatically read incoming messages.  You can programmatically create working drafts of BBM messages to send, but there is user interaction required to send the message.

    You can watch to BBM circuits.  You can use a channel of BBM to send messages to your subscribers and they could send messages to you.  There is a web interface for BBM channels, but also a plugin of Hootsuite.  It does not support the local app that you describe, but can provide what you need.

  • No Muse - Contact form - no copy of the message to the sender?

    Usually, the sender of the message receives a copy of his own form-content. But I can't find this feature in Muse. This function is available without recoding scripts .php?

    Hi Karsten.

    Till now Muse have not this option by default, so you won't be able to do this in Muse.

    However, you are right if you can recode .php scripts for form after exporting HTML from Muse, you can achieve your goal.

    Thank you

    Prabhakar Kumar

  • I transferred X 1 pro overall to another PC, but opening I get the message "serial number you provided is valid but calling it a product was not found on this computer", the drop-down list of products responding to the does not contain the ProX1 op

    I transferred X 1 pro overall to another PC, but opening I get the message "serial number you provided is valid but calling it a product was not found on this computer", the drop-down list of products responding to the does not contain the option ProX1.

    Hi Carl,

    It seems that you have installed Acrobat XI pro as an upgrade and an upgrade you will need a serial number for a product older Acrobat X, etc. 9:

    See, error: "this serial number is not for a product calling it" | Adobe Creative Suite

    Also, I checked with your Adobe ID on the forums and I can only locate XI of Acrobat pro upgrade recorded, please check if you have registered an earlier version of Acrobat on some another email to get this serial number.

    Let us know if that helps.

    Kind regards

    Sandrine Bani

  • I have problems with the form widget. When I created my forms, I need to leave out the line, one email because my client does not want the message line and two because those who have tried to fill the online form cannot submit because that box "email".

    I have problems with the form widget. When I created my forms, I need to leave out the line, one email because my client does not want the message line and two because those who have tried to fill the online form cannot submit because the 'email' box keep rejecting their email address valid. And I just tried to remove the line in my form and it does not allow me to delete or to mark it as not necessary either.

    Currently, there is no way around the field email forms of the Muse. Another option is to have a look at Jotforms or another third-party provider of shape that Muse has widgets for.

  • How can I remove the mailbox Muse on a simple contact form but still have a static email address in the code of the message will send to?

    In Muse, I use a simple contact form, but I have to be able to delete the "electronic mail" box and apply a static address in the code that would send the message to. I have static e-mail accounts do, I don't just have to be displayed in the Inbox. How can I change the php code in Dreamweaver to delete the mailbox, but have always contain the static email sends the message of? Basically, I don't need the email to visually display on my site to all that the user has no need to enter the email address.

    Hello

    You cannot remove field by Muse web form email address. You can try to incorporate forms of third party like jotform.

  • How to stop the message "this file contains form fields to fill out" to appear?

    Hello

    I have created a PDF file, but seen in Acrobat Reader displays a message at the top of the screen "this file contains form fields to fill live... »

    How can I stop this message from appearing automatically?

    PS, The original PDF has no form fields.

    If the document has a lot of buttons, this is probably the reason. If you have Acrobat, you can apply the security of the password and set restrictions so that filling form is not allowed. This will prevent the message appears.

  • Pass the value of form field into the message of confirmation box

    Hello

    I created a confirmation box that fires when a user presses a button on the form.

    Under "URL redirection" button, I have the following:

    JavaScript:confirmDelete('Please_Confirm_Reduction_of_Call_Off_Pick_requirement.','REDUCE_CALL_OFF');

    This in turn calls a PLSQL process that perform a database update for a form called P4_PICK_LINE text field

    Is that I would have to include the P4_PICK_LINE in the confirmation message, i.e. "Please confirm reduction of call off sampling requirement pick123' where pick123 is the value of P4_PICK_LINE

    I know that I can pass in variables like session & APP_USER. etc in the message of confirmation, but not sure about text form element values.

    I use the apex 4.0.0.00.46 on windows version 7.

    Any help would be great


    Thank you
    Chris

    Edited by: Cashy on 05-Sep-2012 03:44
    javascript:confirmDelete('Please confirm reduction of call off pick requirement ' + $v('P4_PICK_LINE'),'REDUCE_CALL_OFF');
    

    A complete list of javascript API functions can be found here: http://docs.oracle.com/cd/E10513_01/doc/apirefs.310/e12855/javascript_api.htm

    You may not use session variables unless your variables are sent to the server. As long as you don't offer you will rely on javascript ;)

    Concerning

    Nico

  • The message that is generated in forms?

    When the implementation of a FORM in Adobe Muse, y at - there no way to have a 'Thank you for your e-mail' message pop up once someone hits send on your site?

    Of course, it is possible!

    Mark the hole, Contact form - go to the 'States' bar - and now you can see the different options! :))

    Click on "Submit Sucess" and change the text next to the Submit button.

Maybe you are looking for

  • Image on both monitors synchronization script

    So I have two monitors and several dual screen wallpapers I want to be able to scroll. I have an Applescript script that I got from these forums that someone wrote for this purpose, but I get an error that I can't solve everything. The idea is that t

  • Loud noise clicking noise when you try to play a DVD

    HP Pavilion d4995t desktop PC with High Definition Realteck Audio Ultimate.  Vista Premium o/s.  I play my sound through my HDMI cable to the speakers in my monitor. When I try to play a DVD in the DVD player, I get a loud clicking with no sound from

  • check the type VI for call by reference node

    Hi Ppl, I call a set of VI dynamically using call-by-reference node. And I have a type specifier linked to a component of a particular type connector. But at the time where the VI prototypes do not math I get the error from the open VI reference node

  • Tunnneling and ISATAP adapter Teredo does not (ERROR 10)

    I use a desktop computer HP-Pavilion, BN399AV-ABA p635z with Melody Win 7 Home Premium (x 64) Service Pack 1 (build 7601) my PC to the top of the program States that will not start my tunneling adapter. My driver update program indicates that the dri

  • TV not displayed as a multimedia device

    I am trying videos from my PC to my TV but my PC does not detect my TV. TV is plugged into the network and can connect to the internet, but it does not show as a device on WMP. I use windows 7. The manual for TV mentions that Windows Media Player 11