I\'m getting an error in this part of code:
private void displayView(int position) { // update the main content by replacing fragments Fragment fragm
use getSupportFragmentManager() Instead of getFragmentManager()
getSupportFragmentManager()
getFragmentManager()
getSupportFragmentManager() .beginTransaction() .replace(in.jama.app.R.id.container, new Fragment()) .commit();