Android how to check if the intent service is still running or has stopped running

I need to know if all intentservices in the queue are “consumed” or the other way is to find out if it is still doing something so that I don’t continue until all services have stopped running. Any ideas?

  • Warning when canceling ActionBar Overflow menu on Android 4.1.x
  • Google Play Services Leak
  • Android - OnDateChangedListener - how do you set this?
  • How do I properly import HttpClient from org.apache on Android using gradle build file?
  • Android logcat error: ZipFileCache: init failed when open zip file - device specific?
  • java.lang.Object cannot be resolved in Eclipse
  • Android Custom Layout - onDraw() never gets called
  • What is difference between @+id/android:list and @+id/list
  • Android - Activity Not Found Exception
  • Fit Image in ImageButton in Android
  • android.os.TransactionTooLargeException thrown randomly
  • How to set a font for the Options menu?
  • One Solution collect form web for “Android how to check if the intent service is still running or has stopped running”

    Try this may be useful for u

    private boolean isMyServiceRunning() {
        ActivityManager manager = (ActivityManager) getSystemService(ACTIVITY_SERVICE);
        for (RunningServiceInfo service : manager.getRunningServices(Integer.MAX_VALUE)) {
            if ("com.example.MyService".equals(service.service.getClassName())) {
                return true;
            }
        }
        return false;
    }
    
    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.