entering in code like this:
FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
comes up with this error \"androi
With getSupportFragmentManager() you are getting the supportLibrary fragmentManager instead of the systems fragmentManager. So you are working with a transaction of the supportlibrary.
This is the reason why you need to add all these imports and use android.support.v4.app.
If you want to get the systems fragmentManager just try to use getFragmentManager() instead getSupportFragmentManager().
Hope this helps