How to share data among applications when we don't know which app is provider but first app has stored data
<p>I have 5(any number) android applications which will share some <code>data</code>.</p>

<p>Now when 1st/2nd/3rd..(i couldn't know) android application will get installed by user, it will save a string in the memory(internal memory), </p>

<p>When any other application will get installed, it should know that one of the app has already <code>written</code> data and now it should act as <code>user</code> of this data.</p>

<p>To sum up, first app installed will act as provider and others as users...but all the applications can be potential <code>provider</code> and other as users..</p>

<p><strong>Is this feasible?</strong></p>

<p>i tried using <code>file/shared preference/content providers</code>...but in <code>file</code>, you should know file path before using it which is dependent on package name..</p>

<p>In <code>shared preference</code>, we have to create package context..
In <code>content provider</code>, we have to import provider package..</p>

<p>My real motive is, actually in each app, i register the user first time...</p>

<p>now i want , if user install 2nd app from me, it can just use data of first app and do not ask for register..</p>

<p>but the problem is i don't know which app will be installed first by user..
Please help if i can use some other approach??</p>
