I'm following this example from http://developer.android.com to build a simple app to find the last known location. I get the cannot find symbol variable error for the variables, mLastLocation, mLatitudeText and mLongitudeText in the following code snippet in the activity file:
@Override
public void onConnected(Bundle connectionHint) {
mLastLocation = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);
if (mLastLocation != null) {
mLatitudeText.setText(String.valueOf(mLastLocation.getLatitude()));
mLongitudeText.setText(String.valueOf(mLastLocation.getLongitude()));
}
}
The variables aren't defined in the sample too. How can I fix this?