I am developing a custom android keyboard for sending custom emojis.But my keyboard asks to choose application like watsapp,message,hangout etc. through which you want to send/share emojis whatever may be the running applications. I want to send emoji directly through the current active running application. I tried using broadcast receiver , getCalling Activity and to get the name of running application but all gave me the name of my custom keyboard instead of active running apllication. Please help me out. Thanks in advance.