How to display the Soft Keyboard from a Service?

后端 未结 3 954
借酒劲吻你
借酒劲吻你 2021-02-14 10:01

Short question: Is it possible (and how) to display the soft-keyboard from a Service?

Long question: I wrote a service which creates a

3条回答
  •  清酒与你
    2021-02-14 10:30

    If you want to show Soft Keyboard on edittext's touch, Why don't you consider using onTouchListener with that edittext. I beleive edittext.requestfocus() will also do this. If not, listener would definately work.

    Moreover for the kind of view you mentioning, it would have been best to use fragments instead of service to create view.

提交回复
热议问题