1

I meet one case: my several apps(app-A, app-B, app-C) may run on same andorid device. But I need to send just once notification per day during these apps. My design is to use a gloal flag like create a empty file with date like: notify_file_2017_01_07, But It may encounter the conrrent problem. So is there a good solution to set system global flag like this ?

Actually this is different with: Data sharing between two applications, it's about how to set gloal sharing flag in multiple apps, but not to exchange data between two apps.

Community
  • 1
  • 1
Chogri
  • 326
  • 3
  • 15
  • I am having a similar problem on android with react-native context. I checked [this](http://stackoverflow.com/questions/5745243/data-sharing-between-two-applications) answer several times but it did not help. I am using [this component](https://github.com/oblador/react-native-keychain/blob/master/android/src/main/java/com/oblador/keychain/KeychainModule.java) for this purpose. However I could not share a single data point among multiple apps. I am using `SharedPreferences`, `sharedUserId` etc. but no config did help me. – milkersarac Feb 08 '17 at 15:24

1 Answers1

0

You may want to look into ContentProviders. They are pretty standard to share data between apps.

gsb
  • 5,520
  • 8
  • 49
  • 76
  • In my understanding, ContentProvider just allow other apps to get the data of self app( app-A acces app-B), cause ContentProvider belows one app. It's little different for my case. – Chogri Jan 07 '17 at 02:53