无法覆盖 AbstractInputMethodService 的最终方法
Cannot override the final method from AbstractInputMethodService
我有一个扩展 InputMethodService 的服务 class。当我想将此服务绑定到我的 ActivityMain 时,在下面的代码中我收到 "Cannot override the final method from AbstractInputMethodService" 错误。
public class MyIME extends InputMethodService
implements KeyboardView.OnKeyboardActionListener, OnSharedPreferenceChangeListener {
//some code here...
@Override
public IBinder onBind( Intent intent ) {
return binder;
}
这是什么错误以及如何解决?
What is this error
onBind()
is declared as final
in AbstractInputMethodService
。您无法覆盖它。
and how to fix it?
删除您的 onBind()
方法。
我有一个扩展 InputMethodService 的服务 class。当我想将此服务绑定到我的 ActivityMain 时,在下面的代码中我收到 "Cannot override the final method from AbstractInputMethodService" 错误。
public class MyIME extends InputMethodService
implements KeyboardView.OnKeyboardActionListener, OnSharedPreferenceChangeListener {
//some code here...
@Override
public IBinder onBind( Intent intent ) {
return binder;
}
这是什么错误以及如何解决?
What is this error
onBind()
is declared as final
in AbstractInputMethodService
。您无法覆盖它。
and how to fix it?
删除您的 onBind()
方法。