I am a bit confused,
it seems that my Service does not print logs,
the service starts regularly (I can debug it), I see all other logs,
but from the service no logs.
Please what am I missing here?
@Override
protected void onHandleIntent(Intent intent) {
Log.e("TAG","Downlaoding devices list");//This should log something!
Chances are your IntentService is not getting called. try using the whole package name of the IntentService. I've seen this somewhere I'll post a link if I find it. Something like this...
Intent intent = new Intent(this/*Context*/,com.myapp.MyIntentService.class); //as opposed to // new Intent(this, MyIntentService.class); startService(intent);
Edit: I found the link. intentService : why my onHandleIntent is never called?
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加