Intent intent = new Intent();
intent.setAction("com.viaembedded.veonvif.RemoteService");//Android5.0后service不能采用隐式启动,故此处加上包名
intent.setPackage("com.example.oscarzhou.nvrmanagerapp");//
bindService(intent, serConn, BIND_AUTO_CREATE);

 

注意,是服务端包名,而不是所谓的客户端包名getPackageName()。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-11
  • 2022-12-23
  • 2021-12-28
  • 2021-06-22
猜你喜欢
  • 2021-12-24
  • 2021-07-12
  • 2022-12-23
  • 2021-11-06
  • 2022-01-08
  • 2021-08-17
相关资源
相似解决方案