BB10 WebWorks: how to call SMS app with content filled beforehand and without a phone number?

Say that I want to share content via SMS, App can prepare the content, launch the SMS application and users enter the number of the recipient.

Is this possible? BB10 WebWorks call APIs seems to require pre-filling the destination number.

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

Thank you

I found another way, instead of directly calling the SMS app, I can call target selector API actions and from there I select SMS or Email or BBM or Facebook or Twitter, LinkedIn, line break work well, a single API call solves all registered social work services.

https://developer.BlackBerry.com/HTML5/APIs/BlackBerry.Invoke.card.html#.invokeTargetPicker

try {}
application of var = {}
Action: "bb.action.SHARE."
data : 'Line 1' + '\n ' +.
'Line 2' + '\n ' +.
'Line 3' + '\n ';
MIME: "text/plain",
target_type: ['MAP']
};

() blackberry.invoke.card.invokeTargetPicker
asks,
"Share."
function (successEvt) {},
{function (errorEvt)}
);
}
{} catch (e)
}

Tags: BlackBerry Developers

Similar Questions

  • How to share an app with preflight 2015?

    How to share an app with preflight 2015?

    All that you would like to share an application through preflight must be a 'user' on the project for that application. Thus, you can add a user who may not have 'view' permission, but as long as their Adobe ID is part of this project, this app will appear in their preflight application when connected with their Adobe ID

    Basically, preflighting is associated with the Adobe ID. the user any project is associated with an ID Adobe ID will appear when this Adobe ID is registered to control upstream.

    Hope that helps!

    -Tommy

  • How to call a form with splashing around by clicking on a record with a time where

    Hi all

    How to call a form with splashing around by clicking on a record with a time where clause. I mean when I dip, click current record I want to call another form with the details of the
    record with onetime where clause. Can someone help me in this regard.

    Now, I'll call you a form with parameter with where Jadi but this should be avoided.


    Thanks in advance

    Arif

    Maybe this helps http://andreas.weiden.orcl.over-blog.de/article-28180655.html

  • How can I restart firefox with the same tabs and windows?

    How can I restart firefox with the same tabs and windows?

    It is not in the file menu or tools. I get nothing when searching for help. FF still knows how to do it, say to update extensions.

    I know that I can do by saving my session, coming out, reboot and restore the session but is there a single command to do this?

    Thank you. -David

    I have attached a screenshot showing how to select restore automatic session just above the setting of the Home Page where it says "When Firefox starts".

    With this set, you can restart Firefox manually out using the menu-

    • "3-bar" menu button > button "power".
    • (menu bar) File > Exit

    -and then restart Firefox.

    If you want a real reboot with a click of button, you can check something on the Add-ons site: https://addons.mozilla.org/firefox/

  • How to solve the problem with the wacom tablet and the polygonal lasso tool. It does not work with a pen.

    How to solve the problem with the wacom tablet and the polygonal lasso tool. It does not work with a pen. I have install windows 10 and fresh, new drivers for wacom bamboo, could he makes problems or there is a problem of photoshop?

    It should do.  You use one of the buttons of pen maybe?  Just touching wheels with the pen with no buttons or modifier keys.  Press ENTER to close the selection.

    Personally I never use the lasso, Polygonal, but rather just the Lasso tool by using the ALT (Opt) to operate the Polygonal tool.  I also use the mouse instead of the Tablet for the selection of cutting edge.  It is a little too uncertain where the point will go when hovering the stylus above the image.

  • How to sample the color with the eyedropper tool and have it be the foreground color?

    How to sample the color with the eyedropper tool and have it be the foreground color?

    Use the keyboard shortcut to set the default foreground sample.

    The sample of foreground (top left in the screen shot) is visible and you just click on the color with the eyedropper tool to change.

    You can also use x to exchange the undertone in the foreground if you want to change that.

  • Adobe Capture CC is available for use with Samsung Galaxy S7 and edge S7 phones?

    Hi Adobe community I have so far struggled to get an answer on the following question: is Adobe Capture CC available for use with Samsung Galaxy S7 and edge S7 phones? and I was wondering if there is someone who can help?

    Any assistance is much appreciated.

    Thank you

    Bruce

    Hi Bruce,.

    Yes. I think that these two devices are supported. GooglePlay installation problems?

    Let me know and I can talk to the product team.

    Sue.

  • How to cancel my membership of adobe reader? Is there a phone number? Thank you

    How to cancel my membership of adobe reader? Is there a phone number? Thank you

    If it's the Acrobat online services subscription you want to cancel: ices.html https://helpx.adobe.com/x-productkb/policy-pricing/cancel-subscription-acrobat-online-serv

  • How to call texting app for composing the sms of the CPP

    Hello

    I am trying to invoke the SMS app to send a msg predefined number.the predefined contact problem is how to define the documentation data.in they mention on pps-encoding. I have no idea on pps-encoding and to set the data.

    so, please help me solve this problem.

    thanking you.

    Thanks for the reply.

    I found another way.

    .

    request.setUri ("sms:"1234567890"?) body = Hai how are you");

    This makes my job

    It sets the number to 1234567890

    and the body of msg for 'hai how are you. "

  • How to create an app with space name?

    Hi all

    How to create an application with the space, for example "Hello Word" name When I run my Simulator, I got ' Hello$ 20World "instead. I use the plugin for eclipse for development. I can see the Application descriptor for my application, and it shows the thin space. I tried to change the Blackberry project properties tab generate file output name, but it doesn't help in any way. Please advise...

    Goto Blackberry project properties

    Click the general tab

    Write in title = "Hello World".

    and you can see your title of the modified project

    I hope that you ask for it only!

  • How to call oracle Standard form of page style and element OFA should be 'Link '.

    Hi friends,

    I am new to OFA, I want to know how to call oracle OAF page Standard form and style of element must be "link."

    If I click on the element, it should put me in oracle Standard form.

    No button style of the element must be point "link."

    Please help me.

    Thank you

    Thiru.

    Trapani,

    It seems that your link triggers the Action, or you capture does not correctly.

    Add a debug message in your code and see what is printed.

    String eventParam = pageContext.getParameter(EVENT_PARAM);
    System.out.println("eventParam : "+ eventParam);
    if("openForm".equalsIgnoreCase(eventParam))
    {
      System.out.println("Inside If"");
      String destination ="form:SQLAP:PAYABLES_OPERATIONS:STANDARD:AP_APXSUMPS";
      pageContext.forwardImmediatelyToForm(destination);
    }
    

    Also check the settings:

    In your first post is the name of the function: AP_APXSUMPS, but the recent told FND_APXSUMPS.

    The resp_key was also PAYABLES_OPERATIONS and now PAYABLES_PS_FR

    As a test for the link, use the one that works, and then change appropirately.

    See you soon

    AJ

  • AS3 tutorials for students - App with basic navigation, buttons and animated content

    Hello

    I am looking to buy two beginner tutorials for AS3 for my HND interactive media students.  They are required to create an application with basic navigation buttons and content driven, maybe a gallery of pictures too.  Some students have difficulty understanding the foundations, e.g. functions etc.  I'm also looking for the extension exercises for students who understood that.

    Any help would be appreciated.  I am familiar with Doug Winnie, but find its too advanced tutorials.  I also know the lack of manual Flash.

    Thank you

    Anna.

    Adobe Flash Professional CC Classroom in a Book (version 2014): Russell Chun: 9780133927108: Amazon.com: books

    There are many others available. Search Amazon for "manual Flash software" and you'll find a bunch that are still in print.

    Lynda.com has tutorials web-based.

  • What happens if you never connect your iphone to itunes? I'd be able to long on any itunes with my apple account and retrieve my serial number or imei?

    MI iphone was stolen from a friend and it has been registered with icloud account that I currently have access. The person must have disabled find my iphone and remove my icloud because it does not show my camera on him find my iphone app. It does not even appear on apple.com, or anywhere else. Is there anyway I can retrieve my serial number or imei to block my iphone? I bought the phone in a second-hand store. they may or may not have the serial number. I forgot my old phone number, but my phone service was t-mobile.

    There is no way they could have disabled AGFI without the credentials of your iCloud account... If you did not fall victim to a scam (e-mail or a text message directing you to connect with iCloud to see your phone, etc.), you need to consider if the "friend" that he stole was the password for your account.

    Don't not accusing them, but...

  • How to get the Pic of the address book Contact gave a phone number

    Hello

    How can I access the Blackberry address book and retrieve Contact's photo?

    I tried:

    String phoneNumber = "1234567890";
    Vector contactList = new Vector();
    contactList = Phone.getContactsByPhoneNumber(phoneNumber);
    

    except with a real number, of course. However, if I keep this code, I get an error saying ClassNotDefFoundError or something like that. on the line of Phone.getContactsByPhoneNumber () .

    Is there another way I can get the pic contact associated with a single address book contact?

    Later, I'll probably use this code to get the photo of contact:

    Contact contact = (Contact) contactList.elementAt(0);
    byte[] byteStream = contact.getBinary(Contact.PHOTO, Contact.ATTR_NONE);
    EncodedImage contactPic = EncodedImage.createEncodedImage(byteStream, 0, byteStream.length);
    

    So as you can see, I just need to get in contact for a specific contact record.

    Thanks for any help.

    If anyone is interested, he will get the peak of contact contact, based on the phone number. It assumes there is only one contact for this number, so if there is more than one, it will get the peak of contact for the last contact only, because the loop will overwrite the previous photos.

    BlackBerryContactList contactList = (BlackBerryContactList) PIM.getInstance().openPIMList(PIM.CONTACT_LIST, PIM.READ_WRITE);
    
    // Get a list of contacts that match the phone number (I only want last 8 digits only)
    Enumeration _enum = contactList.items(inputNumber.substring(inputNumber.length()-8),BlackBerryContact.TEL);
    
    while(_enum.hasMoreElements())
    {
        BlackBerryContact c = (BlackBerryContact)_enum.nextElement();
        if (c.countValues(BlackBerryContact.PHOTO) > 0)
        {
            byte[] photoEncoded = c.getBinary(BlackBerryContact.PHOTO, 0);
            byte[] photoDecoded = Base64InputStream.decode(photoEncoded, 0, photoEncoded.length);
            EncodedImage contactPic = EncodedImage.createEncodedImage(photoDecoded,0,photoDecoded.length);
            String picType = String.valueOf( contactPic.getImageType() );
            // If you want to store the photo as a HEX String
            String hexPic = byteArrayToHexString(photoDecoded)
        }
    }
    

    FACT!

  • How to call my app of the BBM (webworks bb10)

    Hi all

    I am writing a game I'd like to as BBM to work with connectivity. All I need is that when the user of the application sends an invitation to another contact on BBM, the contact receives a message saying "you have been invited to join a game of... #appname" Please click on this message to accept.

    Once the user clicks on the message she calls my application passing two variables (which can be strings of plain text).

    I looked at all the samples and got more confused that I don't know what format data must be sent to bbm in so that he can allow the by clicking the message to invoke the app I guess it must be some kind of custom mime type, but I'm tired of trying to figure

    I use webworks for bb10.

    Help, please.

    The file must be saved in the browser workflow too.  Currently no way around this.

Maybe you are looking for

  • the laptop volume is low

    volume... Hello... Hoping you can help... I have an Acerr laptop, Aspire 5738Z and the volume is not terrible on it, is this standard with this model or is there something I can do to adjust / sort it... Have you looked at the volume mixer and evn at

  • Connection to printer for Windows 10

    Recently downloaded Windows 10.  Now my Canon mp160 printer will not work with it and that they do not recognize. I'll have to buy a new printer?

  • best practices of restart patch

    Microsoft has a best practices documented how long after that patching a reboot must be done when necessary?

  • HP Jet P1102w Laser printer

    The red bar that the book goes... is red hot right now and the paper smokes when he passes by... WhatsUp?

  • Windows 7 does not recognize iPhone

    Hello I have a new laptop running Windows 7 64 bit.  After I installed iTunes, when I plug my first gen iPhone, it triggers iTunes to open, but causes iTunes to freeze immediately.   If I open iTunes and then connect the iPhone, same thing - iTunes a