title: Unable to extend Main Activity with CustomHashMap
body: <p>Ref: <a href="https://stackoverflow.com/questions/7200940/android-how-to-make-dynamic-hashmap-accessible-in-whole-application">Android:- How to Make dynamic HashMap Accessible in whole application?</a>
  I have set up a CustomHashMap (just a collection of 3 LinkedHashMaps) so that I can access it from 2 Activities, but I am
  unable to access it from the SecondActivity! The only way to remove red errors in Manifest.xml is to set the lines below. If I
  use <em>android:name="com.example.intents.CustomHashMap"</em> (following the online example) I get an error saying <em>'is not an enclosing
  class'.</em> </p>
  
  <pre><code>&lt;application
      android:allowBackup="true"
      android:icon="@drawable/ic_launcher_icon"
      android:label="@string/app_name"
      android:theme="@style/CustomActionBarTheme"
      android:name="com.example.intents.MainActivity$CustomHashMap"&gt;  //--- The system added the $ parts here.
      &lt;activity
      ....
   protected CustomHashMap thisMap;
   ....
   thisMap = (MainActivity.CustomHashMap)getApplication();
  </code></pre>
  
  <p>In MainActivity I can do things like <em>thisMap.getKeyValue(4)</em> but from SecondActivity only null is returned. I feel as if I am
  missing something very simple here. Any ideas?</p>