I have a phone number that is being linkified on Android 4+ devices.
Linkify.addText(textView,pattern,scheme);
The problem I have is that extensions are not recognized by the phone. I have tried adding commas and p/w to no avail. I have also tried a webview with an anchor element instead of a linkified textview to the same result. Everytime only the phone number is dialed and never the extension. Has anyone been able to get extensions working on Android 4+ and if so what was your method?
For the textView string I would have the following:
"8001234567,555"
The number is dialed correctly but the extension is not added.
Related
Looked through all the answers and tried a few things none of them worked.
The phone number is programmed in and works on apple phones and dials the extension - but it does not work on Android.
We tried adding commas before the extension and also tried adding a "w" instead of "pp", none of these work. This was all we read when going through previous questions and responses.
For instance, we tried inputing these lines:
Number here
Number here
Number here
Number here
Any other suggestions to get this to work on Android phones?
I've been struggling for a few hours/days now trying to figure out why only on samsung devices would the webview not receive any input in a text field, it appears to be fine on other manufactures e.g Sony and nexus just not Samsung Note running 4.1
The input box gets focus and the keyboard highlights the selected letter it just does not appear in the input text field, but there is one strange thing it will accept other certain characters e.g. € £ and other foreign characters just no other standard ones or numbers.
I have tried a few different things like webView.getSettings().setJavaScriptEnabled(true); and webView.requestFocus(View.FOCUS_DOWN); neither did the trick :(
The page I am trying to do input on is on the web and not an internal page, but the same issue happens when using google. e.g.
I am using the autoLink="All" feature of TextView to linkify all urls and telephone numbers in a TextView.
The problem I am facing is that on emulator, certain numbers are identified as phone numbers and are clickable.
On real device, these numbers doesnt get identified as phone numbers and are not clickable.
Say If the TextView contains a number 163111, On emulator it is clickable. Clickng this takes user to dialer.
But on Nexus 7 this number is not clickable.
I had a look at the Linkify.addLinks() method, which I thought would explain this behaviour, but failed to find an explanation.
Has any one faced this problem?
What may be the reason behind this?
try "autolink" property for textview.
android:autoLink="email|phone|web"
Never mind. The emulator was running on 4.2 and Nex 7 was on 4.3
https://android.googlesource.com/platform/frameworks/base/+/430fc97
The modifications in Linkify code was the reason.
I am working on for creating mobile web application using Angularjs. In one of my page, i used text area for getting some information from user. Also showing users how many characters more remaining, so they aware of maximum limit.
The issue i am getting is, UI is not updating the remaining characters value, during typing inside text area. Furthermore, remaining characters value updates, when user press enter or go to typing next line in text area.
Above issue is not reproducing in PC web browser, iOS safari browsers and Samsung Galaxy phone browser. Only issue i am getting is for Android Tablet running Android OS version 4.0.4.
Here is sample code:
<textarea id="textAreaId" name="textAreaName" class="input-block-level" rows="7" placeholder="Enter your text here." ng-model="oTextArea"></textarea>
<div>length {{oTextArea.length}}</div>
<div>text {{oTextArea}}</div>
In above code length and text div did not update value during typing inside text area for Android Tablet running Android OS version 4.0.4.
if anyone know any solution or reason why it is happening for Android Tablet, then please let me know. Thanks in advance.
I am using Html.fromHtml to setText to my textView. Here is my text.
The figure below is not drawn to scale. Which of the following will most likely to be the value of ∠P?
In this sentence, angle sign is html value ( ).
It is working fine in emulator. I also tested on some android device (some unnamed tablets an ebook readers). They are ok. But in my android phone (Sony Xperia X8), it is not rendering angle sign. Instead, it is showing .
Is there anything wrong? Why is it not being consistent across devices although it is just a textview rendering simple html? More importantly, how could I solve this issue. Following is my graphical representation of my problem.
Edit: It is not only in textviews but also in webviews. I changed using webview instead of textview. Unfortunately, it didn't work out as well. Anyone got any idea?