Android :: Hardware Keyboard Caps State
Jun 4, 2009
I'm writing a Greek IME, which also needs to translate hardware keypresses. I'm doing this by intercepting onKeyDown() in InputMethodService.
Is there some way to find out what the caps state is (as indicated by the plain/triangle/caret cursor in the UI for lowercase/single-caps/ all-caps, respectively), so I can accordingly output upper or lower case characters? I checked the PinyinIME code in GIT and it tries to track the hardware keyboard shift state by monitoring KEYCODE_SHIFT_LEFT and KEYCODE_SHIFT_RIGHT keypresses -- and it can get out of sync with the true state indicated by the cursor, which can be confusing.
So, the question is: 1. Do I also have to track hardware shift key-down events and duplicate the caps state logic, or is there a way to query the input connection what that state is? 2. If there is no way to query the caps state, then is there a way to reset it to lowercase (since I need to know what the initial caps state is when the IME starts).
View 2 Replies
Nov 5, 2013
So I downloaded the Google Keyboard 2.0 from AndroidPolice [URL] ..... and noticed a problem:
When I'm typing, and I mistype, instead of correcting to the most likely word like it did in the old blue version, now it autocorrects to whatever I mistyped but in all CAPS. So, if I'm typing "that" and instead I type "thay" it will autocorrect to "THAY." This is extremely obnoxious.
View 1 Replies
View Related
Jun 16, 2010
I really like better keyboard pro except for one thing: when i type the phrase/word "lol" it always suggests "LOL" (all caps) and auto types it when i press space (auto-correct feature) the only problem is i almost never capitalize this word, any way to get it to stop doing this without disabling auto-correct?
View 1 Replies
View Related
Aug 11, 2010
I have a compound UI component built up from a ViewGroup containing a number of TextView, ImageView etc. components. Many of these have StateListDrawables as their images/backgrounds. Is there any way of making them select from this drawable based on the state of the parent ViewGroup rather than the component itself? Ideally I want to be able to change the visual state of all children of the ViewGroup (text colour, image etc) based on the state of the ViewGroup, preferably without having to hook up complex logical code. This seems like a fairly common sort of requirement, so I was hoping it would be straightforward in Android - am I going to be disappointed?
View 1 Replies
View Related
Feb 8, 2009
I'm a little confused by what I'm seeing with regards to phone state transitions via the PhoneStateListener. When I receive a call, this is what happens: (call comes in) RINGING -> IDLE (I pick up) OFFHOOK (I hang up) IDLE It's that first transition from RINGING to IDLE without any interaction from me (not ending the call, not answering the call) that confuses me. Do I really have to implement an idle counter to know that an incoming call has really ended? Seems like the reported phone state represents some sort of phone state that isn't the obvious one.Is this a bug or am I just not in tune with the paradigm here?
View 2 Replies
View Related
Sep 29, 2010
I have an EditText. The softkeypad should popup as "Caps on" state, when I want to edit the editText. Is there any way to do this ?
View 1 Replies
View Related
Aug 30, 2010
At first my Hero was lagging a bit on turning caps off when texting so my first two letters would always be caps. but now i have to manually turn it off every time or the whole message will be in caps. it NEVER turns off automatically.I'm using the phone keypad setting BTW. when i turn it sideways the keypad doesn't have capitalization problems but sometimes it doesn't show what I'm typing and i have to get outta the keyboard to see it. besides those two problems my phone is fine. i can accept the not being able to see the message as I'm typing as lagging but the auto-caps has to be a setting right?
View 1 Replies
View Related
Dec 16, 2011
my droid pro is STUCK IN CAPS!!! I have tried to hit shift twice, alt twice, shift/alt together!
View 1 Replies
View Related
Jul 20, 2010
Looks like verizon intends to put caps on bandwith. I am waiting for the fascinate, but don't want to use verizon if they cap the GBs (would rule out things like phandroid and utube). I am already on a plan with verizon, but there is no data plan. Any way to continue on current data plans?
View 15 Replies
View Related
May 29, 2010
How to use caps lock on the eris? also sometimes when I type a word in very fast it starts capitalizing all/some of the letters in the word.. weird
View 8 Replies
View Related
Oct 22, 2010
I use capital words less frequently. I don't want each sentence in my chat session to start with a capital word.
Is there a way to disable this?
View 1 Replies
View Related
Nov 28, 2010
I've Been having this annoying problem after updating to Dj05 clean rom v.3 (and v.6. ) Every time I start a word(seems to only happen in the browser, market). It sometimes misses the first letter and always capitalize the first 2 letters typed. Its more of an annoyance. but I was wondering, if there was any way to obtain a backup of swype, I see that there are all these modded swype themes out there, there must be a way to convert back to stock.
View 12 Replies
View Related
May 10, 2010
For the past week or so I've been having issues with the bottom left corner of my touch screen (in portrait). If I am typing a text I cant select the letter Z or the shift/caps key. I also have a hard time selecting shortcuts in that corner. I am running the 1st 2.1 leak if that makes any difference. Is anyone experiencing touchscreen issues that may have any solutions or should I get a replacement? Does anyone think the OTA might fix this? BTW, I've calibrated my phone several times to no avail. It also happens in landscape but it shifts to the bottom right corner of course!
View 13 Replies
View Related
Apr 18, 2010
For those of you that are familiar with better keyboard. I was wondering about an easy way to switch from the t9 keyboard to the regular qwerty keyboard. I was under the impression that swiping left would toggle between the 2 but all that does is bring me to the numbers and symbols keyboard. I've been changing back and forth to the android keyboard because its faster than going into the better keyboard settings.
View 13 Replies
View Related
Nov 10, 2010
I tried it and it works so far.
Dev = ne0fhyk from XDA.
From the XDA forum: Link to app page = [APP][ROOT/Keyboard] Keyboard Manager - Dual keyboard: Portrait/landscape switch - xda-developers
Verbage:
Keyboard Manager allows you to customize what keyboard (input method) appear on input based on your phone orientation.
It displays the keyboards you have enabled on your android device, and let you select one per orientation (landscape/portrait).
As your phone switch orientation, the app automatically switch the keyboard.
Requirements:
- Rooted android device (app was tested on Samsung captivate 2.1)
- Root Explorer app, or similar app that allows you to edit the permissions of a file.
To install:
1- Download the app (KeyboardManager.apk) on your device sdcard.
2- Using Root Explorer, move the apk file to /system/app
3- Using Root Explorer, edit the file permissions like below:
-- User: 'Read/Write' checked
--Group: 'Read' checked
--Others: 'Read' checked
4- Exit Root Explorer
The app should be visible in your launcher as 'Keyboard Manager'
Update:
- Added option to disable notification icon
-' start on boot' feature is disabled because it's not yet complete and tested... Sorry for the confusion
Bugs:
-On certain applications (i.e: Messaging on Samsung Captivate), the input window occasionally freeze on orientation switch. Exiting the app, and resuming should fix it.
The app is still in development.
View 11 Replies
View Related
Aug 13, 2010
I would like to play around with some ideas and develop a soft keyboard for Android to replace the default one.
Is there any general information about soft keyboard development for Android out there?
Any best practices or guidelines?
Can I do with my keyboard application pretty much anything I could do with a normal Android application?
Can I do HTTP connections to synchronize keyboard data with a cloud DB and other phones I have?
Can I open other windows/screens from a key press, e.g. to display a custom input interface different to a normal QWERTY one. If that doesn't work, can I use a pop-up dialog instead?
View 3 Replies
View Related
Apr 27, 2009
How to detect if the phone has a physical keyboard, and not an on screen software keyboard? The reason I need to do this is because my app needs multiple keys pressed simultaneously, and this isn't possible with an on screen keyboard.
View 5 Replies
View Related
Oct 13, 2010
I have a tabbed view with one Activity per tab, and when I switch from the first tab, which has a TextView, to the second tab, which only shows a clickable list, the soft keyboard is still there. I want it to go away.
I tried this:
CODE:.............
But this does not work, because there is no relevant view to provide, as there is no View on the screen that takes keyboard input.
View 1 Replies
View Related
Nov 1, 2010
I am new in Android and i am working to make an on-screen keyboard which can be visitable via arrow(direction) keys of my external keyboard. I mean i wanna move left, right, up and down in the on-screen keyboard's UI (keys) with pressing arrow keys from my external(hardware) keyboard. The key that cursor is on should be focused, when i press an arrow key from my external keyboard the focused key should change and when i press "enter" from my external keyboard it should be operated.(written to the screen etc.) How can i make this? Is there any idea? How can i make virtual keyboard's keys visitable? It doesn't look like moving around a matrix of buttons.
View 2 Replies
View Related
Aug 17, 2010
I've changed the keyboard to Chinese, to see what it was like, but don't know how to change it back to the Android keyboard (the symbol for changing input doesn't appear to be there any more).
View 2 Replies
View Related
Jul 8, 2010
How to do occur hardware keyboard event using software keyboard?
View 2 Replies
View Related
Nov 9, 2008
I'm getting the G1 next weekend and am wondering how long until a virtual keyboard will be available. I really like the idea of having a full slide-out keyboard but I would also like a virtual one so if I'm not wanting to say much I can just use the virtual keyboard or if I'm in an area where it needs to be quiet I don't need to have the sound of the keyboard sliding open.
View 14 Replies
View Related
Oct 27, 2009
Is it possible to know when the user unplugs a charger or headsets from the device so I can trigger something..
View 2 Replies
View Related
Jan 6, 2010
I'm trying to get current service state of my phone. It can be easily fetched with get State() method of Service State when a on Service State Changed (Service State service State) callback is invoked: Code...
View 2 Replies
View Related
Sep 1, 2010
can someone helpme out with how to save state of the app when the screen orientation is changed i read the development guide at http://developer.android.com/guide/topics/resources/runtime-changes.html#HandlingTheChange
But i dont know how to define the method collectMyLoadedData();
View 2 Replies
View Related
Nov 3, 2009
I have an app that runs in the background indefinitely provided there is work to be done. I want the app to go to sleep if there is no work to be done and the user is idle. The second part has me stumped. On Windows Mobile I was able to poll the power state to determine user idleness. On BlackBerry I was able to poll the device idle time. However, there does not appear to be a way to determine user idleness on Android.
Instead of polling for user idleness directly, I thought I might be able to use the on/off state of the screen. There are 2 intents ACTION_SCREEN_OFF and ACTION_SCREEN_ON and I was able to setup a listener for these (BroadcastReceiver). The problem is that I do not know how to determine the current state of the screen at the time I register the listener, therefore I have to wait until the next screen on/off change to know anything. The docs speak of some intents that are "sticky" and thus will allow the current state to be determined, but the screen events do not appear to have that property. What am I to do?
In general, I find the lack of support for polling system state properties (e.g. screen state, power state, signal strength) in Android to be annoying. It's cool that one can listen for changes in system state rather than constantly polling for them, but one still needs to know the current state of the property at the time the listener is registered.
View 10 Replies
View Related
Aug 24, 2010
I need to save some state when the user leaves my game during game play. Saving the state doesn't seem to be an issue, but I can't figure out how to restore it. The onCreate function isn't called when the Activity is resumed (only when it is first created), so I can't get my state back there. Logically, I would use onRestoreInstanceState, but it isn't being called.
CODE:..........
I see log output from onSaveInstanceState, onResume, onCreate, etc, but I never see a log message from onRestoreInstanceState and savedState is always null. Why isn't onRestoreInstanceState being called, and is there another way to get my state back?
View 1 Replies
View Related
Feb 26, 2010
My business partner and I have a small disagreement, and I'm trying to figure out the best way to resolve it. First, I should say I started out his way, and switched after reviewing a lot of applications. The background is this -- we have an app, with some controls which can be locked. A lock/unlock icon is put next to the lockable controls. You can long-click the icon, and it brings up a context menu with several items, including the item for the lock state.Currently, it brings up a "Locked [X]" or "Locked [ ]" item -- that is, a menu item with a checkbox that can be checked or unchecked, and the lock state is changed accordingly.He would like me to change it to reflect the action being taken. I.e. the menu item would say "Lock" if it is currently unlocked, and "Unlock" if it is currently locked.It would be acting as a toggle in either case; the only difference is how it is presented to the user.
View 7 Replies
View Related
Apr 24, 2009
At the moment I am trying to update my application to Android 1.5. In Android 1.1 I was able to detect the BT state with catching the following broadcasts: Code...
View 8 Replies
View Related
Aug 30, 2010
I am writing an app where I get all the data from the rest call and display all the data in a custom component list(based on Linear Layout) which is added to a LinearLayout. I write this code in onCreate of the activity. The problem is when I switch activity using startActivity, and come back to the calling activity (using startActivity) then onCreate is called again. I see onPause, onStop called when I call other activity. Is there any way that I can save the application's state?
View 1 Replies
View Related