android启动其他应用得service




Intent i=new Intent();
i.setComponent(new ComponentName("net.easyconn.carmanhd","net.easyconn.carman.speech.service.SpeechService"));
 startService(i);

应用包名在gradle中配置是net.easyconn.carmanhd,文件路径是net.easyconn.carman.speech.service.SpeechService

猜你喜欢

转载自n-wang.iteye.com/blog/2321798