When an activity is started, the keyboard should automatically get displayed without click of the edittext. I know that when we click the edittext, the keyboard is displayed. But I want that the keyboard should automatically get displayed. How to do this? Please reply.
            Asked
            
        
        
            Active
            
        
            Viewed 552 times
        
    1 Answers
2
            
            
        You should consider adding android:windowSoftInputMode="stateAlwaysVisible" to your activity xml tag in AndroidManifest.xml. More details can be found in documentation.
<manifest ...>
    ...
    <application ...>
        <activity android:windowSoftInputMode="stateAlwaysVisible" ... />
    </application>
    ...    
</manifest>
 
    
    
        inazaruk
        
- 74,247
- 24
- 188
- 156
- 
                    Do I need to write something in the corresponding activity Java file? – sohaib rahman Jun 06 '11 at 10:42
