• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

gps location

linuxdoniv

Lurker
Apr 12, 2010
3
0
Hi,

I was wondering how to go about this problem of finding the gps locations of few friends based on the phone numbers i have.( Assuming that they have enabled me to see their location).

Assuming that we have a server to which my phone sends the queries, which in turn queries the phones of my friends to retrieve their locations.

So the question would be 'how to query the details in a phone from a web server'.

Please help me in this regard.

Thanks in advance...
 
Hi,

I have written basic application. But I get the error "Context cannot be resolved"

package com.GpsUpdater;
import com.GpsUpdater.R;
import java.net.*;
import java.io.*;
import android.app.Activity;
import android.os.AsyncTask;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.Bundle;
import android.util.Log;
import android.view.KeyEvent;
import android.view.View;
import android.widget.Button;


public class GpsUpdater extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Socket soc = null;
PrintWriter out = null;
int i = 1500;

LocationManager lm = (LocationManager)getSystemService(Context.LOCATION_SERVICE);

...... etc.


Please guide me in this regard. I am a beginner.



Thanks
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones