For achieve the above things I have follow the below step.
1)I have created application with only one button name App.apk.
2)Also Create the another library project called Test.jar
3)Give the dependency of Test.jar to App.apk.
Now I want send same event to test.jar. I have write below code in App.apk activity
public void onResume()
public void onPause()
public boolean dispatchKeyEvent(android.view.KeyEvent event)
Can u suggest the way to get button click event from App.apk to Test.jar ?