Reading, replying, deleting messages from Message Hub without user interaction

I need access to the hub of the Message to read the messages/email from particular sender.  The app would have read the message, extract information such as the e-mail address of the sender of the message and reply to the sender. I want to achieve this goal without the user intervention or interference to end of self-test.

For example, I get a message in the Blackberry hub, Application research and read a message from a specific sender. It retrieves information and answers back to the sender. After the response is sent, the message should be deleted. But this should happen as soon as the Application is started. There is therefore no interference of the user while encoded in the files of the CBC.

There are some Message PIM application example that does something similar. But there is user interaction required to send the message. I have a few minor changes and hard-coding an email address. It sends an email to this address, but I need to press the button 'send '. I want to do as soon as the application is started without interacting with a graphical interface to test the object.

Is it possible to do it in the background and the GUI only shows information such as the email/message received, sent to answer?

I read the reference to MessageService, Message etc to the http://developer.blackberry.com/native/reference/cascades for more information on the API.

In fact, you can. In the example of Messages , the "Send" feature is attached to a button, so you can raise yourself when you play with the app, but really you as a developer could haved called at any time... It's that they function key:

void MessageComposer::composeMessage()
{
    const MessageContact recipient = MessageContact(-1, MessageContact::To, QString(), m_recipient);
    const QByteArray bodyData = m_body.toUtf8();

    // Create a message builder to create/modify the message
    MessageBuilder *builder = (m_mode == CreateMode ? MessageBuilder::create(m_accountId)
                                                    : MessageBuilder::create(m_accountId, m_messageService->message(m_accountId, m_messageId)));

    builder->subject(m_subject);
    builder->removeAllRecipients();
    builder->addRecipient(recipient);
    builder->body(MessageBody::PlainText, bodyData);

    // Send the new message via current account
    m_messageService->send(m_accountId, *builder);
}

However, this does not require permission to access_pimdomain_messages, which most of the users will not give you unless you have a good enough justification (because it lets you do things like that).

What you can't do, is use the card of composer of email without user interaction, which is normally how you would like to send an email. This does not require the permission of messages, such as the user has total control over what is sent (if anything).

Tags: BlackBerry Developers

Similar Questions

  • is it possible to install the application without user interaction? in the background?

    Hi, is it possible to do such a thing:

    device ask the server for an application, the server responses and address 'Give me' I can download a *.cod file. is it possible I want to download (and install) without user intervention? I have average-not browser opens, the user clicks on what whether etc application will be downloaded in the background without user interaction? is this possible? and if yes how?

    concerning

    Use IOUtilities.streamToBytes to read the file directly in a byte array.
    use createNewModule with the byte array to create a new module.
    Use saveNewModule to save the module, enter the promptForResetIfRequired() if necessary.

  • Script to save the file and close without user Interaction

    Hello

    I have a lot of script that closes a transform file, but it does not save the changes.

    I need the script to save the file and then close without user interaction.

    I looked at the script save slot, but this will require some user input.

    Can an advisor if please how to save and close the file without prompting can be reached?

    Script is the following:

    this.closeDoc (true);

    Look at the documentation for the saveAs method in Acrobat JavaScript Reference. This method is available in Adobe Reader for documents that have save the usage rights.

  • dialog without user interaction

    Hi all

    I would like to use the dialog a button that would just show a message without requiring any intervention from the user.  With the dialog, I want only to display a message to the user. I want the program to continue to function without needing user interaction.  I just want to inform the user that something has happened.  I don't need the user to do anything.  How do I do that?

    Yik

    A more common approach is to use a "register of status" (just a string on the user interface which allows the user an idea what is happening.)

    Here's a building I often use (place the 'Status' command on the user interface, add a control to the referance over 'Status' the connector pane).  This type of engine of the action (see the excellent Ben nugget) allows you to send update messages to the user from anywhere in the instance space application without pop ups all over the screen.

    And if you prefer, you can add cases show, blinking eyes, unblink, select, move, or hide the indicator then reads out and dances

  • Can I delete photos from my Mac WITHOUT removing them from shared albums?

    I only use photo program to create shared to my AppleTV photo albums and display on my iPhone. I keep all my original photos in Lightroom database. I also add photos to my albums shared from two separate Macs connected to the same account iCloud. I'm about to re - format one of my Mac and wonder if I can simply delete all the pictures I imported into the Photos on one of my Macs locally without affecting what is stored in albums shared in the iCloud photo library?

    Thank you.

    As long as you do not remove the shared Albums are under the shared section in the sidebar, that images can be removed from the library and stay in line in the shared album:

  • VMWare Workstation stops in the middle of the night without user interaction

    Hello

    We conduct the following problem:

    We have a Windows Server 2008 hosting two Windows XP virtual machines using VMWare Workstation 7.0.1. Every few days/weeks, we find the host that is running but VMWare Workstation closed without error message either. I checked the log of the virtual machine and here is the interesting part. What can trigger such behavior?

    03:17:02.995 12 August: vmx | VMXVmdbCbVmVmxExecState: Change of State Exec asked the State suspended without reset, hard.

    03:17:02.997 12 August: vmx | CPT current = 0, asking 1

    03:17:02.997 12 August: vcpu-0 | Fact Sync monModules (1).

    03:17:02.997 12 August: vcpu-0 | CPT: monitor build mode 1

    03:17:03.737 12 August: vmx | CPT current = 1, asking 2

    03:17:03.737 12 August: vcpu-0 | CPT: generate 2 monitor mode

    03:17:03.737 12 August: vmx | CPT current = 2, asking 3

    03:17:03.765 12 August: vcpu-0 | Fact monModules (3) CPT.

    03:17:03.765 12 August: vcpu-0 | CPT: build mode monitor 3

    03:17:03.767 12 August: vmx | Progress - 1% (msg.checkpoint.saveStatus)

    03:17:03.767 12 August: vmx | Controlled in VMware Workstation 7.0.1 build 227600, Windows host

    03:17:03.785 12 August: vmx | BusMemSample: initPercent 3 75 hit 42106 checkpoint

    03:17:03.787 12 August: vmx | MM: Renamed E:\Virtual Machines\VM-DEVGW10G\564d914f-6520-6161-6d40-f23fec40dc4c.vmem.\VM-DEVGW10G.vmem

    03:17:03.787 12 August: vmx | 0% (none)

    03:17:03.787 12 August: vmx | Progress 1% (none)

    03:17:03.790 12 August: vmx | Progress of 2% (none)

    03:17:03.790 12 August: vmx | Progress of 3% (none)

    03:17:03.790 12 August: vmx | Increased by 4% (none)

    03:17:03.792 12 August: vmx | Progress of 5% (none)

    03:17:03.792 12 August: vmx | Increased by 6% (none)

    03:17:03.792 12 August: vmx | Advance of 7% (none)

    03:17:03.792 12 August: vmx | Progress of 8% (none)

    03:17:03.795 12 August: vmx | Progress of 9% (none)

    03:17:03.795 12 August: vmx | Progress of 10% (no)

    03:17:03.795 12 August: vmx | Increased by 11% (none)

    03:17:03.797 12 August: vmx | Progress of 12% (none)

    03:17:03.797 12 August: vmx | Progress of 13% (none)

    03:17:03.797 12 August: vmx | Progress of 14% (none)

    03:17:03.800 12 August: vmx | Progress of 15% (none)

    03:17:03.800 12 August: vmx | Progress of 16% (none)

    03:17:03.800 12 August: vmx | Progress of 17% (none)

    03:17:03.802 12 August: vmx | Progress of 18% (none)

    03:17:03.802 12 August: vmx | Progress of 19% (none)

    03:17:03.802 12 August: vmx | Advance of 20% (none)

    03:17:03.805 12 August: vmx | Progress of 21% (none)

    03:17:03.805 12 August: vmx | Progress of 22% (none)

    03:17:03.805 12 August: vmx | Progress of 23% (none)

    03:17:03.807 12 August: vmx | 24% (none)

    03:17:03.807 12 August: vmx | Progress of 25% (none)

    03:17:03.807 12 August: vmx | Increased by 26% (none)

    03:17:03.810 12 August: vmx | Progress of 27% (none)

    03:17:03.810 12 August: vmx | Progress of 28% (none)

    03:17:03.810 12 August: vmx | Advance of 29% (none)

    03:17:03.812 12 August: vmx | Advance of 30% (none)

    03:17:03.812 12 August: vmx | Rise by 31% (none)

    03:17:03.815 12 August: vmx | 32% (none)

    03:17:03.815 12 August: vmx | Progress of 33% (none)

    03:17:03.817 12 August: vmx | Advance of 34% (none)

    03:17:03.817 12 August: vmx | 35% (none)

    03:17:03.820 12 August: vmx | Increased by 36% (none)

    03:17:03.820 12 August: vmx | Progress of 37% (none)

    03:17:03.822 12 August: vmx | 38% (none)

    03:17:03.822 12 August: vmx | Progress of 39% (none)

    03:17:03.825 12 August: vmx | Progress of 40% (none)

    03:17:03.825 12 August: vmx | 41% (none)

    03:17:03.825 12 August: vmx | 42% (none)

    03:17:03.827 12 August: vmx | 43% (none)

    03:17:03.827 12 August: vmx | 44% (none)

    03:17:03.827 12 August: vmx | Progress of 45% (none)

    03:17:03.830 12 August: vmx | 46% (none)

    03:17:03.830 12 August: vmx | 47% (none)

    03:17:03.832 12 August: vmx | 48% (none)

    03:17:03.832 12 August: vmx | 49% (none)

    03:17:03.832 12 August: vmx | Advance of 50% (none)

    03:17:03.835 12 August: vmx | 51% (none)

    03:17:03.835 12 August: vmx | Progress of 52% (none)

    03:17:03.837 12 August: vmx | Progress of 53% (none)

    03:17:03.837 12 August: vmx | 54% (none)

    03:17:03.837 12 August: vmx | Progress of 55% (none)

    03:17:03.840 12 August: vmx | 56% (none)

    03:17:03.840 12 August: vmx | Progress of 57% (none)

    03:17:03.842 12 August: vmx | Progress of 58% (none)

    03:17:03.842 12 August: vmx | 59% (none)

    03:17:03.842 12 August: vmx | Advance of 60% (none)

    03:17:03.845 12 August: vmx | 61% (none)

    03:17:03.845 12 August: vmx | Progress of 62% (none)

    03:17:03.847 12 August: vmx | 63% (none)

    03:17:03.847 12 August: vmx | 64% (none)

    03:17:03.850 12 August: vmx | 65% (no)

    03:17:03.850 12 August: vmx | Progress of 66% (none)

    03:17:03.850 12 August: vmx | 67% (none)

    03:17:03.852 12 August: vmx | 68% (none)

    03:17:03.852 12 August: vmx | 69% (none)

    03:17:03.855 12 August: vmx | Progress of 70% (none)

    03:17:03.855 12 August: vmx | 71% (none)

    03:17:03.857 12 August: vmx | 72% (none)

    03:17:03.857 12 August: vmx | 73% (none)

    03:17:03.857 12 August: vmx | 74% (none)

    03:17:03.860 12 August: vmx | Progress of 75% (none)

    03:17:03.860 12 August: vmx | 76% (none)

    03:17:03.862 12 August: vmx | 77% (none)

    03:17:03.862 12 August: vmx | 78% (none)

    03:17:03.862 12 August: vmx | 79% (none)

    03:17:03.865 12 August: vmx | 80% (none)

    03:17:03.865 12 August: vmx | 81% (none)

    03:17:03.865 12 August: vmx | 82% (none)

    03:17:03.867 12 August: vmx | 83% (none)

    03:17:03.867 12 August: vmx | Progress of 84% (none)

    03:17:03.867 12 August: vmx | 85% (none)

    03:17:03.870 12 August: vmx | 86% (none)

    03:17:03.870 12 August: vmx | 87% (none)

    03:17:03.870 12 August: vmx | 88% (none)

    03:17:04.085 12 August: vmx | GuestRpc: Reset of channel 0 (toolbox)

    03:17:04.085 12 August: vmx | GuestMsg: Channel 0, can't unpost because the previous post is already completed

    03:17:04.085 12 August: vmx | GuestRpc: Channel 0 reset.

    03:17:04.085 12 August: vmx | GuestRpc: Reset the 3(toolbox-dnd) channels

    03:17:04.085 12 August: vmx | GuestMsg: Channel 3, cannot unpost because the previous post is already completed

    03:17:04.085 12 August: vmx | GuestRpc: Channel reset 3.

    03:17:04.132 12 August: vmx | Progress at 89% (none)

    03:17:04.152 12 August: vmx | 90% (none)

    03:17:04.172 12 August: vmx | 91% (none)

    03:17:04.190 12 August: vmx | 92% (none)

    03:17:04.212 12 August: vmx | 93% (none)

    03:17:04.235 12 August: vmx | 94% (none)

    03:17:04.257 12 August: vmx | 95% (none)

    03:17:04.280 12 August: vmx | 96% (none)

    03:17:04.300 12 August: vmx | Progress of 97% (none)

    03:17:04.317 12 August: vmx | 98% (none)

    03:17:04.335 12 August: vmx | Progress of 99% (none)

    03:17:04.365 12 August: vmx | 100% (no)

    03:17:04.452 12 August: vmx | Progress of 101% (none)

    03:17:04.490 12 August: vmx | VIX: : VMAutomation_ReportPowerOpFinished: VarEtat = 1, newAppState = 1875, success = 1

    03:17:04.490 12 August: vmx | VIX: : VMAutomation: ignoring ReportPowerOpFinished because the VMX stops.

    03:17:04.737 12 August: vmx | Stopping VCPU threads...

    03:17:06.490 12 August: mks | End MKSRole pseudocalls, the State was 1

    03:17:06.490 12 August: mks | MKSHostOps_Exit3D: 1: 0

    03:17:06.490 12 August: mks | Fate of MKS Async thread

    03:17:06.490 12 August: vmx | VIX: [2684 mainDispatch.c:915]: VMAutomation_PowerOff: power off the power.

    03:17:06.602 12 August: vmx | Application of TOOLS received in VMX to set the 'enableDnD' option - & gt; '0'

    03:17:06.602 12 August: vmx | Application of TOOLS received in VMX to set the option "copypaste" - & gt; '0'

    03:17:06.602 12 August: vmx | Application of TOOLS received in VMX to set the option "copypaste" - & gt; '0'

    I know that this is perhaps a very obvious thing to check, but sometimes, they are the most neglected

    The server reboots after updates windows for example? or is there no idea in the windows event log to moor with vmware logs?

    If you find this or any other answer useful please consider awarding points marking the answer correct or useful

  • Send Email without user interaction

    Hello everyone,

    She my sample to send an email.

    Sub ApplicationUI::createMessage()

    {

    AccountService accountService;

    AccountKey accountId;

    QList accountList;

    SystemToast * check = new SystemToast (this);

    accountList = accountService.accounts (bb:im::account:Service:Messages, "sms - mms");

    If (! accountList.IsEmpty ())

    {

    accountId = accountList.first (user.user ());

    }

    If (accountId! = - 1).

    {

    m_recipient = "[email protected]";

    const QString subject = "test subject";

    int contactkey = - 1;

    MessageBuilder * buildMail = MessageBuilder::create (m_accountID);

    PushMail MessageService;

    MessageContact mailTo is MessageContact (contactkey, MessageContact::To, QString(), m_recipient);.

    QByteArray bodyMail = "the body is ok."

    buildMail-> subject (subject);

    buildMail-> addRecipient (mailTo);

    buildMail-> body (MessageBody::PlainText, bodyMail);

    Message message;

    message = * buildMail;

    MessageKey key = pushMail.send (accountId, message);

    check-> setBody ("sent Mail");

    check-> show();

    } else

    {

    SystemToast * error = new SystemToast (this);

    error-> setBody ("account error");

    error-> show();

    }

    }

    But there is no send mail?

    I think that there is a problem for the accountkey right?

    Thank you

    dkonigs is correct, you will need to employ a strategy like that. "mail" would probably work better than "Email" however. You can also try and understand based on the Protocol or try something that isn't sms - mms and try something else if you get an error.

  • Illustrator execution of an order of menu without user interaction

    It's a shame that the ability to script Illustrator is not as robust as InDesign.

    I have a script which runs through each path in a file and saves all the colors used in it.  The problem is that he stumbles against certain types of "PluginItem" s.  I was able to fix some of them, for example when it comes across a "Compound" form (as opposed to a compound path or other normal Illustrator object).  In such a case, I can select the path, and then call a menu command to extend this selection:

    if (currentItem.typename == "PluginItem")
    {
        currentItem.selected = true;
        app.executeMenuCommand("expandStyle");
        currentItem = app.selection[0];
        app.executeMenuCommand("deselectall");
        colorsInUse(currentItem);
    }
    

    I had to do some scrounging to figure out how to run this command 'Decompose the aspect' located in the 'Object' menu in Illustrator.  In fact, the only resource I found was a list that is partially in Japanese.  Moreover, this last element of the list is a recursive call to the same function in this if statement.

    So, the above code works for 'PluginItems' that can be corrected with a call to the menu item "object-> expand appearance".  What of those who are not, such as a wrapped object?  With those, I would normally just run the command above "Decaying appearance", called simply "expand...". "Well, only the menu items if displays a dialog box that, when the user clicks"OK"about this, will be properly expand the wrapped object so that the script can continue reading the roads he composed and get color fill and the race.

    I call this menu with a simple 'app.executeMenuCommand ("Expand3")"item; but my problem is this dialog box that appears.  I don't want the user to have to click 'OK' on this subject whenever he appears when the script wants to extend this object, but the traditional "app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;' method does not work.

    Is it possible to extend the items wrapped without going through a dialog pop-up on the user box?

    for the Expand command (and others), you can record and action, disable 'dialogue' in the Panel action and such action with Javascript... I guess that the method is 'doScript "... I guess, I don't have CS6 to test, but it has been posted here.

  • Install or uninstall file cod without user interaction...


    The short answer is no.

    The best situation you can get if you have an application on BlackBerry which acts as an installer and knows where (on the web without doubt) are the programs it wants to load.  He could then download and install them, although the user could infiltrates the guests to restart and permissions when applications running first.

    But the user should have to first install the loader program.

    What you're trying to achieve here?

  • How can I delete messages from Inbox that I can't open BEFORE they appear on Windows 8?

    Is it possible to delete messages received without having them display when using Windows 8?  I don't always read all my emails and I want the option to delete the e-mail without opening it and display on the screen to the right.  When an email is highlighted it opens automatically.  Any suggestion would be appreciated. Thank you!

    Thanks for responding, Kay,

    I think the problem is that I use the app Windows 8.  Today, I realized I can sign in Outlook online and get the app.

    Thanks again, RWsmn

  • Installing TB31.3.0 on a W8.1 workstation; I want to delete the messages on the user agent of TB, but prevent deletion on the server. Where is the switch? When to install

    Hello!

    I have already installed a TB user agent on my workstation 'primary': I can create, read, and DELETE messages ON the workstation and the server.
    I want now to install a user of TB on a "secondary" workstation agent, where I can create, read and DELETE messages on the workstation. But I don't want the secondary workstation to delete messages on the server. (In short: I want that the function "delete" ONLY allowed to my primary workstation).
    Is this possible? Where is the switch ON / OFF? (For example, this feature is available on the agent on my WindowsPhone).
    When I install it?

    Thanks for your support!
    Rgds
    Flamboyant

    Using Thunderbird on your second workstation - the only option would be to create a Pop email account
    so before you download anything, you must configure the account settings to "leave a copy on the server.

    Tools > account settings > account for Pop mail server settings.
    or
    Menu icon > Options > account settings > server settings

    • Letter: look for the e-news at startup
    • Letter: arrival of new messages every xx minutes
    • Select: automatically download new messages
    • Letter: Leave messages on the server '
    • Click OK

    E-mail POP accounts can only download the mail from the Inbox server.
    This will allow you to remove off the coast of the secondary workstation and leave it on the server.
    However, Pop cannot see or download other folders on the server: IMAP only can see other folders these are read remotely. But in IMAP because records are a same as server, removing in TB will remove also off server.

  • Q10 BlackBerry HELP! Delete message no longer works in the hub on Q10

    Touch and hold to select and delete a message from BB hub (i.e. without opening the message) on my Q10 suddenly stopped working! Not sure when it stopped working exactly - only during the last week or two--and the only one * possible change lately, I did is upgraded BBM... but I'm not using BBM so I highly doubt it's that. My software is perfectly up to date and I tried power and turn it back on. No luck. I looked at all the advice and manuals, and forums and can not see all the settings I could have disconnected by inadvertence or anyone else having the same problem.

    Someone at - it suggestions? We believe that it is a hardware or software problem? (Except that I excluded material because there is no other problem with my touch screen feature).

    Any help most welcome!

    Karen

    Try a reboot by removing the battery.

  • Outlook Express downloads e-mail messages for the 2nd time which have been read and deleted a few weeks ago.

    Outlook Express downloads e-mail messages for the 2nd time which have been read and deleted a few weeks ago.  This happens periodically.  Repeated messages are usually a week.

    Maybe they are still on the server (server of your ISP). Make sure that you don't leave copies of messages downloaded from the ISP server that may cause duplicate messages to download.

    It's the only thing I can think of.

    If you are unsure how to check your messages via the Internet site of the ISP, then check with them about how you do that. TaurArian [MVP] 2005-2010 - Update Services

  • I get an error message that my memory is low, but when I go to delete files from my recovery disc it will not allow me too.

    Original title: recovery Partition

    Stays of complete recovery partition may not free up any space. I get an error message that my memory is low, but when I go to delete files from my recovery disc it will not allow me too. There are 6 total folders on my drive:

    Dell, Program files users tools and windows sources.

    The Windows folder and the program are the most important concerts of 6-7 piece. But when I try to delete them or move only to the recycling it is bin-error right and says Destination folder access denied and I need permission for this action... Any idea would be deeply appreciated. Thank you

    I apolgize if I look tense. That's the way I read your phrase... > if I try yo run an app download anything I get this error...

    I suggest that you contact the manufacturer of your computer. Ask to speak to a technician and explain to that person of the situation.

    I'm afraid that I have no idea why your recovery partition gives you message "not enough memory" If you have never touched him.

    Maybe you'd wait for people with better computer skills to help you.

    Thank you.

  • Why thunderbird does not delete messages from hotmail?

    Hotmail messages continue to pour into my Inbox for several days at least after I delete in Thunderbird. Sometimes I have to go to Hotmail directly and delete messages. Why is this? and Thunderbird can be programmed to remove in Hotmail?
    Dennis Bell

    have you tried your email without antivirus analysis? A common cause if mail issues.

    Go here https://blu177.mail.live.com/mail/PopEnableDisableSettings.aspx?n=1828637967 IS allowing the destruction hotmail?

Maybe you are looking for

  • To restore all of my previous Firefox Favorites?

    I uninstalled Firefox and installed again. I want that my old favorites in my newly installed Firefox. I had almost 90 bookmarks. Can you help me find my old profile folder and copy my favorites in my current profile folder?

  • no longer follow the Apple community support link?

    Hello I clicked on 'follow' a thread of assistance community Apple two years ago.  Now everytime I open Safari, it automatically takes back me to this thread that never changed over the past two years. Can't seem to find a way to no longer follow the

  • 15 HP smart touch: pink and green line Horizontal on my touch screen 15 HP smart

    Hello I'm having this problem a few months ago August 2015 rose with a combination of a green horizontal line appear in the middle of my screen with in a few days later the line moved to the taskbar line I said to my self "Yes, I can work with that "

  • Satellite Pro A100-229 manual repair

    Hello Someone would be nice enough to show me where I can download a copy of the owner's manual for Toshiba Satellite Pro A100-229 please? Thank you. Robert

  • Failed to remove the "Hello".

    I am trying to remove 'Hello' relating to a previous installation of itunes in 'Add and remove some programs' but he returned endlessly upward with the message "the feature you are trying to use is on an unavailable network resource" and will not let