stringArrayList.add("Govt Removes Enforcement Directorate Mumbai Chief Over Nirav Modi Case Controversy"); stringArrayList.add("UPSC Wants Filing of Application for Civil Services Exam to Be Counted as an Attempt"); stringArrayList.add("In a First, UPSC Allows Candidates to Withdraw from Examination"); stringArrayList.add("Himanshu Roy: The Man Who Cracked IPL Spot Fixing Case"); stringArrayList.add("IPS Trainee, Wife Arrested For Cheating in Civil Services Exam to Join IAS"); stringArrayList.add("Promotee IPS Can't Claim Seniority on Basis of Length of Service: SC"); stringArrayList.add("Government Finalises New Cadre Policy For IAS, IPS Officers"); stringArrayList.add("Download E-admit Card, Instructions: UPSC to Candidates"); stringArrayList.add("IPS Officers May Have to Specialise in Policing Domain to Get Promotion"); stringArrayList.add("Meet India's 1st Woman IPS Officer to Be Put in Charge of CM's Security"); stringArrayList.add("70 IPS Officials Transferred in Uttar Pradesh"); stringArrayList.add("UPSC Declares Civil Services Prelims Exam Results"); stringArrayList.add("Meet IPS officer Archana Ramasundram, the first woman to head a paramilitary force"); stringArrayList.add("Retired IPS officer shoots self in Noida"); stringArrayList.add("Kejriwal's dharna proved a good training ground for young police officers"); stringArrayList.add("Delhi law minister Bharti must go: Ex-IPS officer"); stringArrayList.add("Retd IAS officer edges out IPS nominee for NTRO top job"); stringArrayList.add("Par panel recommends separate exams for IPS"); if (selected.equals("Govt Removes Enforcement Directorate Mumbai Chief Over Nirav Modi Case Controversy")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/ips1/1.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("UPSC Wants Filing of Application for Civil Services Exam to Be Counted as an Attempt")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/ips1/2.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("In a First, UPSC Allows Candidates to Withdraw from Examination")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/ips1/3.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Himanshu Roy: The Man Who Cracked IPL Spot Fixing Case")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/ips1/4.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("IPS Trainee, Wife Arrested For Cheating in Civil Services Exam to Join IAS")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/ips1/5.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Promotee IPS Can't Claim Seniority on Basis of Length of Service: SC")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/ips1/6.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Government Finalises New Cadre Policy For IAS, IPS Officers")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/ips1/7.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Download E-admit Card, Instructions: UPSC to Candidates")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/ips1/8.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("IPS Officers May Have to Specialise in Policing Domain to Get Promotion")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/ips1/9.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Meet India's 1st Woman IPS Officer to Be Put in Charge of CM's Security")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/ips1/10.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("70 IPS Officials Transferred in Uttar Pradesh")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/ips1/11.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("UPSC Declares Civil Services Prelims Exam Results")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/ips1/12.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Meet IPS officer Archana Ramasundram, the first woman to head a paramilitary force")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/ips1/13.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Retired IPS officer shoots self in Noida")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/ips1/14.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Kejriwal's dharna proved a good training ground for young police officers")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/ips1/15.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Delhi law minister Bharti must go: Ex-IPS officer")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/ips1/16.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Retd IAS officer edges out IPS nominee for NTRO top job")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/ips1/17.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Par panel recommends separate exams for IPS")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/ips1/18.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); }