I'm getting confuse that when we are building our project in android studio we are asked to define from where we want to support till latest, what about if we don't include support library which says that it supports backward compatiblity? then only methods i get will be of latest version and the older versions will not able to run our code, am i right? also I'm unable to understand these lines from documentation
Note: FragmentActivity is a special activity provided in the Support Library to handle fragments on system versions older than API level 11. If the lowest system version you support is API level 11 or higher, then you can use a regular Activity
but If Im extending Activity instead of FragmentActivity in this case
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
getSupportFragmentManager().findFragmentById(R.id.frag_map);
}
getSupportFragmentManager is unresolved, although I'm building project that is for higher than API 11 then why they say you should use Activity? and if i use getSupportFragment is unresolved.
Later in documentation they say:
If you're using the v7 appcompat library, your activity should instead extend AppCompatActivity, which is a subclass of FragmentActivity. For more information, read Adding the App Bar).
does v7 does not support version older than API 11?