I have an app widget project, which relies that a corresponding app is installed.
So, the paackage name of the required app is
com.radlmaier.saintscalendar
In the app widgets manifest, I have the following tag inside the tag:
<uses-library android:name="com.radlmaier.saintscalendar" android:required="true" />
Now, when the app is not installed, the widget installation fails, as it should.
But if the app is installed, the widget installation fails, too, with logcat saying:
05-19 22:28:35.359: E/PackageManager(14680): Package com.radlmaier.saintscalendarwidget requires unavailable shared library com.radlmaier.saintscalendar; failing!
I am clearly missing something here.
Is it not possible to use the tag to check for an installed package as opposed to a shared library?
Can someone enlighten me?
That is most certainly not possible.
<uses-library>is for requiring SDK add-ons (e.g., Google Maps).Android does not an application dependency mechanism, so if you want this, you will have to roll it yourself. Personally, I would recommend simply combining these into one application.