skip to Main Content

Cannot zoom in to current location in Android Studio

public class Game_Activity extends FragmentActivity implements OnMapReadyCallback { private Location currentLocation; private FusedLocationProviderClient fusedClient; private static final int REQUEST_CODE =101; private FrameLayout map; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_game); map=findViewById(R.id.map); fusedClient = LocationServices.getFusedLocationProviderClient(this); getLocation(); } private void getLocation()…

VIEW QUESTION
Back To Top
Search