Using SharedPreferences inside MyXMLHandlerTemp
<p>I have a class named <strong>MyXMLHandlerTemp</strong> which <strong>extends DefaultHandler</strong>. The class is used for parsing data. </p>

<p>I want to use <strong>SharedPreferences</strong> inside MyXMLHandlerTemp  class but it gives me error saying </p>

<blockquote>
  <p>getSharedPreferences(String,int) is undefined for the type MyXMLHandlerTemp </p>
</blockquote>

<p>Is it possible to use SharedPreferences inside MyXMLHandlerTemp? If not then what can be alternative solution?</p>
