find out the current location
<p>I want to dispaly the current location in my application not in map.
    I want the current palce using current lattitude and longitude .
For Ex some 'x' person i want to know his location.but i want to know his location using his current lattitude and longitude.
When i use the below code it`Context context;</p>

<pre><code>                    Geocoder geoCoder = new Geocoder(
                            getBaseContext(), Locale.getDefault());
                    List&lt;android.location.Address&gt; addresses = geoCoder.getFromLocation(17.385044,78.486671, 1);
                    String addr = "";
                    if (addresses.size() &gt; 0) 
                    {
                        for (int k=0; i&lt;addresses.get(0).getMaxAddressLineIndex(); 
                             k++)
                           addr += addresses.get(0).getAddressLine(i) + "\n";
                    }

                    Toast.makeText(getBaseContext(), addr, Toast.LENGTH_SHORT).show();
                    Log.v("People","##############"+addr);
</code></pre>

<p>The "addr" does not getting any value.why it is happened here my Activity is extended by MapActivity and also tell me without extending activity (simply in class) how do you find the current location using current lattitude and longitude ?</p>

<p>please give me the code suggestions for this.Thanks in advance</p>
