can't use method “getString(int resId)” in FragmentPagerAdapter
问题 I've the following class in my fragment activity now i want to get name of tabs from strings.xml but i can't able to use method getString(int resId) it gives a error message "Cannot make a static reference to the non-static method getString(int) from the type Context". In method public CharSequence getPageTitle(int position) I need to get like this name = getString(R.string.mystring) any help is appreciated. public static class AppSectionsPagerAdapter extends FragmentPagerAdapter { public