Is there a way to make text that contains a phone number show up as a clickable link using the Blackberry LabelField?
Example:
"Call me at 1234567" - the 1234567 would be a link that could be used to launch the phone.
This is easy to do on the iPhone UITextView but can't seem to find anything similar for Blackberry... Or do I need to parse the text manually for phone numbers, URLs, email addresses, etc.?
you can use ActiveRichTextField
It will underline the mobile number, URl's , email addresses, etc and on click it will add appropriate menu items like call, open in browser, etc
Related
In SAP Marketing, I have the standard template for SMS messages in Content Studio.
I want to insert a link in TEXT-block of this template and send it via SMS, but there's a problem: for TEXT-block, there are no properties active that are necessary, except of "Insert Attribute". I can't find "Insert Link" attribute.
SMS Template in Content Studio (What I have now):
I want to have this result in the end because there's a property which makes it possible to insert a link in TEXT-block:
Instead of emails, where you send HTML, SMS contain simple text.
If you click on the link-button in emails, the editor inserts an HTML-element:
LINK TEXT
But luckily, most of the smartphones are highlighting links without you have to mark it as a link.
This is very similar to what happens with phone numbers or dates in SMS.
So you just have to paste in your link and you are fine.
Here you see how my iPhone renders an SMS from my provider informing me about my left data volume: nothing. :-(
I'm building a calling app, and the aim is to allow users to select to call a phone number in another app, and for our app to open in the 'Open With...' list, so users can call the person on our app instead of the default calling app on iOS.
I've found that I can add document types to identify valid formats which can open the app. What I'd like is when someone clicks a phone number in another app or online, they get the option to open it with my app. To link a phone number, obj-C uses a URL string, and the doc type for that is public.url.
How do I differentiate between that and a normal URL so my app can open when someone clicks a phone number in another app? Thanks in advance.
I am trying to replicate the functionality of choosing recipients in iMessage. Where you can either type the phone number or email address in the textbox or choose from the addressbook.
I am using the SwiftAddressBook Wrapper for addressbook access. Made a textbox, where user can type or tap a button to open address book UI and choose an email or phone number which is presented in the textbox as text.
My question is how to present the selected or typed phone/email as an entry instead of just text in the text box just like iMessage does. In iMessage. when you tap on an entry it is selected as a whole and you can delete it with backspace. Also additional entries are added with coma separation.
It looks like the term for this is "TokenField". If you search for that you can find some libraries. Here is one that looks promising: https://github.com/thermogl/TITokenField
I have been looking for a way to send a hyperlink of a URL with a different appearance to a mobile phone via SMS or MMS.
The only example of this that i can think of is the following:
[url=http://www.google.co.uk]Click Here[/url]
So the above code will show:
Click Here
when you click the 'Click Here' link it will open up http://www.google.co.uk.
Is there anyway that this can be replicated by using SMS or MMS?
As far as I know, there is not a generally accepted specification for rendering text messages with modern content. Though certain mobile operating systems (or rather messaging applications to be precise) might support inline links, it is not fail-proof and it won't work on every device.
Also, those smart-ish applications would not rely on a custom syntax but rather search for urls and make those clickable. That means it's not possible to set a custom text for a hyperlink in this context.
You can´t include hiperlinks in text messages, although most mobile browsers allow click in links. Also You could send a wap push (it´s a special binary sms) that it includes one link.
I'm developing a WebWorks application for the Blackberry Playbook. This page in their documentation says
You can display a specific type of virtual keyboard, depending on the
type of input that is required. In addition to the default keyboard,
you can choose from a selection of keyboards, such as a keyboard
designed for typing in an email or a keyboard designed for typing in a
browser.
https://bdsc.webapps.blackberry.com/html5/documentation/ww_best_practices/ui_components_tablet_microsites_1877108_11.html
However, I can't find any documentation on how to actually DO that. I have some fields for entering an email address, so I'd like to give the user an email focused keyboard.
This is a WebWorks app, not Flash. Any ideas?
Those special keyboard layouts are determined the type attribute of HTML5 <input> tags. Here are some of the "special" types defined in the HTML5 specification:
tel
url
email
number
When selected, the respective keyboard layout will appear for you.
Blackberry has also their own document where they list all possible <input> types available under WebWorks.