Ticket 104 Removing on-screen keyboard after entering team

I have been working on this ticket for a long time now and I still have not figured out a way to write a test plan for this.

The following links suggests there is no direct way to check if the keyboard is visible or not.
https://groups.google.com/forum/#!topic/android-platform/FyjybyM0wGA
http://stackoverflow.com/questions/2150078/how-to-check-visibility-of-software-keyboard-in-android

I was able to find two ways to determine if the keyboard is visible or not.
1)Use screen size can be used to find out if keyboard is visible or not. But it does not work from JUnit.
2)Check the link - http://www.ninthavenue.com.au/how-to-check-if-the-software-keyboard-is-shown-in-android.
I am using the function hideSoftInputFromWindow(IBinder windowToken, int flags, ResultReceiver resultReceive);I can pass a ResultReceiver object to this function and get a callback with the status of the keyboard visibility. I get the callback when I run the app, but the callback does not get called when I run it from JUnit. I tried to pass the ResultReceiver object from Junit and tried creating it in BaseballCardDetails, but both did not work.

So please let me know if any of you know how to overcome the above problems or if you have any idea about how to write a test plan for this. I tried to find if there is anyway to do it using robotium, but couldnt find any.