In Android, is there a more elegant way to retrieve application context inside a inner class?
<p>In Android, is there a more elegant way to <strong>retrieve application context</strong> inside a inner class rather than passing context as a parameter?</p>

<pre><code>public class MainActivity extends Activity {

    class SeekBarChangeListener implements SeekBar.OnSeekBarChangeListener
        {
            private Context context;
            private TextView distanceTextView;

            public SeekBarChangeListener(Context context, TextView distanceTextView) {
                this.context = context;
                this.distanceTextView = distanceTextView;
            }
    }

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

    } 
}
</code></pre>
