Draw a picture (above VoiceApp screen)

Hi all.

I have already started/finished two threads that led me to the creation of it.

That's my goal:
(1) application intercepts a callConnected() event.

(2) application displays an image of the callee (i.e.. He shoots the VoiceApp).

(3) phone app (VoiceApp) continues its normal activities (its menu and the soft keys are active)

There are two approaches, I did research to date:

(A) in use of callConnected():

//  fScreenWithOnlyPicture is a popup screen with a picture.Ui.getUiEngine().pushGlobalScreen(fScreenWithOnlyPicture, 4, UiEngine.GLOBAL_SHOW_LOWER);

(B) in the course of use of callConnected():

application.invokeLater(new Runnable(){  public void run(){    Screen screenName = UiApplication.getUiApplication().getActiveScreen();    System.out.println(screenName.toString());    if (screenName.toString().indexOf("net.rim.device.apps.internal.phone.ActivePhoneScreen") != -1) // draw only in VoiceApp    {      //Perform screen changes here.      // for simplicity sake, I'll just draw a red rectangle       Graphics g = screenName.getGraphics();       g.setColor(Color.RED);      g.fillRect(0, 96, Display.getWidth(), 92);       //Calling invalidate() on your screen forces the paint       //method to be called.                         screenName.updateDisplay();      //screenName.doPaint();      //screenName.invalidate();     } }}, 10, true); // true -> repeat

Solution A) has a disadvantage that the fScreenWithOnlyPicture becomes active screen and the menu (to display when the user clicks the MENU button) is not the VoiceApp menu, but (of course) the menu of fScreenWithOnlyPicture.

No idea how to get around this problem?

Solution B) presents a disadvantage that the cartoon image is not 'fix' to the VoiceApp screen but just paint over it. So when the user clicks on the button MENU, the menu of the VoiceApp but the VoiceApp itself (currently behind the menu) is redrawn without image (or in this simple test a red rectangle).

Does anyone have a new idea? or maybe a comment on these two approaches?

Thank you all for your help so far.

Hello!

You cannot push anything on top of the incoming call screen or the blocked screen. You will get a SecurityException exception when you try to do... But you can also tap on a screen high screen in call... Of course, on the emulator, you won't be hard to do.

Best regards!

Isabelle

Tags: BlackBerry Developers

Similar Questions

  • Central LEDs above the screen.

    Madam, Sir, today I noticed a red light, I believe that a led is mounted under the location of the listener. Looking closely, there are two LEDs above the screen well. I found nothing of talking over the internet.

    What is?

    These are sensors for the phone, no LED - they can look red if the light hits and consulted at the right angle. I'm not sure the g - but other phones have a proximity sensor that turns off the screen in pocket or against the head, ambient light sensor which controls the brightness. The X also has an infrared transmitter and a receiver.

  • OS 9.1 wallpaper resizing descended a picture to fit screen...

    IPhone OS 9.1 6, wallpaper resizing descended not picture to fit screen...

    Try this fix: Tip: it's a way to resize the images for wallpaper on Iphone

  • use pictures as a screen saver will not let me

    Tring to use pictures as a screen saver

    Here's how:

    http://Windows.Microsoft.com/en-NZ/Windows-Vista/use-pictures-as-your-screen-saver

  • I am very new to PS obtained only 3 days ago, I put a picture in full screen and now all the small icons on the left side are not there, I tried several thin g\\

    Hi, I put a picture in full screen and all the small icons on the left side have disappeared and I can't understand how the back there at - it a button reset or something I've missed? Please help me - I'd really like to understand this.

    Thanks in advance

    Yes.

    Pressing the Tab key usually strives to restore the panels.  F cycles through the modes of the screen.

    If this fails, click on the workspace name in the upper right. Essentials - for example. A drop down menu opens. Select "Reset Essentials".

    Reset works when you make a mess of the space working wonders and want everything back in place.

    Gene

  • I installed a trial of Illustrator from Adobe on my macbook pro. I want to draw a picture using the custom trace button but can not. Does anyone have any ideas how I could track custom?

    I installed a trial of Illustrator from Adobe on my macbook pro. This is the release of 2014 of the adobe Illustrator. I want to draw a picture using the custom trace button.

    I start a new document. Then I place my scanned pencil/color pencil, drawing, in the document. I tried to scan and then placing it as jpeg, bitmap and a tiff file. I tried scanning and place then, in color and in black and white. The scan mode that I use is flat. Adobe Illustrator allows me to select the default button and one of the eleven preset buttons (e.g. photo high fidelity), but cannot me click on the record button custom. The custom trace button is gray while all other buttons are white.

    Does anyone have any ideas how I could track custom?

    Just it trace, and then change the options later. The follow-up is 'live', you can press the buttons and see what happens.

    See also the manual.

  • How to put a picture of green screen on a background?

    How to put a picture of green screen on a background?

    Hi MobentrRdr,

    This page includes links to a lot of tutorials like this: http://feedback.photoshop.com/photoshop_family/topics/removing_background_from_image?page= 1

    Hope this helps,

    Concerning

  • I need to take pictures off my screen saver I apparently didn't save them in my photos folder. I want to place copies in my pictures folder.

    Eve-transfer screen of pictures of the screensaver at the image file.

    Hello Sloboat,

    Thank you for visiting the Microsoft answers community.

    Let me see if I understand you correctly. You have images that you use for your screen saver that you want to make copies?

    Where are the photos?

    -Right-click Office
    -Click on properties
    -Click on the screen saver tab

    Given that you already use my photos Screesaver

    -Click settings
    -Use the images in the folder: what is the location that you have modified that to?

    Once you locate the location of the images:

    -Navigate to this location
    -Select the images
    -Make a right click copy
    -Navigate to your folder of images
    -Make a right click Paste

    Hope this helps Chris.H
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to display a statusfield above current screen?

    I set the Blackberry 4.30 component package.

    I want to show a status message in a corner of the screen that appears and disappears a little more late without impeding the screen displayed to accept user input. It must "hovering" over the current screen, blocked views of the underlying area but otherwise not change underlying the screen layout. The user should always be able to interact with the underlying screen-

    I managed to set up a screen that inserts a textfield and removes it again after a while, but that textfield is inserted between fields already there, and therefore changes the screen layout.

    The status of the API screen isn't good because it accepts user input, fly in the screen below.

    Is there a better way to do it?

    Use the method of painting own screens for it. If you display a new screen your original will lose focus.
    You can replace the paint, call super and draw what you want on your screen.

  • BlackBerry Smartphones can have a cute picture for a screen saver?

    Is the curve has an option to have a screensaver?  Now he's just dark after a minute or two.

    There is not a screensaver for blackberry option. You can set the image to the background of the home screen well. You can select a picture on your BlackBerry, press your menu button and choose set as home screen Image page.

  • Pictures of lock screen disappeared

    I can't find the pictures that came with the computer to use as the lock screen images. I used them when I got my laptop (about 7 months ago), but then began using personal photos. Now, I want to use again, but cannot find them.

    I can't find the pictures that came with the computer to use as the lock screen images. I used them when I got my laptop (about 7 months ago), but then began using personal photos. Now, I want to use again, but cannot find them.

    Hello

    The default lock screen images are in the following folder.

    C:\Windows\Web\Screen

    Concerning

  • Struggling to make the picture fill the screen

    Hi, im new on Adobe Dreamweaver cs5 and learning by trial and error via 'google' and 'youtube' so apologies if my question may seem too obvious.

    Im trying to build a Web site, but who struggle to make a picture to fill the width of the page / post. The image is positioned as a banner directly below the navigation toolbar.

    I want to get an effect similar to this: Jaywing

    Thanks in advance, really appreciate your time and your help (I've highlighted the section image in RED).

    Please see below for my progress so far...

    HTML CCS

    <! DOCTYPE HTML >

    < html >

    < head >

    < link href = "css/styles.css" rel = "stylesheet" type = "text/css" media = "screen" > "

    < link href = "css/print.css" rel = "stylesheet" type = "text/css" media = "print" > "

    < meta http-equiv = "content-type" content = text/html"; charset = FIU-8 "/ >"

    < meta http-equiv = "content-type" content = "hidden" / >

    < name meta = "robots" content = "INDEX, FOLLOW" / >

    < name meta = "keywords" content = "Enter the words" / >

    < name meta = "description" content = "Paragraph of the text to be assigned in the example search engine under the title on Google, which is developing products innovative solution services [...]" / >

    < title > Web site: Daniel J Ng product development services-www.xxxxxxxxx.com < /title >

    < / head >

    < body >

    < div id = 'company_logo' > < a href = "index.html" > < img src = "Images/logo/Innovative solution in WHT.png" width = "auto" height = "30" / > < / a > ""

    < / div >

    < div id = "top_navigation_menu" >

    < ul >

    < li > < a href = "index.html" > home < /a > < /li >

    < li > < a href = "update.html" > update < /a > < /li >

    < li > < a href = "approach.html" > approach < /a > < /li > ""

    < li > < a href = "clients.html" > customers < /a > < /li > ""

    < li > < a href = "portfolio.html" > portfolio < /a > < /li > ""

    < li > < a href = "about.html" > on < /a > < /li >

    < li > < a href = "contact.html" > Contact < /a > < /li > ""

    " < li > < a href =" https://UK.LinkedIn.com/in/danieljng "> < img src =" images/icon/LinkedIn White.png"alt ="linkedin"width ="16"height ="16"align ="basic"/ > < /a > < /li > .

    < /ul >

    < / div >

    < div id = "top_banner" >

    < img src = "images/banner/evo x 900 300.png" width = "945px" >

    < / div >

    < div id = 'outside' >

    < div id = 'wrapper' >

    < div id = "content" >

    Text of the header < h1 >... < / h1 >

    ... The text content < p > < /p >

    "< img class ="image_frame"src="images/raw/original_148032_JcHlJKDsQt3CI_tOmYOaKp7CR.jpg "width ="280"height ="180"/ >

    "< img class ="image_frame"src="images/raw/peugeot-rd-concept.jpg "width ="280"height ="180"/ >

    < p > text fill... < /p >

    < / div >

    < div id = "right_side_feed" >

    Update < h2 > < / h2 >

    < class p = 'date' > 4 July 2016 (Date display) < /p >

    Sample headlines < h3 > < / h3 >

    < p > content text < /p >

    < class p = 'date' > 13 may 2016 (Date display) < /p >

    Sample headlines < h3 > < / h3 >

    < p > content text < /p >

    < class p = 'date' > 14 February 2016 (Date display) < /p >

    Sample headlines < h3 > < / h3 >

    < p > content text < /p >

    < / div >

    < div id = "footer" >

    < class = "footer" p > Copyright 2016 - Daniel J Ng Product Development: registered and unregistered design rights are the property of the propertier and may NOT be republished without permission < /p >

    < / div >

    < / div >

    < / div >

    < / body >

    < / html >

    / * Legend color * /.

    / * Reset * /.

    /* http://meyerweb.com/Eric/tools/CSS/Reset/

    v2.0 | 20110126

    License: no (public domain)

    */

    HTML, body, div, span, applet, object, iframe,

    H1, h2, h3, h4, h5, h6, p, blockquote, pre,

    a, abbr, acronym, address, big, cite, code,

    del, dfn, em, img, ins, kbd, q, s, samp,

    small, strike, strong, sub, sup, tt, var,

    b, u, i, Center.

    DL, dt, dd, ol, ul, li,

    fieldset, form, label, legend,.

    table, caption, tbody, tfoot, thead, tr, th, td,

    Article, aside, canvas, details, embed,

    Figure, figcaption, footer, header, hgroup,

    menu, nav, output, ruby, section, summary,

    time, mark, {audio, video

    margin: 0;

    padding: 0;

    border: 0;

    do-size: 100%;

    vertical-align: baseline;

    do-family: "Gill without MT;"

    }

    / * HTML5 view role discount for older browsers * /.

    Article, aside, details, figcaption, figure,

    footer, header, hgroup, menu, nav, {section}

    display: block;

    }

    {body

    line-height: 1;

    }

    OL, ul {}

    list-style: none;

    }

    BLOCKQUOTE, q {}

    quotes: none;

    }

    BLOCKQUOTE: before, blockquote: after,.

    q: before, q: after {}

    content: ";

    content: none;

    }

    table {}

    border-collapse: collapse;

    border-spacing: 0;

    }

    / * Global * /.

    HTML {}

    }

    {body

    }

    / * Titles * /.

    H1, h2, h3, h4, h5, h6 {}

    make-weight: bold;

    }

    H1 {}

    do-size: 36px;

    color: #A80004;

    padding-bottom: 15px;

    margin-bottom: 15px;

    }

    H2 {}

    font-size: 20px;

    margin-bottom: 20px;

    }

    H3 {}

    do-size: 16px;

    margin-bottom: 5px;

    }

    H4 {}

    do-size: 14px;

    }

    H5 {}

    do-size: 14px;

    }

    H6 {}

    do-size: 14px;

    }

    IMG h2, h3 img, img h4, h5 img, H1, h5 img {} img

    margin: 0px;

    }

    / * Elements of text * /.

    {p}

    Color: #000;

    do-size: 12px;

    line-height: 150%;

    margin-bottom: 15px;

    }

    p {} .the

    margin: 1.5em 1.5em 1.5em 0;

    padding: 0;

    }

    {p.Right}

    margin: 1.5en 1.5em 0 1.5em;

    padding: 0;

    }

    a {}

    }

    a: link {}

    Color: #00f;

    }

    a: visited {}

    Color: #0f0;

    }

    a: active {}

    Color: #000;

    }

    a: focus {}

    color: #A80004;

    }

    a: hover {}

    Color: #000;

    }

    / * Images * /.

    {.image_frame}

    padding: 10px;

    margin: 10px;

    }

    / * List * /.

    / * Tables * /.

    / * Containers * /.

    {#outer}

    Width: auto;

    margin: 0px auto;

    background-color: #FFF;

    }

    {#wrapper}

    Width: auto;

    margin: 0px auto;

    background-color: #FFF;

    }

    {#company_logo}

    position: fixed;

    margin: 15px 0px;

    float: left;

    z-index: 2;

    }

    {#top_navigation_menu}

    position: fixed;

    Width: 100%;

    text-align: right;

    / * Adds shadow down the bar * /.

    WebKit-box-shadow: 0px 0px 10px 0px #000000;

    moz-box-shadow: 0px 0px 10px 0px #000000;

    box-shadow: 0px 0px 10px 0px #000000;

    / * Add the transparent background * /.

    background-color: rgba (1, 1, 1, 0.8);

    color: rgba (1, 1, 1, 0.8);

    z index: 1

    }

    #top_navigation_menu ul {}

    margin: 10px 0px;

    padding: 0px 10px;

    }

    #top_navigation_menu ul li {}

    Display: inline;

    }

    #top_navigation_menu ul li a {}

    padding: 0px 18px;

    }

    #top_navigation_menu a {}

    do-size: 16px;

    text-decoration: none;

    }

    #top_navigation_menu a: link {}

    color: #FFF;

    }

    #top_navigation_menu a: visited {}

    Color: #000;

    }

    #top_navigation_menu a: active {}

    Color: #000;

    }

    #top_navigation_menu a: focus {}

    color: #666;

    }

    #top_navigation_menu a: hover {}

    color: #C10013;

    }

    {#top_banner}

    }

    #content {}

    Width: 650px;

    float: left;

    }

    {#content_fullwidth}

    Width: 100%

    }

    {#right_side_feed}

    Width: 220px;

    float: right;

    }

    #footer {}

    Clear: both;

    margin: 20px 0px;

    Padding: 0px 20px 0px 75px;

    Width: 100%;

    text-align: right;

    z index: 4

    / * Adds shadow down the bar * /.

    WebKit-box-shadow: 10px 0px 0px 0px #000000;

    moz-box-shadow: 10px 0px 0px 0px #000000;

    box-shadow: 10px 0px 0px 0px #000000;

    / * Add the transparent background * /.

    background-color: rgba (1, 1, 1, 0.8);

    color: rgba (1, 1, 1, 0.8);

    }

    / * Various * /.

    .date {}

    make-weight: bold;

    color: #C10013;

    margin-bottom: 3px;

    }

    .footer {}

    Width: 220px;

    do-size: 10px;

    make-style: italic;

    color: #FFF;

    text-align: left;

    }

    Change the width to 100% as in

  • Try to draw a picture on another image

    Hello!
    I'm developing a simple application and I want to have a background image static on my JFrame and establishes her other pictures. That's why I created a class defined by user (named FrontPanel such below) that illustrates that extends JPanel and overrided the paintComponent (Graphics g) method. So I draw the background image once on the JFrame, and then I want to dynamically draw the other images on the JPanel. Unfortunately what happens is that the background image disappears and only the JPanel images are shown. If I resize the window then the background image appears again (as the Repaint method is called), but the JPanel images disappear. They can not be together at the same time.


    method of painting in my main class which extends JFrame
    {} public void paint (Graphics g)
    g.drawImage (this.museum_background, 0, 20, null);
    }

    class FrontPanel
    FrontPanel class extends JPanel {
    {FrontPanel()}
    Super();
    }

    {} public void update (Graphics g)
    paintComponent (g);
    }


    method that draws the images before
    @Override
    {} public void paintComponent (Graphics g)
    super.paintComponent (g);
    If (MainWindow.DRAW_VISITOR)
    g.drawImage (MainWindow.grvisitor, 500, 100, null);
    }
    }


    Is there a way to do this? Perhaps this is not available in Java and we are allowed to paint again what we want to display? I want to avoid this for effective purposes.
    Thank you very much for your time.
    Dimos.

    Finally try.

    In a class that extends JComponent (JPanel or, if you like)

    @Override
    public void paintComponent(Graphics g) {
       super.paintComponent(g); // needed if the custom painting does not paint the complete component
       g.drawImage(backgroundImage, 0, 0, this);
       if (whateverCondition) {
          g.drawImage(overlayImage, ...);
       }
    }
    

    and call repaint() whenever the application state changes in a way that determines whether the overlay should belong.

    DB

  • How can I stop Firefox toolbar pop up when the mouse is above the screen mode full screen (without kiosk mode, please)?

    I don't want the toolbar always there (so disable auto hide does not solve the issue). I would prefer a right-click or use a combination of keys to retrieve the toolbar. The toolbar arise at any time that the mouse is near the top of the screen is too distracting. It should be an option, users can enable or disable or card for anything other than the mouse hovering. The only solution I've seen mentioned is to go the full kiosk with something like R-kiosk, but it's really a too extreme solution to a simple problem. Is there a setting already hidden in the topic-config for this problem or is it a feature request? Thank you.

    There is no built-in way to disable this feature to display the toolbars when you move the mouse to the top.

    Add code to the file userChrome.css below default @namespace.

    @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    
    #fullscr-toggler { display:none!important; }
    

    The file userChrome.css (UI) customization and userContent.css (Web sites) are located in the folder of chrome in the Firefox profile folder.

    You can use this button to go to the current Firefox profile folder:

    • Create the folder chrome (lowercase) in the .default < xxxxxxxx > profile folder if the folder does not exist
    • Use a text editor like Notepad to create a userChrome.css (new) file in the folder chrome (file name is case sensitive)
    • Paste the code in the userChrome.css file in the Editor window
    • Make sure that the userChrome.css file starts with the default @namespace line
    • Make sure that you select "All files" and not "text files" when you save the file via "save file as" in the text editor as userChrome.css.
      Otherwise, Windows can add a hidden .txt file extension and you end up with one does not not userChrome.css.txt file
  • How can I delete a download that is above my screen?

    On the second line at the top, there are two topics which a customer downloaded on my Firefox. How can I remove the offensive downloads?

    To open the Download Manager, press on < Control > J
    Right-click on the entry and then select transparent.

    Hello

    To better help you with your question, please provide us with a screenshot. If you need help to create a screenshot, please see How to make a screenshot of my problem?

    Once you have done so, attach the file to screen shot saved to your post on the forum by clicking on the button Browse... under the box to post your reply . This will help us to visualize the problem.

    Thank you!

Maybe you are looking for

  • Change a message not updated with new message corrected even on the last update of Skype

    When you edit a message, Skype is not updateing with the corrected version of the message. It was happing in the previous and updated versions to current day. Few people in my organization have reported this as well. Any ideas? Thanks in advance

  • Monetize my Podcast

    I wonder if I we Soundcloud to host my podcast episodes will still be able to monetize my episodes of podcast via iTunes?

  • Print last page first. Help

    I work with Windows XP and dealing with all in one machine 4283 f. not had any problems until a few days when he printed page 2 first and then page 1. Now it does all the time. I have not installed any programs or even Windows updates to cause this.

  • "Server error in ' / ' application", then the line "Runtime Error".

    Description: An application error occurred on the server. The current settigs error customized for this application prevent the details of the error in the application being viewed remotely (for security reasons). However, it could be read by browser

  • WEI - the Windows of your system performance index could not be calculated.

    Hello Ive installed a clean copy of Windows7 64 bit, on a formatted hard drive. I am unable to execute WEI. I've updated the BIOS for my M3A79-T DELUXE for later (1303 rev). Installed the latest drivers for hardware and Windows was last updated. I ra