public boolean startForeground(final int id, final Notification notification) {
        if (FileDownloader.getImpl().isServiceConnected()) {
            FileDownloader.getImpl().startForeground(id, notification);
            return true;
        } else {
            FileDownloader.getImpl().bindService(new Runnable() {
                @Override
                public void run() {
                    FileDownloader.getImpl().startForeground(id, notification);
                }
            });
            return false;
        }
    }
public boolean startForeground(final int id, final Notification notification) {
        if (FileDownloader.getImpl().isServiceConnected()) {
            FileDownloader.getImpl().startForeground(id, notification);
            return true;
        } else {
            FileDownloader.getImpl().bindService(new Runnable() {
                @Override
                public void run() {
                    FileDownloader.getImpl().startForeground(id, notification);
                }
            });
            return false;
        }
    }
public boolean startForeground ( final int id , final Notification notification ) { if ( FileDownloader . getImpl ( ) . isServiceConnected ( ) ) { FileDownloader . getImpl ( ) . startForeground ( id , notification ) ; return true ; } else { FileDownloader . getImpl ( ) . bindService ( new Runnable ( ) { @ Override public void run ( ) { FileDownloader . getImpl ( ) . startForeground ( id , notification ) ; } } ) ; return false ; } }
The {@link FileDownloader#startForeground(int, Notification)} request.
The {