0

When I force-stop my app via adb while keyboard is visible, it stays visible.

I did the same test with Google Chrome app and keyboard gets hidden there.

I know how to hide keyboard when activity is put into background (link), but it seems that I cannot intercept when my app is force-stopped (link).

Is there some simple solution to my problem? Thanks.

sruzic
  • 125
  • 12

1 Answers1

0

You could probably solve this with a service.

Take a look at this answer which is related to your question.

https://stackoverflow.com/a/33078782/2664634

Ezzy
  • 1,423
  • 2
  • 15
  • 32