gps location

Discussion in 'Android Apps & Games' started by linuxdoniv, Apr 12, 2010.

  1. linuxdoniv

    linuxdoniv New Member
    5

    Apr 12, 2010
    3
    0
    5
    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...
     

    Advertisement

  2. takeshi

    takeshi Well-Known Member
    163

    Dec 6, 2009
    3,354
    282
    163
    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.
     
  3. linuxdoniv

    linuxdoniv New Member
    5

    Apr 12, 2010
    3
    0
    5
    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.
     
  4. linuxdoniv

    linuxdoniv New Member
    5

    Apr 12, 2010
    3
    0
    5
    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
     

Share This Page

Loading...