get latitude and longitude on button click event

Put your problem here if it does not fit any of the other categories.

get latitude and longitude on button click event

Postby Patel Durgesh » Wed Sep 08, 2010 6:20 am

hi everyone,
we want to get our current location in latitude and longitude using GPS system on button click using code.
please give the detail code and steps to execute this....
we are using ...
(1) Eclipse

Please reply as soon as possible
Patel Durgesh
Freshman
Freshman
 
Posts: 5
Joined: Sat Sep 04, 2010 5:40 pm

Top

Re: get latitude and longitude on button click event

Postby Quelle » Wed Sep 08, 2010 5:42 pm

take a look @

import android.location.LocationListener;
import android.location.LocationManager;

and

import android.widget.Button;

don`t forget to register the button in your xml.
Quelle
Developer
Developer
 
Posts: 34
Joined: Thu Mar 11, 2010 10:53 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot] and 17 guests