Code example for FragmentActivity

Methods: findViewById

     * Returns whether the checkbox with the given id is checked. 
    private boolean isChecked(int id) {
      return ((CheckBox) findViewById(id)).isChecked();
    private void setUpMapIfNeeded() { 
        // Do a null check to confirm that we have not already instantiated the map. 
        if (mMap == null) {
            // Try to obtain the map from the SupportMapFragment. 
            mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(
            // Check if we were successful in obtaining the map. 
            if (mMap != null) {
Experience pair programming with AI  Get Codota for Java