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

gps location

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...
 
I don't think what you're looking for is something that someone can help you with via discussion forums. Your best bet is to find an app designed for what you're looking to do.
 
Hi,

Is it possible to send httprequest to a mobile. How do we create http server on the phone so that it can respond.

Thanks for any snippet of the code.
 
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
 
Back
Top Bottom