问题描述
@Override
public IBinder onBind(Intent intent) {
// TODO: Return the communication channel to the service.
throw new UnsupportedOperationException("Not yet implemented");
}
此方法具有IBinder作为返回值,但它只是引发异常,我的问题与服务无关,我的问题是为什么此方法不显示编译器错误?
和如果我们写return null(如果我们不想实现此方法)或我们写throw异常有什么不同?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)