Android - getSystemService error?
<p>I have followed this tutorial to get my ListView populating data -- <a href="http://android.amberfog.com/?p=296" rel="nofollow">http://android.amberfog.com/?p=296</a>. </p>

<p>But it only works if I subclass my custom list adapter (MyCustomAdapter) like the tutorial does. However I would like to put this in a separate class but when I try to I end up getting an error on this line below saying that "The method getSystemService(String) is undefined for the type 
 MyCustomAdapter</p>

<pre><code>      public MyCustomAdapter() {
        mInflater = (LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE);
    }
</code></pre>

<p>Any ideas how I can get this working in its own class? Any help appreciated.</p>
