I am working on a project on SoftKeyboard. I am editing the sample codes provided with the Eclipse ADT bundle. I realised it is already extends InputMethodService. However, I want to attach a ContextMenu in the soft key. 
Therefore in this case, I need to extend Activity too. How do i solve this problem?
 
     
     
     
     
    