Invoking the application of a midlet blackberry email client.

Hi guys, I am trying to invoke the blackberry native E-mail application, trying to do until now I'm able to view email compose screen and the data filled in, but my problem is after he gets invoked from in my application it never get all events, as I can not kick it, the BlackBerry shortcut menu does not appear the menu only one that works is the menu that appears by pressing the keys (trackball).

All events, including the characters of that type in the body of the message i don't get it.

Please help me.

what I have done until now is the following:

 net.rim.device.api.system.Application.getApplication().invokeLater(new Runnable()
            {
                public void run() {
                    MessageArguments mArgs = new MessageArguments                                          (MessageArguments.ARG_NEW,to,msubject, mbody);
                    Invoke.invokeApplication(Invoke.APP_TYPE_MESSAGES, mArgs);

                }
            });

with the code above in invokeLater, I even tried without invokeLater but in vain.

my scenario is a user clicks an option in the menu contextual app Feeback Email application opens and with the preset values user can edit too with his comments.

Thank you

JH

Thanks guys, but now I found the solution for my problem mentioned above.

the issue was with event management, even if my app was painted with screen e-mail editor events received to my main application screens, so I put control of all handlers on the current active form.

  public boolean checkActiveScreen()
   {
       net.rim.device.api.ui.Screen scr = net.rim.device.api.ui.UiApplication.getUiApplication().getActiveScreen();
       net.rim.device.api.ui.Field f = scr.getFieldWithFocus();
       if(null != f)
       {
           return false;
       }
         if (scr instanceof net.rim.device.api.ui.container.FullScreen)
        {
            return false;
        }
        else if(scr instanceof net.rim.device.api.ui.container.MainScreen)
        {
            return false;
        }
        else if(scr instanceof net.rim.device.api.ui.container.PopupScreen)
        {
            return false;
        }

       return true;
   }

If the function above has solved my case.

Tags: BlackBerry Developers

Similar Questions

  • Invoking the application when you click on a link in the browser field

    Hi all

    Is it possible to invoke the application by clicking on a link/button to the browser field?

    The link/button would be a part of the web page displayed in a browser field. If the user clicks on it, it should be taken to the corresponding screen in the native application.

    Can someone let me know how this can be done in BlackBerry?

    Thank you much in advance.

    I could it implement successfully with the help of HTTPFilterRegistry (net.rim.device.api.io.http.HttpFilterRegistry).

    An example of the same project is available in the samples of BlackBerry in the Eclipse IDE (HttpFilterDemo).

  • How to invoke the default mail app in BlackBerry

    Hi all

    Is it possible to invoke the default BB from code messaging application? In my application, I just need to invoke the email application when you click on a button. Please help me.

    Thank you much in advance.

    This should help:
    http://docs.BlackBerry.com/en/developers/deliverables/11935/Create_new_populated_email_msg_565427_11...

  • invoking the application/Gallery bb10 webworks app camera app

    Hello

    in my application that is based on its targeted and webworks for Blackberry10 OS, how to invoke enforcement camera and Gallery.

    can I somehow call it using blackberry.invoke.invoke api pointing to the camera or a gallery, please let me know.

    You can use the invoke of verification on the next page for more details:

    -Camera: https://developer.blackberry.com/html5/documentation/camera.html

    -Gallery: it's a little more complicated, but you can usually call it through the target of the application as follows:

    -action: 'bb.action.OPEN', target: 'sys.pictures.app '.

    If you wish, you can use the card for the camera as defined here:

    - blackberry.invoke.card.invokeCamera

    - https://developer.blackberry.com/html5/apis/blackberry.invoke.card.html

  • Invoke the application using the link

    Hi all, I'm calling my application for the bb.action.VIEW and bb.action.OPEN actions using uri with custom file extension (file:// scheme) by sending the same app on another device uri, in this process after acceptance and download I am able to perform the invocation.  But I wanted to send a link in the form of uri, by clicking on it, he'll call the application, is there is no way to do this.

    If I understand your usecase, I think this will help.
    https://developer.BlackBerry.com/native/documentation/Cascades/device_platform/invocation/active_tex...

    If not, please provide details.

  • How to invoke the application of another background application?

    I created two applications.

    first application is listening push msgs and prompt user if no msg happens.
    If the user wants to launch second app, it should be called.

    Is it possible to invoke an application from different applications? can you please tell me how I can do this?

    Thank you

    Gunjan

    ApplicationManager launch allows you to run another application.

  • Invoke the application via a custom protocol URL browser

    With the new breed of OAuth2 API such as Pocket there is now more and more need for apps complement the OAuth2 flow in default browser OS outside the Application. It also means that once the Auth process is complete, there must be a way to invoke app or pass data to browser application via redirect URL.

    Currently it seems achievable on platforms like android by registering a custom for an application URL protocol handler. This way browser can use redirection what custom URL with a Protocol and application would be invoked via redirects and the address bar of the browser.

    I see that current invocation framework supports the URI patterns but I can't make it work, can someone point me to any example of code that allows the invocation of application via browser?

    This sample project should show you what files are used for oauth2 https://github.com/kylefowler/foursquare

  • Invoking the Application Permissions page?

    I've got access_shared + read_device_identifying_information permissions in my application

    I do a check at startup

    if(!blackberry.system.hasPermission("access_shared")) {
      // Output a message to the user
    
      // Close app button
      }
    

    This essentially shows the user a screen explaining the permission denied the app stops and tells them how to turn it on

    At this point, the only option that has the app is closed

    It would be better that I could add another choice for the user who opens the Permission request, ideally with this MyApp, so they can allow the permission required is as they wish

    I kniow there are a LOT of undocumented invoke / map "things you can do" but cannot work on special demand for it

    As required for B4BB this is a recipe that is useful for any developer WW Cookbook

    Looks like you can not go as far as you want to, but you can get close enough:

    https://developer.BlackBerry.com/HTML5/documentation/settings.html

  • Problem with invoking the Application Messages

    Hello

    I'm testing an application that adds an element of application menu in the list of messages and when clicked, displays just the old content and beneficiaries on the screen 'Compose Email'.

    That's what I did.

    public Object run(Object in_objContext)
    {
       if(in_objContext instanceof Message)
       {
        Message msgOrig = (Message)in_objContext;
        try
        {
            Message msgNew = msgOrig.reply(true,true);
    
            Invoke.invokeApplication(Invoke.APP_TYPE_MESSAGES,
                new MessageArguments(msgNew));
    
        }catch(Exception e){}
       }
       return null;
    }
    

    The problem is, there is no "Send" command in the context menu.

    Can someone help me?

    I can confirm that, but you're probably referring to my post on the other forum anyway.

    What you will find (if the memories are good) is that a message created with the Message.reply () function object doesn't have a 'Send' menu item when the envoys to the Messages app.

    However, I think you will find that the method of 'memory' works.

    What we ended up doing are creating our own processing of the Message object to generate a response object.

  • Invoke the application of a Message

    Hi guys,.

    I would like to know if it is posible to invoke a java application that is customized using a tag html (href or something like that) which is part of the e-mail message.

    (for example)

    -----------------------

    The e-mail message body

    Please accept this agreement

    Accept Decline

    -----------------------

    I want to select Accept and launch an application.

    No idea how I can get this approach, or a suggestion.

    Thanks for your time.

    I think that this article will help you.

    How to-to comparison models in the BlackBerry smartphone to provide a user experience integrated applications
    Article number: DB-00525
     
    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800608/...

  • Invoke the application mail with built-in BCC fields?

    Is this possible and if so how - because you can predefine the subject, fields of body, but I am interested in the BCC

    Hello dx22,.

    Currently, it is not supported to fill the BCC field programmatically.

    Erik Oros

    BlackBerry Development Advisor

  • Cannot invoke the application from HP to the Macbook 10.6.8

    My macbook 10.6.8 with HP Officejet 4500 wireless: I can't open "HP Scan" application successfully. the errors listed below

    ---------------------------------------------------------------------------------------

    Process: HP Scan [1814]
    Path: Applications/Hewlett-Packard/HP Scan.app/Contents/MacOS/HP Scan
    ID: com.hp.scan.app
    Version:? (???)
    Code type: X 86 (native)
    Parent process: launchd [147]

    Date/time: 2014-02-09 15:20:52.077-0500
    OS version: Mac OS X 10.6.8 (10 K 549)
    Report Version: 6

    Interval since last report: 5505 sec
    Crashes since last report: 13
    Per-App crashes since last report: 12
    Anonymous UUID: 72CF88B5-8E62-4CE6-AC3E-74287962E463

    Exception type: EXC_BREAKPOINT (SIGTRAP)
    Exception codes: 0 x 0000000000000002, 0 x 0000000000000000
    Crashed thread: 0

    Dyld error message:
    Library not loaded: /Library/Printers/hp/Frameworks/HPWorkflowsManager.framework/Versions/A/HPWorkflowsManager
    Referenced from: Scan.app/Contents/MacOS/HP Applications/Hewlett-Packard/HP Scan
    Reason: image not found

    Binary images:
    0x8fe00000 - 0x8fe4163b dyld 132.1 (?) <4CDE4F04-0DD6-224E-ACE5-3C06E169A801>/usr/lib/dyld

    Model: MacBook2, 1, MB21.00A5.B07 of BootROM, 2 processors, Intel Core 2 Duo, 2 GHz, 2 GB, MSC 1.13f3
    Graphics card: Intel GMA 950, GMA 950, built-in, spdisplays_integrated_vram
    Memory module: global_name
    Airport: AirPort Extreme, Atheros 5416: 2.1.14.6
    Bluetooth: Version 2.4.5f3, 2 service, 12 aircraft, 1 incoming serial ports
    Network service: Airport, AirPort, en1
    Serial ATA Device: TOSHIBA MK1234GSX, 111,79 GB
    Parallel ATA Device: MAST * beep * ADVD - R UJ - 857D
    USB device: Built-in ISight, 0x05ac (Apple Inc.), 0 x 8501, 0xfd400000 / 2
    USB device: Receiver IR, 0x05ac (Apple Inc.), 0 x 8240, 0x5d200000 / 2
    USB device: Bluetooth USB Host Controller, 0x05ac (Apple Inc.), 0 x 8205, 0x7d100000 / 2
    USB device: Apple keyboard / Trackpad, 0x05ac (Apple Inc.), 0x021a, 0x1d200000 / 3
    USB device: USB receiver, 0x046d (Logitech Inc.), 0xc51b, 0x1d100000 / 2

    Hi sunnyday123,

    Welcome to the HP Support forums.  I understand that you have recently met with a problem when you try to scan from your MacBook running Mac OS X 10.6.8 to your Officejet 4500 wireless.

    I've included a troubleshooting document for when you receive a Communication error between the Scanner and your Mac.  He detailed the steps to follow.

  • Invoke the Message MMS existing message no new message

    I created a Message with attachments and invoked the message request to create an email, now it would be nice to add a line of code to call MMS message.

    This calls for an email with my Message

    Invoke.invokeApplication (Invoke.APP_TYPE_MESSAGES, new MessageArguments (message));

    This calls for a new MMS.

    Invoke.invokeApplication (Invoke.APP_TYPE_MESSAGES, new MessageArguments (MessageArguments.ARG_NEW_MMS));

    It does not work

    Invoke.invokeApplication (Invoke.APP_TYPE_MESSAGES, new MessageArguments (message, MessageArguments.ARG_NEW_MMS));

    I can invoke the application message and create a new MMS message, but I don't see how to create a multimedia Message and the message I created.

    If anyone has any ideas, you could save me a lot of time.

    Thank you!

    Somehow, I missed the answer to this one.  It has already been posted.

    It is not possible!

  • Not enough people the application on A2107A-F

    Hello

    I just bought the A2107A-F and the soft of people is missing.  I have done many factory resets and tried many applications of the Google store, which none do let me edit my contacts.   Did anyone else encounter this problem, or is this bad Tablet somehow that does not seem possible as everything else works correctly.  Contact management is essential for me - without it, this tablet is pretty useless.

    Thanks for any help,

    Chris

    How to change contacts

    1 install the launcher to go on the Tablet
    2. go to settings/security/...check unknown sources
    3. download and install "contacts +" from an android phone
    4. download and install "backup & restore" on the phone
    5 launch app backup & restore... upward "contacts + ' on phone
    6. download astro file manager on phone
    7. run astro manager and go to the sdcard/download directory or where he is on the phone
    8. click on the file "contact + ' and then 'share' and the file yourself
    9. download the file to your email on your Tablet
    10 install on Tablet
    11. repeat on your phone for the app "appointment contact ex".
    12 download app 'aqua e-mail.

    Now you should be able to add and edit contacts with the application '' contacts go ex. '' Email aqua application will give access contacts by clicking on a small icon of a person with '+' it's conjunction with the application "contact +".

  • How to make a single instance of the application regardless of the main application and the other entry point for the application

    Hello experts,

    I explain the sceniro of my application. My request is mainly a time system as well as some other features related businesses. My app has a landing screen which is actually a custom made calendar that accumulates information captured time. There is also a time where entry screen user at will has worked time and other related information. The user has the option to run the application manually at the entrance of the time and see the reports and there the event listener to follow the events of call/SMS/e-mail that invokes the application automatically and user to the scree of time entry.

    Problem one: I used headphones to follow the events of call/SMS/e-mail. When an event is called, alternet point of entry of the application the application is running. Application then get calls time, contact information etc. and push my entry screen with pre-filled information time.

    As such, it works very well, as expected, but the problem is the number of instence that he is creating. Each track event creates a new instance of the application. I want to keep only one instance.

    Two problems: to solve this problem, I removed the other point of entry and RuntimeStore to keep the running instance of my application. This instance of the application in a way keeps in singletone as such when the listener calls the application it finds that the application is running in the background. Then she moves the application to the foreground. It works very well, I mean the application user interface called on the foreground, but he won't have to time entry screen automatically as I hope. The block of code is as follows,

    public static final long applicationID =0x8ddc44508679bd5bL;
    static NSIApplication NSIInstance=null;
    RuntimeStore runtimeStore = RuntimeStore.getRuntimeStore();
    
    if (NSIInstance != null)
                {
                    NSIInstance.requestForeground();
                }
                else
                {
                    synchronized (runtimeStore)
                    {
                        NSIInstance = (NSIApplication)runtimeStore.get(applicationID);
                                            //listener initialization
                        NSIListener.Initialze();
                    }
    
                    if (NSIInstance != null)
                    {                   NSIInstance.requestForeground();
                                        //event's info manipulation and push the time entry screen                                     NSIInstance.RUN_NSIApplication();
                    }
                    else
                    {
                        NSIInstance=NSIApplication.getInstance();
                        NSIInstance.RUN_NSIApplication();
    
                        synchronized(runtimeStore)
                        {
                            runtimeStore.put(applicationID, NSIInstance);
                        }
    
                        NSIInstance.enterEventDispatcher();
                    }
                }
    

    I expect a guideline to follow so that I can reach the expected my workflow. Thanks in advance

    I can't propose to use the runtimestore to store instances of the application, as it was used on an example RIM, he has never worked for me.

    I suggest to use a single point of entry and the automated screen using a global event or status in the runtimestore.

Maybe you are looking for