Take a look at the SoftKeyboard sample project in the SDK.
You can add the project to your workspace very easily via
File->New->Project->Android->Android Sample Project
(If you don't see it, go to the SDK manager (Window->Android SDK Manager) and look for "Samples for SDK".)
Basically your input method is a service, not an activity, but you deploy it the same way (build an apk). The intent-filter must be added to the service entry (see sample code).