开发者社区 问答 正文

ecplise没法创建service类

new里面没有service,other里面也没有
直接写一个类的话,自己extends service出错,然后import android.service也出错

展开
收起
爵霸 2016-06-12 09:02:51 1776 分享 版权
1 条回答
写回答
取消 提交回答
  •  public class TestService extends Service {
        @Nullable
        @Override
        public IBinder onBind(Intent intent) {
            return null;
        }
    }
    2019-07-17 19:33:09
    赞同 展开评论
问答地址: