How to get the active screen of the BlackBerry application?

Hello

I'm trying to get the active screen of the BlackBerry application, for example the home menu.

I tried to use the screen ActiveScreen = getUiEngine () .getActiveScreen () in my code, but found error during execution.

I know that this is because the getActiveScreen() method applies only for screens created by this application.

So is there a way to capture the screen of the other application, for example the mail filter BlcackBerry?

Thank you.

Not wanting to not to repeat me, but there is no general way to get access to the Screen of another application object, unless you are on good terms with this application - which basically means that you have access to the instance UiApplication.  You cannot ask the operating system to get that to you, you must have a way to get you.  Which implies execution of something in the context of the Application.

Even in this case, you may not be able to do what you want.  You will probably need to iterate over the screen and content managers and find the field you want, and even if it covers anything you understand (like BasicEditField) it still cannot handle standard things like setText in a way that is useful to you.  And you might not find fields you recognize, if you access a browser screen, I think you'll find there \are RIM not standard fields in there, so there is nothing you can interact from a standard application of the RIM.

If you want to do this kind of treatment in General, that will deal with in a number of applications, you should watch event Injection.

There may be other options for specific applications.  For example, you can simulate of electronic mail by writing a program that sends an email, rather than interact with the BlackBerry.  Or for the same application, if you try to test the headphones, then the listener has access to the UiApplication.  Aye, we be able to help you find approaches less General in some places, if we understand what you're trying to do.  This is the reason for the specific question that I asked in my last post.

Regarding your second question

"Another question is, can two separate applications of myself interaction by the user interface?

For example, to call app2. ButtonField.click () or something. »

It is in fact just an extension to your first question.  The difference is that you will find the UiApplication associated if both applications are on good terms, in fact you can "spend" the UiApplication via a Global event.  Once you have the UiApplication, you can use

.invokeLater (...)

to run the user interface code in the other Application.

But I look at injector event because I think it might be a more general solution.

Tags: BlackBerry Developers

Similar Questions

  • How to get the installed Application timestamp programmatically

    How to get the installed Application timestamp programmatically

    Can you please help me.

    http://www.BlackBerry.com/developers/docs/7.1.0api/NET/rim/device/API/system/CodeModuleManager.html#...

    I'm sure you could find yourself by reading the API.

  • How to get the mobile applications other than phonegap Build Service apk file in Dreamweaver CM³

    How to get the mobile applications other than phonegap Build Service apk file in Dreamweaver CM³

    Dreamweaver is a tool, not an install Android of web authoring tool.

  • How to get the Blackberry ID using javascript for Webworks App?

    Hi all

    I have developed a web application using Blackberry webworks SDK and emulator Ripple... Here, I need to get the Blackberry device ID using javascript... Please me... Thanks in advance...

    With respect,

    Marimuthu_P

    HM... There is a sample to get the PIN with javascript.

    https://developer.BlackBerry.com/HTML5/APIs/BlackBerry.identity.html#.UUID

  • How to get the Blackberry system infomation?

    Hi all.

    I want to get the following BB system infomation:

    String deviceModel;       example "BlackBerry Bold 9650"

    String OsVersion;          example "5.0.0".

    long memorySize;        the size of the RAM of BB
    long processorFre;     The BB processor frequency

    Can you tell me which functions can get them? Thank you!

    Please see the following for more information.

    http://www.BlackBerry.com/developers/docs/4.0.2api/NET/rim/device/API/system/deviceInfo.html

    http://supportforums.BlackBerry.com/T5/Java-development/how-can-i-get-the-total-RAM-size-in-BB-and-t...

    Best regards

    Albert Siu

  • How to get the Mac Applications to open in Windows XP

    Hello

    With the help of Fusion 2.0.6 with Windows XP on Snow Leopard.  According to me, it is possible the help of guides to have XP open files for applications resident on Mac OS X.  I don't seem to be able to get this working.  So, is it possible to get a PDF in Adobe Reader file to open automatically on the side of the XP of the Reader application available on the transition from Mac?  I need to do with Office 2008 files as well as on the Mac side, to open on XP.

    I have file sharing set up on Mac and XP and also mirroring.  Do I just need to know if this is possible, and how is this best achieved?  I don't want to install Adobe Reader on Windows when it is already on OS X, in the same way Google earth and a few other things.  I'm running in Unity mode in the case that affects anything.

    Suggestions on how to fix would be very appreciated.  If it is not possible to do it now, then it is likely to be available in version 3?  Thank you!

    Lynn

    Well it's possible with Fusion 2.x as it was introduced with Fusion 2.

    You must have VMware Tools installed in the Virtual Machine from Windows and the setting for the target of the Virtual Machine as described in the documentation...

    VMware Fusion (menu bar) > help > VMware Fusion help > sharing Applications between your Mac and your Virtual Machines > opening a file on your Mac with an Application in a Virtual Machine

    VMware Fusion (menu bar) > help > VMware Fusion help > sharing Applications between your Mac and your Virtual Machines > open a file on a Virtual Machine with an Application on your Mac.

  • How to get the blackberry by bb10 find programming id

    Is there an api to get the bbbid programmatically in bb10 cascades. If it is then please let me know

    Thanks for the reply. I really need the email configured in bb10 device IDs and I found the solution for the use of API accounts.

  • How to get the editor application creator / default for a linked file.

    Hi all

    How can we get creative application or default editor for a linked file. There was IEditFile interface in CS2. We can use instead in CS4.

    I tried to use CanEditResource() of ILinkResourceHandler and GetEditorList() of ILinkUtils, but none of them seems not to work.

    Any advice would be a great help.

    Kind regards

    Jasmine Shaikh

    If you know the path to the file, you can use LSGetApplicationForItem on Mac. Under windows, you probably need to deal with the registry, but if you search MSDN, then maybe you'll find library you want.

    Concerning

    Bartek

  • During the import of my camera or a file in Lightroom 5 my pictures are too exposed by 1-2 stops, while they are well exposed on the screen of the device. How to get the "right-exposed images on the screen?

    During the import of my camera or a file in Lightroom 5 my pictures are too exposed by 1-2 stops, while they are well exposed on the screen of the device. How to get the "right-exposed images on the screen?

    There is an option in your Lightroom preferences, under the general tab, "treat JPEG files next to raw in form of images". If you have this option is checked, then Lightroom will import and view your first two and JPEG files. You use the active D-lighting on your camera? If you are, you must disable this feature.

  • How to get the video intro off my google home screen I already saw it, where is the firefox logo used to be.

    How to get the video intro off my google home screen I already saw it, where is the firefox logo used to be. I started with the last update that I rebooted.

    Hello
    to change the homepage when opening firefox-press 'Alt' and click on tools-> Options.

    Main menu, you can change the URL.

    If the problem persists, you can follow these simple steps:

    Enter about: config in the address bar and press ENTER. Accept the message of 'dragons' to see the Advanced preferences screen. Use the above search box to enter the below pref.

    You can assign an empty string to stop your Firefox to retrieve "extracts" and brandLogo changes the browser.aboutHomeSnippets.updateUrl pref. Right-click this pref and select Edit then clear the value as pref in the box that appears, and then click OK. Who will also disable "snippets" that appear under the container of the research on the default home page.

    Then you must open the folder of your profile, via help > Troubleshooting Information > profile folder > > button view folder. Then close Firefox. Your profile file open with Firefox closed (Firefox '3-bar' menu key > exit/Quit), wait or two minutes, then remove the storage\moz-safe-about + home folder in the Firefox profile folder to remove the brandLogo and stored in IndexedDB code snippets to make Firefox use the default brandLogo and a defined default code snippet.

    If you later change your mind about these changes, you can reset the pref browser.aboutHomeSnippets.updateUrl via the context menu and Reset allows to retrieve the default value using the storage\moz-chest-fort-about + home folder again.

  • How to get the brands of ink of my laptop screen?

    Hello

    Can someone tell me how to get the brands of ink of my laptop screen I tried everything that's happening we have you had twins boys lol

    Hello

    Sorry, can you explain your problem?
    I'm not sure what you mean exactly.

    Best regards

  • How to get the film on the second screen and cut on normal?

    How to get the film on the second screen and cut on normal?

    iMovie 10 does not support using double screen, tou need to FCP to do.

    Geoff.

  • How to get the physical size of the screen?

    Hi all

    How to get the physical width and height of the screen (not resolution) in inches or in centimeters?

    Is there a method to do

    Thank you very much

    Display.getWidth () and Display.getHeight () you will get the number of pixels.

    Display.getHorizontalResolution (); and Display.getVerticalResolution () to get the pixels per meter.  Then by dividing appropriately you can find the actual size.

  • How to get the new activation key when some numbers are taken away and you have received?

    How to get the new activation key when some numbers are taken away and you have received?

    Have a laptop with windows 7 from Dell. Need to re install W7. And I have some numbers are taken as a result of its use.
    How can I get a new code activation or my complete activation code?
    Best regards, W7 user

    How to get the new activation key when some numbers are taken away and you have received?


    Have a laptop with windows 7 from Dell. Need to re install W7. And I have some numbers are taken as a result of its use.
    How can I get a new code activation or my complete activation code?

    Dell provided you with restore/recovery media and/or a way to restore the machine 'default' as a key sequence?  If so - you won't need the number--unless they just sent a DVD of Windows 7 nu - and they are usually not unless you ask.

    They have probably installed using their key, which means that even with a utility like Belarc Advisor or ProduKey - you will not get the product key that matches the one on the sticker.

    Some may have you take several different digital pictures of the sticker from different angles and see if you can decipher the missing characters like that (you'd be surprised to see how that works).

  • How to get the list of active users in Essbase 6.5.6

    Hi gurus,

    How to get the list of active users in Essbase version 6.5.6

    I can't find any Esscmd list of active users...

    I used the command LISTLOGINS in ESSCMD, but it did not help me...

    pls suggest me an approach to find the list of active users.

    Thanks in advance...

    Hi guru,.

    When you connect to the application, you will find the security option---> connect you will find active use in the ESSBASE.

    If you need the list of users in the use of ESSBASE that recommends essmsh

    go for the race---> essmsh---> login user server use this tribute

    (1) session view all this;

    If you want to export the active users usebelow congratulate.

    2)

    spool to 'D:\suresh.txt ';

    poster session;

Maybe you are looking for