manowar_manowar
manowar_manowar

Reputation: 1150

Android 4.3 isProviderEnabled wrong result in Genymotion

Genymotion always said that "GPS open".(Version : 4.3).But GPS is inactive.

But my phones (not emulator) android 6,and 5 return true result.

LocationManager locationManager = (LocationManager) getSystemService(LOCATION_SERVICE);
        if (locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)){
            Toast.makeText(this, "GPS open", Toast.LENGTH_SHORT).show();
        }else{
            Toast.makeText(this, "GPS closed", Toast.LENGTH_SHORT).show();
        }

Upvotes: 0

Views: 82

Answers (1)

Smit.Satodia
Smit.Satodia

Reputation: 597

You can choose the GPS position of a Genymotion emulator thanks to the GPS widget on the right side of the screen.

Genymotion does not plug the GPS position to your computer's position.

Pro tip: GPS,bluetooth function is not work good with emulator,just check with real devce, If real device gives good result then you are good to go

Upvotes: 1

Related Questions