I want to send this Lat and Long the gps current location on my open
socket between my android and my python server .
enter code here
public void onLocationChanged(Location loc)
{
GeoPoint point = new GeoPoint((int) (loc.getLatitude() * 1E6),
(int) (loc.getLongitude() * 1E6));
String Text = "My current location is: " +
"Latitud =" + loc.getLatitude()+
"Longitud =" +loc.getLongitude() ;
Toast.makeText(getApplicationContext(),
Text,
Toast.LENGTH_SHORT).show();
so i save it on string text and i add button to connect it to the
server now i want to send the lat and lang each time so how to send
this string using the open socket ??
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en