Android project converting to isLibrary
<p>Hello i want to convert <a href="http://code.google.com/p/ebookdroid/" rel="nofollow">ebookdroid</a> to a library. When I mark it as library i could use its classes in my project. However in ebookdroid when app is loaded Ebookdroid class which extends Aplication is called. This class init app Settings. So is it possible to call this init class from my project if ebookdroid is Library ?</p>

<p>When I try to do this:</p>

<pre><code>EBookDroidApp app = (EBookDroidApp)getApplication();
app.init();
</code></pre>

<p>I get:</p>

<pre><code>java.lang.ClassCastException: android.app.Application
</code></pre>
