Android5.0以上隐式启动第三方应用的服务
<pre><code># Android5.0以上隐式启动第三方应用的服务
```java
//服务的包名
final String packageName = &quot;com.spt.carenine.homebtn&quot;;
//服务的名称
final String className = &quot;com.spt.carenine.homebtn.HomeButtonService&quot;;
final Intent implicitIntent = new Intent();
final ComponentName component = new ComponentName(packageName,
className);
Intent explicitIntent = new Intent(implicitIntent);
explicitIntent.setComponent(component);
context.startService(explicitIntent);
```</code></pre>