stringArrayList.add("Universal Declaration of Human Rights"); stringArrayList.add("Article 1: Innate freedom and equality"); stringArrayList.add("Article 2: Ban on discrimination"); stringArrayList.add("Article 3: Right to life"); stringArrayList.add("Article 4: Ban on slavery"); stringArrayList.add("Article 5: Ban on torture"); stringArrayList.add("Article 6: Right to recognition as a person before the law"); stringArrayList.add("Article 7: Equality before the law"); stringArrayList.add("Article 8: Right to effective judiciary"); stringArrayList.add("Article 9: Ban on arbitrary detention"); stringArrayList.add("Article 10: Right to public hearing"); stringArrayList.add("Article 11: Right to the presumption of innocence"); stringArrayList.add("Article 12: Right to privacy"); stringArrayList.add("Article 13: Right to freedom of movement"); stringArrayList.add("Article 14: Right to asylum"); stringArrayList.add("Article 15: Right to a nationality"); stringArrayList.add("Article 16: Right to marriage and family"); stringArrayList.add("Article 17: Right to own property"); stringArrayList.add("Article 18: Right to freedom of thought and religion"); stringArrayList.add("Article 19: Right to freedom of opinion and expression"); stringArrayList.add("Article 20: Right to freedom of assembly and association"); stringArrayList.add("Article 21: Right to take part in government"); stringArrayList.add("Article 22: Right to social security"); stringArrayList.add("Article 23: Right to work"); stringArrayList.add("Article 24: Right to rest"); stringArrayList.add("Article 25: Right to an adequate standard of living"); stringArrayList.add("Article 26: Right to education"); stringArrayList.add("Article 27: Right to participate in cultural life"); stringArrayList.add("Article 28: Right to to a social and international order"); stringArrayList.add("Article 29: Duties and limitations"); stringArrayList.add("Article 30: Salvatory clause"); if (selected.equals("Universal Declaration of Human Rights")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/Humanrights1/1.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Article 1: Innate freedom and equality")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/Humanrights1/2.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Article 2: Ban on discrimination")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/Humanrights1/3.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Article 3: Right to life")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/Humanrights1/4.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Article 4: Ban on slavery")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/Humanrights1/5.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Article 5: Ban on torture")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/Humanrights1/6.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Article 6: Right to recognition as a person before the law")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/Humanrights1/7.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Article 7: Equality before the law")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/Humanrights1/8.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Article 8: Right to effective judiciary")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/Humanrights1/9.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Article 9: Ban on arbitrary detention")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/Humanrights1/10.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Article 10: Right to public hearing")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/Humanrights1/11.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Article 11: Right to the presumption of innocence")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/Humanrights1/12.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Article 12: Right to privacy")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/Humanrights1/13.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Article 13: Right to freedom of movement")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/Humanrights1/14.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Article 14: Right to asylum")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/Humanrights1/15.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Article 15: Right to a nationality")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/Humanrights1/16.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Article 16: Right to marriage and family")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/Humanrights1/17.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Article 17: Right to own property")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/Humanrights1/18.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Article 18: Right to freedom of thought and religion")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/Humanrights1/19.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Article 19: Right to freedom of opinion and expression")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/Humanrights1/20.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Article 20: Right to freedom of assembly and association")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/Humanrights1/21.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Article 21: Right to take part in government")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/Humanrights1/22.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Article 22: Right to social security")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/Humanrights1/23.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Article 23: Right to work")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/Humanrights1/24.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Article 24: Right to rest")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/Humanrights1/25.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Article 25: Right to an adequate standard of living")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/Humanrights1/26.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Article 26: Right to education")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/Humanrights1/27.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Article 27: Right to participate in cultural life")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/Humanrights1/28.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Article 28: Right to to a social and international order")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/Humanrights1/29.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Article 29: Duties and limitations")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/Humanrights1/30.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Article 30: Salvatory clause")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/Humanrights1/31.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); }