app/src/main/java/com/smedic/tubtub/fragments/SearchFragment.java
public void searchQuery(String query) {
        //check network connectivity
        if (!networkConf.isNetworkAvailable()) {
            networkConf.createNetErrorDialog();
            return;
        }

        loadingProgressBar.setVisibility(View.VISIBLE);
        onScrollIndex = 0;
        youTubeSearch.searchVideos(query);
    }
/**
     * Search for query on youTube by using YouTube Data API V3
     *
     * @param query
     */
Search for query on youTube by using YouTube Data API V3
@param query
Search for query on youTube by using YouTube Data API V3 @param query
public void searchQuery(String query) {
        if (!networkConf.isNetworkAvailable()) {
            networkConf.createNetErrorDialog();
            return;
        }
        loadingProgressBar.setVisibility(View.VISIBLE);
        onScrollIndex = 0;
        youTubeSearch.searchVideos(query);
    }
public void searchQuery ( String query ) { if ( ! networkConf . isNetworkAvailable ( ) ) { networkConf . createNetErrorDialog ( ) ; return ; } loadingProgressBar . setVisibility ( View . VISIBLE ) ; onScrollIndex = 0 ; youTubeSearch . searchVideos ( query ) ; }
Search for query on youTube by using YouTube Data API V3
 @param query
Search for query on youTube by using YouTube Data API V3 @param query
//check network connectivity