android application/app/src/main/java/com/slensky/focussis/activities/MainActivity.java
@Override
        protected Void doInBackground(Void... params) {
            try {
                if (events.size() > 0) {
                    getDataFromApi();
                }
            } catch (Exception e) {
                mLastError = e;
                cancel(true);
            }
            return null;
        }
/**
         * Background task to call Google Calendar API.
         * @param params no parameters needed for this task.
         */
Background task to call Google Calendar API.
@param params no parameters needed for this task.
Background task to call Google Calendar API . @param params no parameters needed for this task .
@Override
        protected Void doInBackground(Void... params) {
            try {
                if (events.size() > 0) {
                    getDataFromApi();
                }
            } catch (Exception e) {
                mLastError = e;
                cancel(true);
            }
            return null;
        }
@ Override protected Void doInBackground ( Void ... params ) { try { if ( events . size ( ) > 0 ) { getDataFromApi ( ) ; } } catch ( Exception e ) { mLastError = e ; cancel ( true ) ; } return null ; }
Background task to call Google Calendar API.
Background task to call Google Calendar API .