Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Android


Advertisements:










Android :: Clear Focus And Remove Keyboard?


If I tap it the softkeyboard will popup however when I press "enter/ok/return" then the EditText control it still has focus and the keyboard up. How do I close the softkeyboard and remove focus from it?


View Complete Thread with Replies

Sponsored Links:

Related Forum Messages:
Android :: Remove Auto Focus / Keyboard Popup
I have a screen where the first field is an EditText, and it gains the focus at startup, also popups the numeric input type, which is very annoying. How can I make sure that when the activity is started the focus is not gained, and/or the input panel is not raised?

View Replies!   View Related
Android :: How To Remove Focus From Single EditText?
In my application I have a single EditText together with some TextViews, button and a spinner. My EditText receives focus since it is the only focusable view in this activity, I believe. My EditText shows with an orange border and cursor on the field. Now I would like to remove the focus from this field (I don't want the cursor and border to show). Is there a way to do this? I have been able to focus on the button by doing button.seFocusableInTouchMode() and button.requestFocus(). But this highlights the button and is obviously not what I want.

View Replies!   View Related
Android : Remove Focus From Current Activity
How would i remove the focus from an activity which has just being installed/started,

so the user's focus will remine on the previous one?
(while the new activity remine in the stack and will work in the background)

the prob is that when i start this new background activity, until i wont press back or home, the ui is stuck. and i would like to fix that some how?

View Replies!   View Related
Android :: Next Focus And Soft Keyboard
I have a form that is working fine with the "Next" flow order when using the computer keyboard with emulator (and probably with the keyboard on the G1) but not with the SoftKeyboard with 1.5.Some fields indicate "Next" with this keyboard, some go to the correct field and others don't.Two of the fields are text and they only give a carriage return instead of "Next."My numeric fields give the proper "Next" key. Use of the SoftKeyboard is a little underdocumented so far (if there is a hidden doc online somewhere please provide me a link to it). There are also some added fields under 1.5 that I have asked about previously but received no answer.These appear to have something to do with the Soft Keyboard.Though these can be set programmatically I haven't seen the proper way to set these flags using XML. This field is the one that replaces "Numeric" which deprecated.

View Replies!   View Related
Android :: Multiple EditText Not Getting Focus - No Soft Keyboard?
The home screen of my Android application has three EditText views, meant to be used as three different search functions, each with a "Search" button. The app works perfectly on the device (G1) when using the trackball: I can move between the EditTexts with the trackball, all the events fire as expected, I can enter text using the physical keyboard in the selected EditText, Enter correctly submits the proper search, etc.

However, I can't switch between the EditText views using touches - only by using the trackball. Touches seem to be completely ignored by the EditText. Touches do fire for the buttons, but very hard - takes a lot of tries to make a touch register. In the simulator, clicking on any EditText does nothing - the first one always remains selected, and I never get a soft keyboard. This is all inside a TabHost - I've read there are some problems with that configuration, but it sounds like a slightly different issue (the EditText doesn't seem to lose focus - everything works perfectly with the trackball).

View Replies!   View Related
Android :: EditText Lose Focus When Keyboard Appears
I make ListView that has some items that has one EditText and one ImageButton. When touch the EditText in ListView's Item, Keyboard was appeared but EditText lose focus. What can I do for resolve this problem? I can use ScrollView instead of ListView by addView in ScrollView. And in ScrollView, when I touch the EditText, keyboard was appeared and EditText keep the focus. But I must optimize the list because the list may has many items. In ListView, I can optimize list in getView. But in ScrollVIew, there was not way to optimaize list. So, I must use ListView.

View Replies!   View Related
Android :: Virtual Keyboard Input Focus With Webviews
I'm having a very very strange problem with input and textarea html tags in a WebView. Basically they never seem to gain input focus with the virtual keybaord. which shows a single input box. There is now way just tapping around the screen to get it to accept input. Strangely, if I use my trackball on my G1 to select the field, I can eventually get focus and type in it. For trackball-less things like the N1, that doesn't help though.

View Replies!   View Related
Android :: Show Soft Keyboard Automatically When Focus On EditText
I'm showing an input box using AlertDialog. The EditText inside the dialog itself is automatically focused when I call AlertDialog.show(), but the soft keyboard is not automatically shown. How do I make the soft keyboard automatically show when the dialog is shown? (and there is no physical/hardware keyboard). Similar to how when I press the Search button to invoke the global search, the soft keyboard is automatically shown.

View Replies!   View Related
Android :: EditView In ListView Row / Loose Focus When Soft Keyboard Shows
I have some EditViews in the rows of a ListView.This works just fine except when the soft keyboard raises and lowers.When I touch the EditView within the ListView with the soft keyboard down, focus jumps to the EditView, then the keyboard comes up, removes focus from the EditView and sets focus to the ListView, resulting in an odd user experience with the focus no-where visible.Touching the EditViews with the keyboard already showing works as you would expect.The problem seems to be with the soft keyboard lowering and raising and the ListView getting confused about where focus should be placed.

View Replies!   View Related
Samsung Captivate :: Remove Clear Plastic Case
When I bought my Captivate at the AT&T store, they tossed in a free case, which they put on the phone before I could even hold it . This transparent Plastic thing is evil, by which I mean I can't get it off. I'm afraid to take a screwdriver to it because I don't want to risk scratching the phone (that was why I got the case in the first place). Does anyone have experience with "incipio" plastic case? Do you know how to get it off safely? Can I take it in the store and have them do it?

View Replies!   View Related
Motorola Droid 2 :: Blue Tab To Remove Clear Protective Backing?
Did you pull the blue tab to remove the clear protective backing between phone and keyboard? My D1 didn't have the tab, I did pull the backing off, and always regretted it as it felt smoother/firmer with it on. What did you guys do - remove or not, and any regrets if you removed it?

View Replies!   View Related
Android :: Remove Default Focus Color From GridLayout And EditBox In Android
I want to remove the default orange focus color from GridView and from the EditText. I have tried the android:focusable="false" but it is not working.

View Replies!   View Related
HTC Desire :: Can't Clear Keyboard Input On Contacts Screen
Cannot clear text typed on the Contacts (People) screen 'All' tab.I went to the contacts (People) screen, to the All tab.Without selecting any contact, I held down the Menu button. This brought up the keyboard. I thought this could be another way to search the contacts so I started typing.The Text appeared in a grey box over the keyboard. When I pressed the enter key on the keyboard nothing happened. The backspace key also does *not* erase any of the letters I've entered.When I pressed the keyboard away key, the keyboard disappears but the text in the grey box remains floating over my contacts list. I can tap on contacts underneath it but not interact with the box itself.If I hold down the menu key again, I get the keyboard back and can add more letters to the box but not remove any!If I go to one of the other tabs (Groups, Online directories, Call History) the box is hidden but it returns when I go back to the All tab.

View Replies!   View Related
Android :: How To Remove On Screen Keyboard?
I can toggle it from the IMM but can't seem to detect the current state.In any event,there must be a cleaner way - after I get some text input from the user I want to restore the screen without making them press the back key.

View Replies!   View Related
Motorola Droid X :: Auto Focus - Click To Focus
I loved the camera on the Eris and the Incredible, not only did they have a whole lot more of a crisp high-res detail, the auto-focus absolutely rocked. With my droid x, I can be getting a little artsy and focus on an object with the crosshair but it'll take me 20 tries to get it to lock on, its insane, I know I'm not getting too close to my subject because it will definitely eventually focus on that object if I try over and over and over again. It's not just close ups that I find myself and my buddy with this issue either. macro shooting mode does not help. My buddie's droid X has the same exact behaviors. Eris and incredible just LOCKED ON first try with even very low contrast / detail subjects, on top of that, have a ton better camera GUI when it comes to "click to focus". I know this thing ain't no SLR but, blows me away of how terrible the camera performance is vs. the HTC android based devices. Ihink motorola will fix this? I know this thing ain't no SLR but it just blows me away how the HTC android devices camera performance (except for video) blows the Droid X away.

View Replies!   View Related
Android :: Remove Thai / Chinese Keyboard Button?
How to remove the Thai/Chinese keyboard button

I've just got an HTC Legend - I have no need for Thai or Chinese keyboard options, but there they are, and I can't find a way to remove them and make the the buttons larger.. Any ideas?

View Replies!   View Related
HTC Incredible :: Way To Remove Certain Keys From Keyboard?
I have a couple quick questions about the Sense keyboard on my Incredible.
1. I'm coming from an iPod Touch keyboard and have been continuously hitting the period that is next to the space bar. Does anyone know if there is any way to remove certain keys from the keyboard? I really don't need a period and comma right next to the space bar on the alpha side. I know it's nit picky, but I like having a bigger space bar. 2. I've noticed when logging into websites that require a Username and Password that I am having to remove the keyboard when I go from the Username field to the Password field. On my iPod there was a "Next" feature that would automatically advance the cursor. Am I missing something on the Incredible? Didn't see anything available for switching data fields.

View Replies!   View Related
Android :: Virtual Keyboard Remove White Space Button
I want to stop user from entering white space into the edittext, easiest way is to do not have button in keyboard appearing on click.

How to hide white space button from keyboard ? or is there any other way to stop user entering white space into the edit text field.

View Replies!   View Related
Motorola Droid :: Remove Clicking On Keyboard
when I type on my virtual keyboard (swype ) for every letter I type there is a click , I want to remove it but cant figure out how.

View Replies!   View Related
Sony Ericsson Xperia X10 :: Remove Keyboard And Install An English One
I've just come back from Hong Kong where I bought an X10 mini.

I've changed the language to English and it works well, however the keyboard is the Chinese one. 

Is there an easy way to remove this keyboard and install an English one instead?  

View Replies!   View Related
HTC Wildfire : Remove Send - Discard - Save Buttons Above Keyboard?
GMail is almost unusable when composing a message - the Send and discard and Save buttons take up more room than you get space to type, resulting in just 3 or so lines of visible text. To make it worse, the typing font is massive.

Does anyone know how to...

1) Remove the stupid Send/Discard/Save buttons above the keyboard. Clicking the menu soft-key brings up those options anyway, meaning they literally are nothing but a waste of typing space

2) Change the font size, so we can see more text as we type. When reading a message, the font is much smaller and still very readable...

3) Change the keyboard to something shorter, gaining more room to see messages we composes

I got this phone to GMail with so this is pretty annoying.

View Replies!   View Related
Android :: What Does HTC Sense Clear Data Actually Clear?
What exactly does HTC Sense Clear Data actually clear? That may be a solution to reverting back to 5 homescreen pages instead of 7 without having to do a factory reset. Just curious as to what I am going to mess up? Will i just have to personalize the homescreen again, put widgets up, reconnect to fb, twitter, myfaves, etc. It's not going remove any 3rd party apps, just make me create new widgets, etc..?

View Replies!   View Related
Sony Ericsson Xperia X10 :: Remove Korean Alpha. As An Option On Keyboard?
How do I remove Korean alpha. as an option on my keyboard?

View Replies!   View Related
LG Ally :: Remove Ally Keyboard Shortcuts
Is there any way to remove keyboard shortcuts for a rooted phone? For instance, while texting i sometimes press ALT+DEL and it removes the whole line i was typing. Kind of frustrating. So if there were a way to remove those shortcuts through terminal or modifying files that would be great

View Replies!   View Related
Motorola Droid X :: APP - ROOT - Keyboard - Keyboard Manager - Dual Keyboard - Portrait - Landscape Switch
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 Replies!   View Related
Android :: Better Keyboard - Switch From T9 Keyboard To Regular Qwerty Keyboard
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 Replies!   View Related
Sony Ericsson Xperia X10 :: To Remove / Not Remove Sim Card During Update?
I just want to make sure I know all I need to before it comes my time to update.

View Replies!   View Related
Android :: How To Keep Focus On A Widget/
do you know if it is possible to keep focus in a widget even if other widgets that are partially visible or not visible at all changes its height size?I wouldn't like to have my screen jump vertically in front of the user because some other widget updated itself to accommodate more data.

View Replies!   View Related
Android :: Focus Not Going To Another Button
I wrote a code for pinging of given URL.It works fine for me.But whenever i clicked on the start ping button, pinging started but that time focus always is on start button and no widget of the screen working that time. After pressing many times it will gives the force close error.If iam giving URL which is not pinging then that time , all the widgets are working fine.After some time i need to stop the pinging by using my stop button.But it is not working.Please give me advise.Iam using Runtime.exec() for ping command in my android.

View Replies!   View Related
Android : How To Set Focus On List?
I display a list on screen, how could I set focus on one list item? It seems in touch mode, it is impossible to set focus. Am I correct?

View Replies!   View Related
Android :: How To Develop A Soft Keyboard - HTTP Connections To Synchronize Keyboard Data With A Cloud DB And Other Phones
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 Replies!   View Related
Android :: Detecting Physical Keyboard - Not Cupcake Software Keyboard
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 Replies!   View Related
Android :: Hide Soft Keyboard On Activity Without Any Keyboard Operations
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 Replies!   View Related
Android :: Move Cursor In On-screen Keyboard With External Keyboard
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 Replies!   View Related
Sony Ericsson Xperia X10 :: Chinese Keyboard To Android Keyboard
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 Replies!   View Related
Android :: How To Prevent EditText From Getting Focus?
How can we prevent an edittext from getting focus and displaying the soft keyboard. I have an searchbox which should not be focused by default and should have focus only when user clicks on it to enter something. But right now it takes focus and shows the keyoard as soon as I open the activity. Is this a bug or can this be changed to behave in the way we want?

View Replies!   View Related
Android :: Newline Characters And Focus
Currently I have an edittext field that when the user presses enter it does mostly what I want it to, validate an IP Address format and inform the user if it is wrong. How do I make it so when the user presses enter it checks it like it is supposed to be does not enter the newline character?

Here is my code for it.
public boolean onEditorAction(TextView arg0, int arg1, KeyEvent arg2) {
if(validateIPaddress(m_etIPAddress.getText().toString())){
ConfigData.m_IPAddress = m_etIPAddress.getText().toString();
} else { showAlertDialog("Invalid IP Address
Example: 255.255.255.255 0.0.0.0","Error: ");
m_etIPAddress.setText(ConfigData.m_IPAddress);
m_etIPAddress.requestFocus();
} return false;
}

Another problem I have is that in the false condition of the validation, that it will not bring up the soft keyboard to allow the user to reedit that text field. If the user clicks on another edit text the window gives it focus, and allows the user to edit the second text field while still maintaining the 'green outline' around the original edittext.

The EditText still creates a newline. I tried calling that when I create the EditText and it shows the dialog then inserts a newline character at the beginning which is weird because the
m_etIPAddress.setText(ConfigData.m_IPAddress);
Should automatically overwrite anything in that field to the static IP saved within ConfigData. (my settings class) and I think the focus might work, the problem is that after requestFocus, that EditText shows it has focus but is unresponsive. I can click on other EditText's and modify them, while it still shows the focus outline on the IP EditText. If I click on the IP EditText it doesn't actually do anything. Its kind of strange.

View Replies!   View Related
Android :: Set Focus On Running Activity
I have an Activity that keeps running after the Home button is pressed (naturally) and of-course the focus is in the home screen, and when the running process ends I need to restore the focus on that activity. In more PC expression, I need to maximize the application.

View Replies!   View Related
Android :: AutoCompleteTextView - Passing Focus And 1.6
Has anyone noticed that AutoCompleteTextView doesn't pass the focus to the next field when you tap on "NEXT" button on soft keyboard? And it's all happening on Android 1.6. v1.5 works flawlessly! Is there any known solution for this?

View Replies!   View Related
Android :: Recruiting For Focus Group
I am taking a marketing research class and our topic is on smartphones. We need to do a focus group for this project and the report is due VERY soon. We had much difficulty finding people with android phones here in vancouver so it would be much appreciated if you guys can help! The focus group will likely take place on msn either on Friday or Saturday around 5pm. If you are not available for a focus group, I can always interview you individually through skype/msn/phone/email. You can contact me at my email: mmi@sfu.ca or reply to this thread!

View Replies!   View Related
Android :: Set Initial Focus In Application
In my android application it automatically focuses the first Button I have in my layout, giving it an orange outline. How can I set the initial focus preferably in XML, and can this be set to nothing?

View Replies!   View Related
Android :: Set Focus On Any Item Of Listview
Now i want the first item of the list to be automatically focused when i launch the application How can i set the focus on any item of the list when i click on the some other view for example a button?

View Replies!   View Related
Android :: Focus The Developer Emulator?
I made an image button in eclipse and I tested it out (ran it) with the emulator in the android sdk package.

<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true"
android:drawable="@drawable/cat1" /> <!-- pressed -->
<item android:state_focused="true"
android:drawable="@drawable/cat2" /> <!-- focused -->
<item android:drawable="@drawable/cat3" /> <!-- default -->
</selector>

Pressed and Default work with the mouse, but how do you focus it? Or if you can't, do you need to get an android phone?

View Replies!   View Related
Android :: Get Focus To GridView First Image?
Iam writing GridView by using BaseAdapter with 2 columns.Each column with One Image and Text.It works smoothly.I had given focus by using below code in onConfig...

public void onConfigurationChanged(Configuration newConfig) {
gridview.requestFocusFromTouch();
gridview.setSelection(0);
}

It works when my view configuration changes.But Same doesn't work in onCreate() method.I used below all methods in onCreate() but my view doesn;t get focus.How to give focus for the first image when running my application.I want focus on first image when view inflates on the device.Please give me guidance?................

View Replies!   View Related
Android :: Regaining Focus Using SurfaceView
I'm currently getting to grips with Android, playing around with the Lunar Lander sample. I've found that if you navigate away from the app (eg, hit the call button) it will destroy the underlying surface (calling surfaceDestroyed). Navigating back (which will trigger onWindowVisibilityChanged) the app will crash, as it will try to draw to the surface without recreating it. Is there some code I can put in onWindowVisibilityChanged (or anywhere else) that will regenerate the SurfaceView's underlying surface and resume execution nicely? It feels like this should be a simple function call but I can't find anything in the API docs.

View Replies!   View Related
Android :: Receiving Focus On List
I have the following XML layout for a ListActivity.

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ListView android:id="@+id/android:list" android:layout_width="fill_parent"
android:layout_height="fill_parent" />
<TextView android:id="@+id/android:empty"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:text="No Contacts" />
</LinearLayout>

My problem is that if I have focus on any of the header ImageButtons then when pressing down with the dpad the list get focus on its 7th row (depending on row height), and not on the first row. I've seen the same behavior on Fring application, under Contacts. I tried by listening for the OnKey event for the KeyEvent.KEYCODE_DPAD_DOWN and triggering a implicit focus on the first item of the list, but I don't know how to do it either.

View Replies!   View Related
Android :: Camera Focus Facility
My app is struggling to take focused shots. Is there a built in facility that sets an auto-focus property on the camera, so it automatically takes clear and focused images. I've noticed that feature in numerous well-known apps such as ShopSavvy, CompareEverywhere, etc. Could you advise on how to achieve that?

View Replies!   View Related
Android :: Check Within App Button On Focus?
I have a set of buttons. Usually i can also move between em also with my trackball. But now I have set styles on my buttons and I don't see anymore if a button is focused. What can I do, is there a specific Styles Tag that I can use till now i use: code...
is there something i can check within my App if a button comes focused so i can highlight em manual?

View Replies!   View Related
Android :: TextView - Disable Focus / Fix It
I have a listview, and wanted to make some list items to be non-focusable. i.e On pressing the down-arrow key, some items in the middle of the list gets skipped.

I tried the following method. 1. created separate ArrayAdapter class. 2. override getView method. 3. In getView, I called setSelected(false) and also tried setFocusable(false) for some items, but its not working.

View Replies!   View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved