stringArrayList.add("Mathematics | Limits, Continuity and Differentiability"); stringArrayList.add("Lagrange’s Mean Value Theorem"); stringArrayList.add("Rolle’s Mean Value Theorem"); stringArrayList.add("Unimodal functions and Bimodal functions"); stringArrayList.add("Surface Area and Volume of Hexagonal Prism"); stringArrayList.add("Inverse functions and composition of functions"); stringArrayList.add("Indefinite Integrals"); stringArrayList.add("Mean, Variance and Standard Deviation"); stringArrayList.add("Newton’s Divided Difference Interpolation Formula"); stringArrayList.add("Law of total probability"); stringArrayList.add("Probability Distributions Set 1 (Uniform Distribution)"); stringArrayList.add("Probability Distributions Set 2 (Exponential Distribution)"); stringArrayList.add("Probability Distributions Set 3 (Normal Distribution)"); stringArrayList.add("Homogeneous Poisson Process"); stringArrayList.add("Nonhomogeneous Poisson Processes"); if (selected.equals("Mathematics | Limits, Continuity and Differentiability")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/em1/1.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Lagrange’s Mean Value Theorem")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/em1/2.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Rolle’s Mean Value Theorem")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/em1/3.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Unimodal functions and Bimodal functions")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/em1/4.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Surface Area and Volume of Hexagonal Prism")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/em1/5.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Inverse functions and composition of functions")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/em1/6.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Indefinite Integrals")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/em1/7.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Mean, Variance and Standard Deviation")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/em1/8.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Newton’s Divided Difference Interpolation Formula")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/em1/9.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Law of total probability")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/em1/10.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Probability Distributions Set 1 (Uniform Distribution)")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/em1/11.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Probability Distributions Set 2 (Exponential Distribution)")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/em1/12.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Probability Distributions Set 3 (Normal Distribution)")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/em1/13.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Homogeneous Poisson Process")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/em1/14.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Nonhomogeneous Poisson Processes")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/em1/15.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); }