I need to create a custom class that extends MapFragment
. I am not sure how to instantiatemy new class, so that MapFragment will be instantiated in the correct way.
MapFragment are suppose to be created by doing
MapFragment.newInstance(options)
If I have my own class, that extends MapFragment
public class MyMapFragment extends MapFragment {
}
How do I go about to instantiate MyMapFragment
, or is this approach all together wrong?