android-client/OnesaitPlatformAndroidClient/app/src/main/java/com/minsait/onesait/platform/android/onesaitplatformandroidclient/MainActivity.java
private boolean isServiceRunning() {
        ActivityManager manager = (ActivityManager) getSystemService(ACTIVITY_SERVICE);
        for (ActivityManager.RunningServiceInfo service : manager.getRunningServices(Integer.MAX_VALUE)){
            if("com.minsait.onesait.platform.android.onesaitplatformandroidclient.TrackingService".equals(service.service.getClassName())) {
                return true;
            }
        }
        return false;
    }
/* Checks whether TrackingService service is running or not */
Checks whether TrackingService service is running or not
Checks whether TrackingService service is running or not
private boolean isServiceRunning() {
        ActivityManager manager = (ActivityManager) getSystemService(ACTIVITY_SERVICE);
        for (ActivityManager.RunningServiceInfo service : manager.getRunningServices(Integer.MAX_VALUE)){
            if("com.minsait.onesait.platform.android.onesaitplatformandroidclient.TrackingService".equals(service.service.getClassName())) {
                return true;
            }
        }
        return false;
    }
private boolean isServiceRunning ( ) { ActivityManager manager = ( ActivityManager ) getSystemService ( ACTIVITY_SERVICE ) ; for ( ActivityManager . RunningServiceInfo service : manager . getRunningServices ( Integer . MAX_VALUE ) ) { if ( "com.minsait.onesait.platform.android.onesaitplatformandroidclient.TrackingService" . equals ( service . service . getClassName ( ) ) ) { return true ; } } return false ; }
Checks whether TrackingService service is running or not
Checks whether TrackingService service is running or not