java - Separate content provider for bunch of applications -
java - Separate content provider for bunch of applications -
i'm create set of tools android. tools needed track grouping of people, 1 app observing weight loss, other controlling fitness activities of same people etc. think productive way - using same database apps, guess using content provider on db idea. there mutual way such of things?
what making dummy application db , content provider , installing dependency when 1 of tools run first time?
ps sorry english
1) if install content provider 1 of apps, user seek install sec app (without provider) first. have no command on that. , if user uninstalls app content provider, other apps useless.
2) can't set provider in apps, because cannot have several apps installing content provider same authority.
3) can install content provider separate app:
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.example.cntntprvdr" android:versioncode="1" android:versionname="1.0" > <application > <provider android:name="org.example.cntntprvdr.bookprovider" android:authorities="org.example.cntntprvdr.bookprovider" > </provider> </application> </manifest>
then user can install apps in order want, , can uninstall app, , other 1 still access content provider. "advantage" of may since content provider doesn't have app icon, less user seek uninstall it. still have ensure content provider installed.
to honest haven't found proper solution kind of situations, i'm talking google recommendation or best practices. i've found --> http://stackoverflow.com/a/6786587/2017375 attempts solve scenario set content provider in of apps. haven't tested it, can give try.
java android apk
Comments
Post a Comment