title: How to get longitude and latitude of mobile device?
body: <p>I'm working on a project in which I need to find nearest places to the mobile device (Example: display a list of hotels ordered by the nearest first.) I want to get the longitude and latitude of the mobile phone. The problem is that I want to get them in a class that is NOT an activity and it doesn't have a OnCreate method (The datasource class which contains all the methods dealing with the database). What should I write? and where exactly should I write it?</p>
  
  <p>Please keep it simple! Thank you :)</p>