If I am understanding this question correctly you would want to make your lat and lng to be class variables like @Clay said
int lat;
int lng;
Then you can set your fromPosition
protected void onCreate(Bundle savedInstanceState) {
...
LatLng fromPosition = new LatLng(lat, lng);
...
}