0

I'm developing an input method, but i need to know which application is using my input method.

For example (as image):

  • if someone other open my keyboard for Telegram, the keyboard will turn color to lightblue.
  • if someone open my keyboard to write on WhatsApp, the keyboard will turn color to green. enter image description here

There is a way to get the package?

Mattia Maestrini
  • 32,270
  • 15
  • 87
  • 94
Tiziano Munegato
  • 869
  • 1
  • 7
  • 21
  • I'm developing a custom keyboard that fits the "caller" application – Tiziano Munegato May 09 '15 at 13:34
  • http://stackoverflow.com/questions/8091350/how-to-find-the-currently-running-applications-programatically-in-android you can check what is running programmatically in Android. Sorry for the confusing response earlier, still waking up :P – zgc7009 May 09 '15 at 13:38
  • Maybe it's too late, but I think this could help you https://stackoverflow.com/questions/35811641/how-to-detect-which-app-is-opened-on-android – Rafael González Delanoy Apr 19 '20 at 17:06

0 Answers0