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?
In Android Studio Logcat. Before running your code, 1) Select No Filters instead of Show selected applications 2) In the search box, type in your tag. 3) Now Run your code and all your logs will be displayed.
Note: It won't work if you enter your tag after running your code.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With