Or you can add this to your activity in Android.manifest: android:windowSoftInputMode="stateHidden"
On Aug 14, 2:13 am, jb <[email protected]> wrote: > I finally found a solution. I placed the following in OnCreate() > > this.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN); > > On Aug 13, 2:15 pm, jb <[email protected]> wrote: > > > Hi, > > > I have an activity which loads a TableLayout. This is made up of > > TextView and EditView fields. > > > When I run my app within the emulator the layout appears correctly > > (WITHOUT the soft keyboard appearing). > > > When I run the app from a device (HTC Evo) and enter the activity the > > soft keyboard ALWAYS appears. > > > I tried doing an OnFocusChange() for the first field in the layout and > > then doing: > > > InputMethodManager imm = > > (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); > > imm.hideSoftInputFromWindow(tvIndications.getWindowToken(), 0); > > > It doesn't work. The soft keyboard always appears. > > > Any suggestions? > > > jb -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

