What’s the easiest way to pass data(string value) between two android applications with less or even without permissions? Also in my case first application sends data to un-existed application which is installing and it can’t listen for intent right now.
Thanks.
Your question is tricky when you can’t ensure that both applications are running. In cases like that, you must rely on some form of persistent storage.
If you’re concerned with only a small amount of data, Android provides a
SharedPreferencesclass to share preferences between applications. Most notably, you can add a OnSharedPreferenceChangeListener to each application so they can be notified when the other changes the value.You can find more information on various different forms of persistent storage on the Android website (http://developer.android.com/guide/topics/data/data-storage.html).