从Lollipop开始,service服务必须采用显示方式启动。
Intent intent = new Intent("a.b.c");intent.setPackage(getPackageName());startService(intent);
时间: 2024-07-28 18:32:56
从Lollipop开始,service服务必须采用显示方式启动。
Intent intent = new Intent("a.b.c");intent.setPackage(getPackageName());startService(intent);