I am almost ready to upload an application to the Google Play, but I want to do it well, without mistakes (or trying to avoid them), so I have followed this question: “To Do” list before publishing android app to market [closed]
But, there I have seen an answer that makes me pay more attention because I did not know about that attributes. This is the answer that I refer to.
The answer suggests to declare android:process
and android:sharedUserId
attributes so I looked for that documentation.
Looking for some information about both attributes, I have found this answer for android:process
attribute that makes me see more clear how this attribute can be used. What I could get from there is that you can declare that your Activities will be launched in different process to avoid memory limits when you run the main process. Correct me if I am wrong.
Far from encountering a detailed documentation for android:sharedUserId
attribute, I tried looking in some questions here:
- sharedUserId: safe to change when app is already in market?
- What is sharedUserId in Android, and how is it used?
- Two app with shared UserID
And what I could get from there is that I can share some information between applications. Again correct me if I am wrong about it.
In my application, I only use Google Maps inside of it so some questions came to my head:
Should I always declare
android:process
andandroid:sharedUserId
as the answer that I linked before suggests?If it is true, can it generate some security problems? I do not know if it can be possible, but I think that if some applications can access to your data application it can maybe be a security problem (depending of the type of data that you have on your application).
What name should I use on
android:sharedUserId
? Can it be whatever I want or has to be a specific name (for example, the package name) so other applications can access to my application data? Is thatandroid:sharedUserId
public?If I do not want that my application share information by the moment, but in the future I want to do that. Should I declare that
android:sharedUserId
the first time I publish it on the market? Could the rest of applications access to my data then?- Should I declare
android:process
to, for example, execute my maps that is on aFragment
?
Note: I am totally confused about those attributes so maybe that questions are not totally well-formed (in a syntactic or concept way). Please correct me in any mistake that I could make on this question. I tried to recopile as much information I could, but it is not enough to solve my doubts.
Thanks in advance!