java绑定到带有Android注释的现有服务? 1 周,5 日 Questions & Answers 834 文档enter link description here说明如何开始和完成服务。有没有办法与现有的安卓 annotation绑定
# 1 楼答案 当您绑定到Service时,只需使用生成的类: Intent intent = new Intent(this, MyService_.class); // note the underscore bindService(intent, mConnection, Context.BIND_AUTO_CREATE); 或者可以使用生成的Intent生成器: bindService(MyService_.intent(this).get(), mConnection, Context.BIND_AUTO_CREATE);
# 1 楼答案
当您绑定到
Service
时,只需使用生成的类:或者可以使用生成的
Intent
生成器: