I have several applications that implement logic logic. If you can say that one application is registered on some_account@gmail.com , I want all these applications to register on some_account@gmail.com. If I log out, I want all applications to do the same. But I do not want to do the same immediately. The application itself can handle this, but it needs to know if any other application is registered and if so, just log in for the same email address as this application. Therefore, I need to know what is the email address for which another application is registered. I need to save one line.
At first I thought about SharedPreferences , but this is a pretty bad idea because there are other options (and stackoverflow is full of a bad example of using SharedPreferences between processes). Despite this, I tried it. Configure sharedUserId on all applications called createPackageContext and end up createPackageContext to get the settings. But I canβt read. I always got zero, even if I used Context.Mode_WORLD_READABLE - which is deprecated that way.
Well, the lessons learned don't use SharedPreferences for this (I suppose). But all I need now is to store one line somewhere where my other applications can read it.
Maybe I should use ContentProvider ? But seriously ... for one line? What is the other option? I am sure that for such a simple operation I really do not need a Service or ContentProvider , but in fact I have no idea how to do this.
source share