0

I have my keyboard working on every activity, but I am not getting any good way to make it run on specific activities of different apps.

Is there a way to check the activity running and open the keyboard there if it is in my list?

1 Answers1

0

No.

First, you have no reliable way to "check the activity running", for privacy and security reasons, particularly on newer versions of Android.

Second, the user decides what input method editor to choose, as a default and on a situational basis. You do not get a vote, again for privacy and security reasons.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491
  • In case the user selects my keyboard as default, can I make it not work at some activities? – Shubhansh Aasu Mar 19 '17 at 14:52
  • @ShubhanshAasu: You cannot prevent your keyboard from appearing in all activities, if the user chooses it as a default. Also, I do not see a way for you to determine what activity invoked your keyboard. – CommonsWare Mar 19 '17 at 14:57