Issue
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();
}
Solution
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
Answered By - Smit.Satodia
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.