How to create an android plugin with views, activities and objects
<p>So... I'm trying to create a plugin for one of my apps. This plugin would require several views, images, an activity and a parser for CharSequences... Ideally, this plugin would be downloadable from the Android Market. </p>

<p>I understand how to create a library, but that would need to be included in the application.</p>

<p>I understand how to create an app as a service and just call it via intents, but I need direct access to objects and code that is neither parceable nor serializable.</p>

<p>What I have been looking at is <a href="http://code.google.com/p/eyes-free/">eyes-free TTS</a>. With their implementation, the developer includes a small TTS_library_stub.jar file in their app, which looks like it defines a lot of the necessary classes/objects.</p>

<p>So my question is, how would I go about building something like this and generating this "stub" .jar file, which would be included in my app? I've been trying to work my way through the TTS code, but it's a massive codebase, and I'm having trouble finding what I'm looking for.</p>

<p>Any help would be massively appreciated :)</p>
