fix null pointer exception and add Fragment show in ViewPager

1.getExternalStorageDirector() should add WRITE_EXTERNAL_STORAGE
permission in AndroidManifest.xml
2.add two tabs in ActionBar, slide to show Fragement in ViewPager.