Android: how to integrate with another application?
<p>I have a paid android application which uses the google LVL code to authenticate users.</p>

<p>A company would like to pay me so that their application can include a free version of my application.  However, I'm not sure how to accomplish this in a way that won't result in an easily pirated version of my app.  Below are some implementation options I am considering, but none of them seem like particularly good ideas.  Any suggestions?</p>

<ol>
<li><p>I deliver them an apk which does not use the LVL code.  They could then package my apk with their app, and install it using the ACTION_VIEW intent.  This seems like a bad idea because I think it wouldn't be particularly hard for some rouge user to extract my unsecured apk and distribute it.</p></li>
<li><p>Maybe I could build a version that checks to see if their app is installed, and if it is it queries their app for some sort of unlock code.  And app will only run if this unlock code succeeds.  My main concern about this is that I have no idea if "querying another app" for an unlock code is accomplishable.</p></li>
</ol>
