我试图从开始服务的AsyncTask,但不能看到它的开始。 我还添加了服务上manefast文件。
这里的代码:
protected Integer doInBackground(Void... values) throws InterruptedException {
//starts service number activite
Intent serviceIntent = new Intent();
serviceIntent.setAction("services.conServise");
context.startService(serviceIntent);
和清单文件:
<service android:name="services.conServise"></service>
</application>
感谢帮助。