title: How can I get Latitude and longitude in Android?
body: <p>Good Saturday! </p>
  
  <p>I have a MainActivity class and Location class (actually empty). I want to get device latitude and longitude, so in that way call them in the main activity just like:</p>
  
  <pre><code>Location location new Location();
  
  location.getLatitude();
  location.getLongitude();
  </code></pre>
  
  <p>I don't know if is that possible, I mean do all the work in the Location class and just get the results in the MainActivity (preferably in a number value)...
  Is that possible? Can somebody please help me? </p>
  
  <p>Greetings!</p>