title: Custom Application class in library project
body: <p>I have an android library project being referenced by an application project. The library project has a custom class extending the base <code>Application</code> class where I have done some initializations. Now the problem is that this class doesn't get called automatically even though I have registered it correctly in the manifest file of the library project. I even tried to call it using</p>
  
  <pre><code> MyApplication app = new MyApplication();
   app.onCreate();
  </code></pre>
  
  <p>But this gives me a null pointer exception.</p>
  
  <p>What I think is that application class does not get called in the library project automatically. If this is true then what's a better way to call it manually from with in the library project?</p>