0

I'm looking to share few strings between 2 android apps. For example, App B wants to know if user is logged in App A and the name of the current logged user.

Many example on stackoverflow are offering to use Shared Preferences (cf Data sharing between two applications). But android:sharedUserId is deprecated since Android 29 and could be remove at any time (https://developer.android.com/guide/topics/manifest/manifest-element#uid)

On the other hand, there is Content Provider. It seems very appropriate to share database, but it seems completely oversized to share a string.

So my question is : What would be the best option to share simple objects between apps since Android 29 ?

Mathieu H.
  • 740
  • 5
  • 19

0 Answers0