flowWindow ボタンをクリックすると、アプリケーションは次のように拡張InputMethodServiceされた Service を開始します。
public void onStart(Intent intent, int a)
{
super.onStart(intent , a);
EditorInfo ed=getCurrentInputEditorInfo();
}
問題は、(他のアプリケーションからの)現在のアクティビティが何であれ、「ed」は「null」に等しく、もちろん次のようなコード"Log.d("tag",ed.hintText+"")"はエラーになります。文法が間違っていますか、それともアプリケーションに権限がありませんか?