Android how to get Current location lattitude and longitude in marshmallow and above version : 1)first I want to check internet connection is connected or not .if not connected then show dilog box for start internet connection.

2)Then I want to check gps is on or not  if on then get latitude and longitude location .

3)And show the latitude and longitude in text or in Toast.