Click here to Skip to main content
15,881,413 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I´m writing an Android app, but when I touch on the textbox, the keyboard doesn't come up. Just after touching on another textbox, the keyboard comes up. Somebody knows how to fix this?
code:
<EditText
    android:id="@+id/login_usr"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignParentLeft="true"
    android:layout_alignParentTop="true"
    android:layout_marginLeft="33dp"
    android:layout_marginTop="95dp"
    android:ems="10"
    android:inputType="text" >

    <requestFocus />
</EditText>


Edit: LogCat of Eclipse tells me, KeyCharacterMap: no keyboard for id 0
Posted
Updated 25-Jun-13 5:43am
v9
Comments
Richard C Bishop 8-Mar-13 11:09am    
I just accessed your computer and fixed it, try running it now.
joshrduncan2012 8-Mar-13 11:11am    
+5. :)
Chi Ller 8-Mar-13 11:14am    
-.- maybe somebody has this problem before. I didn´t changed anything. I am coding with Eclipse and I put a textbox on the main.xml. Nothing else. So the code is not important
Richard C Bishop 8-Mar-13 11:19am    
If the code is not important, then this is not the place to ask your question. Sounds like you need to talk to the maker of the Android device.
Chi Ller 8-Mar-13 11:29am    
Just for you

1 solution

Though i can't see whole of your code.But according to your above code i can't understand why you use android:removed="@drawable/log_in" this line,it may cause problem(though i'm not sure).
Below code works fine in my case.Just after touching the edittext box, the keyboard comes up automatically for my case..
XML
<linearlayout xmlns:android="http://schemas.android.com/apk/res/android">
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >

<edittext>
    android:id="@+id/edittext"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    />
</edittext></linearlayout>
 
Share this answer
 
Comments
Chi Ller 9-Mar-13 4:14am    
No. In my code I use android:background="@drawable/log_in". Somebody edited the code in the question :D

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900