How to push my application to the foreground after a phone call

Hi all

I develop a fairly simple application similar to a phonebook. It is possible to display the contact details and place a call to him with the help of a push button.

I pass the call in this way:

    public void call(String number) {

        PhoneArguments phoneArgs = new PhoneArguments(PhoneArguments.ARG_CALL,
                number);
        Invoke.invokeApplication(Invoke.APP_TYPE_PHONE, phoneArgs);

    }

It works very well, but at the end of the call of the interface of the telephone remains in the foreground. I can't understand how I can bring my application in the foreground.

My application is supposed to work on different OS from 4.2.

Thanks in advance for your help.

Yes, but nothing too obvious.

the phonelistener runs in the context of the phone application. If you call UiApplication.getUiApplication () you get a reference to the phone, not your own application.

use a global event to connect the event to your application.

Tags: BlackBerry Developers

Similar Questions

  • I'm the sms screen and I want to make my application in the foreground, how

    I'm the sms screen and I want to make my application in the foreground, how

    I tried UIApplication.getApplication.requestForeground ();

    but he has not worked after me a possible solution

    Thanks in advance for any help / suggestion

    the doc of the API is pretty descrptive and the task is not very difficult, you should be able to do it yourself.

    code for a specific problem is usually not code example...

  • How to add more application under the new tab shortcuts when we right click on the desktop.

    How to add more application under the new tab shortcuts when we right click on the desktop.

    Hello

    I suggest you to post your questions in the forums 'Development of the User Interface for Windows Desktop' for better assistance.

    Here is the link: http://social.msdn.microsoft.com/Forums/en-US/windowsuidevelopment/threads

  • Notification when the Application in the foreground changes?

    Is it possible to get a notification when the application in the foreground changes?  For example, if the user launches the browser, can my application be notified?  I couldn't see anything through the global event listener callback.  I know it is possible to query for this application, but is not ideal.

    Jacul is right, you get notifications on your application becomes the application in the foreground (and vice versa) but there is no way to get this information on other applications.

  • How to freeze my application until the dialog box is closed?

    Hi everyone, I wonder how to freeze my application until the dialog box is closed.

    Please look at my code first:

    inputDialog=new InputReadMessageNumberDialog(selectedGroup.getName(),msg,numPost,choices,values);
    UiApplication.getUiApplication().invokeLater(new Runnable()
    {
      public void run()
      {
       inputDialog.show();
       if(inputDialog.doModal()==Dialog.OK){
       System.out.println("FROM: " + inputDialog.getFrom()+" TO:"+inputDialog.getTo());
       }
      }
    });
    

    As I throw the runtime exception, then I tried to do this:

    inputDialog=new InputReadMessageNumberDialog(selectedGroup.getName(),msg,numPost,choices,values);
    UiApplication.getUiApplication().invokeLater(new Runnable()
    {
      public void run()
      {
       inputDialog.show();
    
      }
    });while(true){  synchronized(this){    if(inputDialog.isClosed) break;    else wait(500);  }}if(inputDialog.doModal()==Dialog.OK){
    System.out.println("FROM: " + inputDialog.getFrom()+" TO:"+inputDialog.getTo());
    }
    

    She also throws an exception too. Now I don't know how to solve this problem.

    Any ideas?

    Thank you!

    Steve

    While I have deep religious convictions against the complicity of an author of the modal dialog box,

    I can say that this code seems to work and these dialog box classes are easy to use. If you

    Look at the API these altneratives will be pretty obvious.

    but there are two usages mixed with a be commented (both

    Work as much as I KNOW).

    String [] ch = new String() {"ACCEPT", "REJECT"};
    int [] vx is new int [] {Dialog.YES, Dialog.NO};.
    D = new dialog box dialog (m_tc, ch, vx, vx [0], new Bitmap (1,1));
           
    D = new dialog box dialog box (Dialog.D_YES_NO, m_tc, Dialog.NO, Bitmap (1,1), 0) new;
    F = d.getFont (police);
    d.setFont (f.derive (Font.PLAIN, f.getHeight () - 1));
    int x = d.doModal ();

    This will block your thread until there is something to "xx."

    However, I must reiterate that you evaluate the options before deciding that you need

    to lock all the other options. This is especially true in this environment where things

    might take some time and resources are limited.

    If you want to hang your entire application, no doubt you

    can define a volatile indicator around the doModal call and have other threads check it.

  • How do you put applications on the windows desktop as a shortcut form?

    How do you put applications on the windows desktop as a shortcut form?

    You can not put shortcuts to applications from the store to the desktop. Press the Windows key when it is on the desktop to quickly return to the start page.

  • How to change the color of the LED on incoming phone call

    I want to change the led color and the pattern on incoming phone calls as the BLUE for example form any program as if you activate my application then my application will run background and will change flashing color BLUE by default RED. How can I do that. Explain if possible with the small piece of code.

    don't deliver sleep directly in the earpiece of the phone, using a new thread.
    the opinion given cannot be changed programmatically

  • Hiss in the background of every phone call

    Another question, I found with my Droid - there is a shrill whistle in the background of every phone call, almost as if there is a kettle for tea boiling in the room with whom I speak. He's weak, but noticeable — I just had a conversation with someone who heard on their end as well. It is not a thing of feedback, there is no echo and my phone volume is low. I tried to turn off voice privacy setting, but that did not help. Strangely, I can't hear it when I call something with the automated menu, such as voicemail or my Bank options. Does anyone else know this?

    There should be no kettle... resume and get one that sounds good.

    There is nothing here that will help you in this.  I'm really sorry, you have a phone that doesn't work but just to take it back.   You can also call Verizon and ask them to send you a new... they are doing this, including an envelope to return the old phone with. Then you call fedex and omit the thing for them. It's really simple.   Just so to call Verizon and get a new one.

    It's your only recourse, really.

  • Send the application to the foreground start the system for 5 seconds...

    Hello everyone, I have an application that is run automatically at startup. I need the application stays on foreground for 5 seconds when the system boots. How can I do this? Help, please.

    Thank you...

    If this is resolved can mark you properly.  Help instructions in link above.

    If not, then given your needs, I would go with a comprehensive dialogue screen and a DialogCloseListener, that will kill your application if the answer is not correct.  .

  • How to put an application on the dock icon without the arrow shortcut showing at 07:00

    Whenever I try to place an application icon in the dock icon get a tiny arrow shortcut to as for the 07:00 click the newly created and connected position.

    None of my icons for other applications in the dock has this small arrow on its icon.

    So, how to put an icon on the dock without the shortcut arrow display at the 07:00 position?

    If I understand you correctly, simply drag the application in the dock. No need to create an alias first.

  • Automatically bring an application to the foreground

    Hi guys,.

    I'm struggling with this problem for a long time. Basically I'm looking at the State of the battery and when the battery level drops below certain thresholds, I need to bring my main app window to the foreground and display an alert.

    So far, I have tried to do using the framework of the appeal, but the problem was that as soon as my app is not in the foreground, it cannot send an invocation.

    Recently, I installed Skype for BB10 and I saw a similar feature - the app goes first when someone calls me. Thus, it is certainly possible somehow. Can you give me a clue where to look?

    Very appreciated

    Thank you!

    Preferential partners get preferential treatment, including api is not quite ready for us normal developers.

    You need to wait for applications without a head, available soon, or for them to publish the api for this feature.

  • How to run an application when the cell phone is power on

    I want to run an application when the cell phone is power on. It runs in the background, how so, please give me a code, I don't know, thanks

    It is enough to set project properties in JDE as shown on the attached photo (check below: screenshot.png).

  • How to install our application on the main BB screen icon?

    How can we install/change the list of applications on the main screen of BB?

    Not sure whether your question, but if you want to play the device, you can move the icon to the o to start the icons on the 'Home' screen  Use the Menu button when you have an icon in short.  On my "BOLD" test, I moved downloads so that it always appears on the main screen.

  • How to run my application in the background?

    Hi all

    I designed a UI screen to play a song.

    And on click of a button, I want the opportunity to go to my application in the background. Such as screen not updated, but the song continues to play.

    Thank you

    Mudassir

    tried the method requestBackground to put your application in the background?

  • Bridge remains in the foreground after opening the Photo in Photoshop

    Recently, I found that the bridge remains the foreground application when I used it to open an image in Photoshop (by default).

    By clicking on the Photoshop window does not change things, the bridge remains the active foreground application.

    I only can remedy this situation by sending the bridge toward the dock, then clicking in photoshop.

    Does anyone have any ideas why this could happen?

    Thank you

    How to find help!

    Except that are Photoshop and OS fully updated and that of the usual routines of troubleshooting (trashing prefs in keeping control-alt-shift/ctrl-alt-shift during the application startup, deactivation of 3rd-party plug-ins, system maintenance, validation of fonts, etc.) that you have made so far?

Maybe you are looking for

  • iCloud schedule sync on iPhone

    I noticed that my iCloud calendar stopped syncing on the iPhone 6. So what I've done so far: restart of the iPhone - no success double checked that if iCloud account is correct - it is Check if other services are working - contacts sync OK, e-mail sy

  • connect laptop to TV with HDMI

    I have a laptop HP Pavilion g7Windows 7 Home Premium 64-bit Service Pack 1Intel (R) Core (TM) i5 - 2450 M CPU @ 2.50 GHzGraphics unit 1:AMD Radeon HD series 7400MGraphics unit 2:Intel(r) HD Graphics 3000All the pilot has been updated weekenden -.My p

  • an audio monitor off the 70 d eos does

    I'm considerng the EOS 70 d for some photo work and video. Can an audio monitor off the 70 d EOS while video recording? Thank you. chuckcox

  • Auto-install HPLIP: it works?

    I just bought a HP printer. Then I was installing HPLIP for 2.5 days. more than expected. (Needless to say that I curse me HP the last day). Now, I am pleased to succeed, but I also think it was a good chance. I think that this story deserves to be s

  • Password high tower not accepted by windows

    HP Pavilion dv6 notebook PC support - 6013cl.  Top of the Tower does not not my password to run windows. I have a scan disk or floopy.  Help, please.