I\'m getting an error in this part of code:
private void displayView(int position) { // update the main content by replacing fragments Fragment fragm
import android.app.Fragment; works with getFragmentManager() method but before you have to remove the import android.support.v4.app.Fragment;
android.app.Fragment;
getFragmentManager()
android.support.v4.app.Fragment;