Code example for Activity

Methods: startActivity

0
         * intent.putExtra(INTENT_EXTRA_KEY_LONGITUDE, 23.12345f); 
         */ 
        intent.putExtra(INTENT_EXTRA_KEY_LATITUDE, (float) point.getLatitude());
        intent.putExtra(INTENT_EXTRA_KEY_LONGITUDE, (float) point.getLongitude());
 
        activity.startActivity(intent);
    } 
} 
Experience pair programming with AI  Get Codota for Java