How to use an Android stock app as a library in another custom Android app?
<p>I have downloaded Android source code and set up a build environment. 
I want to use the Android stock Mms app as a library from my custom app, so that I can use the functionalities of Mms. So, I modified the Android.mk file of the Mms app by including the BUILD_SHARED_LIBRARY template, and build it (by $ mmm packages/apps/Mms) to generate a "MmsLib.so" file. 
Then, in my custom app's make file, I have LOCAL_SHARED_LIBRARIES := MmsLib.so, to refer to the Mms shared lib. But when I build my custom app, it throws error as it cannot find symbols for classes of Mms lib.
Any help is appreciaited !</p>
