3

I am new to android development and i am looking for the best possible solution to my problem.

I am open for nearly everything. I am currently in "experimental phase" so i can turn the design upside-down if needed.

I am working on a series of apps (in the end about 5-10) which should be able to share global settings.

The apps will all communicating with a WebService and have to identify itself to use its functions. The identification includes a "device id". Every app should send the same ID while on the same device. I want to create the ID on the first start of one of the apps and then use it from any of those apps.

I searched a long time but didn't find a solution. In most of the questions i found here that are related to my problem the use of a ContentProvider is recommended. I think that is not possible in my situation since i do not have a central app that can provide the settings.

Here are some questions i already read through:

Android sharing data (state,value,config) between multiple apps & activities

I am unable to get Shared Preferences of other application

Copy/share configurations between paid/free versions of Android app?

Android Shared Internal Storage

Create and Share a File from Internal Storage

Saving public files in the internal storage

Since MODE_WORLD_READABLE and MODE_WORLD_WRITEABLE are deprecated the following is also not what i am looking for but very close: Sharing files/ installation directory between two apps

I've also read about ANDROID_ID but this seems not to be a good choice.

I was hoping one of you can lead me to a good solution.

Community
  • 1
  • 1
Gargo
  • 621
  • 6
  • 17
  • 1
    Why are these separate apps? Why is this not one single app? – CommonsWare Sep 25 '13 at 19:40
  • This is because every app serves another purpose. You can think of modules if you like. For example App1 is for tracking construction machines, App2 is for rapporting worked hours on different building lots, App3 is for searching a product catalog, and so on. The apps do not depend on each other. – Gargo Sep 25 '13 at 20:17
  • 1
    "share global settings" implies that they "depend on each other". – CommonsWare Sep 25 '13 at 20:27
  • 1
    I am sorry not beeing clear enough. I try to clarify: Apart from the "device id" setting i try to share, they do not depend on each other. – Gargo Sep 25 '13 at 20:36

0 Answers0