you would need to use cell ID for that, but it's by far not trivial.
Have a look at SkyHook :
http://www.skyhookwireless.com/developers/sdk.phpor Navizon:
http://www.navizon.com/All this said, if you have GPS device embedded into Smartphone then simply use GPS sample that comes with SDK