Numeric keyboard not displaying when porting Android app to BB10 - android

I have an EditText field in my application with inputType="number". When selecting the field, the normal keyboard appears; it shows the normal Qwerty keyboard without numbers.
I want the keyboard to display the number keys in the keyboard rather requiring the user to manually switch to enter numbers. Has anyone faced a similar sort of issue? Is there any workaround for this?
I'm running the latest BB10 OS on a Dev Alpha device (released Jan. 30, 2013).

Related

Android: Nougat (Huawei Honor 6x) : Urdu text not displaying correctly

Urdu/Arabic Text is scrambled every where in the operating system ever since I have updated my Huawei Honor 6x from Marshmallow to Nougat. Screenshot is attached. Even when i type the urdu text, incorrect text is typed.
There is no option in the OS to add Arabic language.
What can be the possible solution except downgrading?
Just follow above steps:
Download and install GO Keyboard from the Google Play Store
Open the app and follow the on-screen steps to enable and switch to GO Keyboard.
Urdu Keyboard on Android Phones
After you enable it, go to “Input Settings” in the app and then go to “Input language settings”.
Scroll down till you see Urdu (in Urdu font).
Urdu Keyboard on Android Phones
Check the box. A popup box will open to download the language files. Tap the ‘Done’ button.
Urdu Keyboard on Android Phones
Download “Urdu for GO Keyboard” app from the Android Market.
Urdu Keyboard on Android Phones
Now open any app for text input (i.e. Messages) and pop open the keyboard.
Tap the ‘EN’ key on your GO Keyboard and it will change to Urdu keyboard.
Urdu Keyboard on Android Phones
I hope this tutorial was helpful to those who want to type in Urdu on Android phones.
GO Keyboard is not the only app which allows you to type in Urdu. MultiLang Keyboard also has Urdu language support.
finally factory reset worked,
{SOLVED} Called huawei support, they suggested the following working solution. After the successful update, if user is facing this language related issue. Again Factory reset should be done wiping Internal Storage as well. (backup should be done before that if necessary) This solved problem.
After the update. Performing a reset again solved the issue.
Note: Please backup your data before doing so.

How to prevent android browser keybord from switching to default on input value changed by js?

I'm using Masked Input plugin for jQuery (Version: 1.3.1) on my site.
Mask of the input is following:
$('#pan').mask('9999 9999 9999 9?999 999', {placeholder:" "});
This is for credit card pan so only digits and spaces are acceptable.
When android browser user taps on the input he needs to switch his keyboard to digital.
That's what he does.
But after entering a single digit keyboard switches back to "English letters".
I made an investigation and found out what couses this effect. It's this line in plugin:
input.val(buffer.join(''));
This plugin fully rewrites the value of an input on each button press.
Can anybody advise a solution of how to deal with this behavior? (i mean how to prevent keyboard from switching to default on input value rewrite)
P.S. Not all phones behave like this. And not all version of browser does.
My test "stand":
HUAWEI P2-6011 (android version 4.1.2)
P.P.S. Please don't suggest becouse it works for digits only, but i need spaces too. If i switch pattern to something like '^[0-9 ]+$' - problem is not solved.

Force android to display email type keyboard in HTML5 page based web application

I have designed an HTML5 page which consists of a input box of type email. This HTML5 page will be displayed in Android application in a webview.
<input type="email" autofocus id="emailid"/>
The problem I'm facing is that Android doesn't show the email type keyboard which has the "#" and ".com" symbol by default.
How to force Android to display email type keyboard using any of these?
Thanks in advance :)
Currently, HTML5 is not fully supported on devices running 2.2 or below.
These are not supported:
input type=search
input type=tel
input type=url
input type=email
input type=datetime
input type=date
input type=month
input type=week
input type=time
input type=datetime-local
input type=range
input type=color
input type=checkbox
input type=image
textarea
select
datalist
keygen
output
progress
field validation
form validation
APIs
Spellcheck attribute
Session history
Geolocation
Device Orientation
FileReader API
Local Storage
Access the camera
Full Screen
And the confirmation: http://www.petefreitag.com/item/768.cfm
Try running your app on ICS or JB and it should work.
Try to detect version of Android OS on server and to the next:
1) if OS = ICS or above => use native html 5
2) if OS < ICS => show custom html keyboard
Also for OS < ICS in your app disable soft keyboard.
Keyboards are completely pluggable in Android - and therefore somewhat unpredictable. Device manufacturers almost always ship a custom keyboard (which can introduce problems, For example: I've seen some HTC keyboards not handle IME_ACTIONS). Also, users are free to download and use many different keyboards from the Play Store. Certain keyboards may not have an email style - maybe because the developers didn't think of it, or maybe because it's not appropriate. For instance: Something like Graffiti keyboard might legitimately ignore the email style completely?
I believe the best you can do is handle the cases that are supported. If >=ICS supports the input type="email" and older versions don't, at least over time your user base should shift towards a higher percentage of users getting the behavior you want.
I don't know what your app looks like, but another option if you really want the # sign and .com keys to be visible would be to use a hybrid approach where you add only those keys to your html and allow users to tap those or use the normal pluggable Android keyboard for everything else (or # signs and .com's also - if their keyboards include it)

can one prevent the Android device emulator from popping up the onscreen keyboard?

I am developing an Android application. What I find most annoying during testing is, that the emulator always pops up that on-screen telephone keyboard whenever I click into a text input field. Since I input my data with the keyboard anyway I find that most annoying. Can one switch that on-screen keyboard appearance off? Or can one change that so that it at least presents a mini-qwerty keyboard as my actual device does, not that old-fashioned T9 keyboard?
Michael
You can disable the virtual keyboard in Settings->Language.
If you change orientation of the emulator it won't popup (KEYPAD_7, Ctrl-F11).
If you use cursor keys instead of clicking the fields, probably won't popup either.
Whatever you do, keep in mind that in actual devices it usually pops up anyway.

How to input ampersand(&), asterisk(*) and other characters in android 2.1 emulator?

I'm trying to add a new account in android 2.1 emulator. When I'm entering my password, I found it's impossible to input some symbols, such as #,$,&,*, except #. For example, while I press shift+7, only 7 is shown in the password textview.
Any suggestion?
Entering these special characters into the emulator works correctly for me (Linux, US International keyboard layout). Which platform are you using? Have you tried the emulator's on-screen keyboard?
Have you tried toggling the input method from alpha to numeric/symbol?
I had the same problem. On your phone, you have to ensure that the settings for the keyboard/locale match your computer settings. Find the Settings icon and go from there.
I couldn't enter special characters with the pop-up soft keyboard, the PC's hardware keyboard, or the gray keyboard to the right of the emulator window on 2.3.3 emulator (API10).
However, when I tried on the 4.0.3 (API15) emulator, the PC's hardware keyboard entered symbols without a problem. The gray keyboard to the right of the window would just repeat keys if I held them down to get to the symbols. The soft keyboard wasn't available on my configuration and I didn't spend any time trying to configure it to do so.

Categories

Resources