How can i find my current location if i am indoor? ANDROID
<p>I want to find my current location if GPS is not avaible and there is no wireless?
I think i need to do some calculation or there is some codes that it can do it for me.?</p>

<p>Thx.</p>

<p>I wrote like that code but it can not find current location when i am indoor.</p>

<pre><code>package com.anil.bestlocation;

import java.util.List;

import android.app.Activity;
import android.location.Criteria;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.location.LocationProvider;
import android.os.Bundle;
import android.widget.TextView;

public class showBestLocation extends Activity implements LocationListener{
    /** Called when the activity is first created. */

    private static final String[] S = { "Out of Service", 
                                        "Temporarily Out of Service", 
                                        "Available" };
    private TextView output;
    private LocationManager locationManager;
    private String bestProvider;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        output = (TextView) findViewById(R.id.txtLoc);

        locationManager = (LocationManager) getSystemService(LOCATION_SERVICE);

        //list all providers
        List&lt;String&gt; providers = locationManager.getAllProviders();
        for(String provider : providers){
            printProvider(provider);
        }

        Criteria criteria = new Criteria();
        bestProvider = locationManager.getBestProvider(criteria, false);
        output.append("\n\nBEST PROVIDER:\n");
        printProvider(bestProvider);

        output.append("Location.. (initialized with the last known location):");
        Location location = locationManager.getLastKnownLocation(bestProvider);
        printLocation(location);
    }



    @Override
    protected void onPause() {
        // TODO Auto-generated method stub
        super.onPause();
        locationManager.removeUpdates(this);
    }



    @Override
    protected void onResume() {
        // TODO Auto-generated method stub
        super.onResume();
        locationManager.requestLocationUpdates(bestProvider, 20000, 1, this);
    }


    @Override
    public void onLocationChanged(Location location) {
        // TODO Auto-generated method stub
        printLocation(location);

    }

    @Override
    public void onProviderDisabled(String provider) {
        // TODO Auto-generated method stub
        output.append("\n\nSProvider Disabled: " + provider);

    }

    @Override
    public void onProviderEnabled(String provider) {
        // TODO Auto-generated method stub
        output.append("\n\nProvider Enabled: " + provider);

    }

    @Override
    public void onStatusChanged(String provider, int status, Bundle extras) {
        // TODO Auto-generated method stub
        output.append("\n\nProvider Status Changed: " + provider + 
                      ", Status= " + S[status]);

    }

    private void printProvider(String provider){
        LocationProvider info = locationManager.getProvider(provider);
        output.append(info.toString() + "\n\n");
    }

    private void printLocation(Location location){
        if(location == null){
            output.append("\nLocation UNKNOWN\n\n");
        }
        else{
            output.append("\n\nLatitude: " + location.getLatitude() + "\nLongitude: " + location.getLongitude());
        }
    }

}
</code></pre>
