stringArrayList.add("Check Out These Amazing Super-Detailed Images of Fruit Fly Brains"); stringArrayList.add("Physicists Want to Build an Even More Powerful Atom Smasher at CERN"); stringArrayList.add("In 10 Years, the Large Hadron Collider Was a Smash with More Discoveries to Come"); stringArrayList.add("Did 'The Big Bang Theory' Get the Science Right? A Lesson in Supersymmetry and Economy Class"); stringArrayList.add("A Mirror Image of Our Universe May Have Existed Before the Big Bang"); stringArrayList.add("Bizarre Superfluid Could Explain the Existence of the Modern Universe"); stringArrayList.add("What a tiny electron can tell us about the structure of the universe"); stringArrayList.add("Electric dipole moment in the quantum world"); stringArrayList.add("The Standard Model of particle physics: The absolutely amazing theory of almost everything"); stringArrayList.add("Elements from the stars: The unexpected discovery that upended astrophysics 66 years ago"); stringArrayList.add("Why nuclear fusion is gaining steam – again"); stringArrayList.add("Fusion energy: A time of transition and potential"); stringArrayList.add("Before fusion: a human history of fire"); stringArrayList.add("For decades a distant dream, the countdown to nuclear fusion may have finally begun"); stringArrayList.add("Nuclear fusion, the clean power that will take decades to master"); stringArrayList.add("From Smokey Bear to climate change: the future of wildland fire management"); stringArrayList.add("Extreme droughts weaken trees’ ability to soak up carbon"); stringArrayList.add("Explainer: back burning and fuel reduction"); if (selected.equals("Check Out These Amazing Super-Detailed Images of Fruit Fly Brains")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/upsc2/1.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Physicists Want to Build an Even More Powerful Atom Smasher at CERN")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/upsc2/2.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("In 10 Years, the Large Hadron Collider Was a Smash with More Discoveries to Come")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/upsc2/3.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Did 'The Big Bang Theory' Get the Science Right? A Lesson in Supersymmetry and Economy Class")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/upsc2/4.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("A Mirror Image of Our Universe May Have Existed Before the Big Bang")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/upsc2/5.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Bizarre Superfluid Could Explain the Existence of the Modern Universe")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/upsc2/6.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("What a tiny electron can tell us about the structure of the universe")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/upsc2/7.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Electric dipole moment in the quantum world")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/upsc2/8.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("The Standard Model of particle physics: The absolutely amazing theory of almost everything")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/upsc2/9.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Elements from the stars: The unexpected discovery that upended astrophysics 66 years ago")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/upsc2/10.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Why nuclear fusion is gaining steam – again")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/upsc2/11.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Fusion energy: A time of transition and potential")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/upsc2/12.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Before fusion: a human history of fire")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/upsc2/13.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("For decades a distant dream, the countdown to nuclear fusion may have finally begun")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/upsc2/14.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Nuclear fusion, the clean power that will take decades to master")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/upsc2/15.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("From Smokey Bear to climate change: the future of wildland fire management")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/upsc2/16.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Extreme droughts weaken trees’ ability to soak up carbon")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/upsc2/17.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); } if (selected.equals("Explainer: back burning and fuel reduction")) { Intent i = new Intent(MainActivity.this, DetailActivity.class); i.putExtra("id", position); i.putExtra("url" , "file:///android_asset/upsc2/18.htm" ); i.putExtra( "value", adapter.getItem(position)); startActivity(i); }