Chapter Names: {"","","","","","","","","","","","","","","","","","","","","","","","",""} **************************************************************************************** Codes Chapterwise: else if(titleText.getText().toString().equalsIgnoreCase("")) { if(!checkFile( titleText.getText().toString() )) { if(isNetworkAvailable()) { downLoadFile(context, "", maintitle[position] + ".pdf", delete); } else {Toast.makeText(context, "Please Open Your Internet Connection for Downloading the Chapter", Toast.LENGTH_SHORT).show();} }else { openPdf( maintitle[position]+".pdf" ); } }