Re: [android-developers] Same permission defined in multiple applications

2012-03-20 Thread Doug
Dianne, when would you recommend using sharedUserId? Also, are these subtleties documented anywhere? Doug On Monday, March 19, 2012 5:57:33 PM UTC-7, Dianne Hackborn wrote: I strongly recommend avoiding sharedUserId. Note that once you publish an app with this, you can never go back. It

Re: [android-developers] Same permission defined in multiple applications

2012-03-20 Thread Justin Anderson
I have only ever used it in once case... I have two apps on the market. Once is free and the other is a paid plugin that unlocks features in the free app. The sharedUserId setting was perfect for me because it allowed me to do my license checking in the paid app and save certain things about

Re: [android-developers] Same permission defined in multiple applications

2012-03-20 Thread Dianne Hackborn
I would recommend using it for .apks that are going to be built in to the system image (not distributed on Market) and want to have their code running in a common shared process in order to reduce their overall memory footprint. That is the reason this facility was implemented. I think it was a

Re: [android-developers] Same permission defined in multiple applications

2012-03-19 Thread Justin Anderson
If you want to share things like preferences between the different apps then you will want to make sure that you also give them the same sharedUserId attribute in the manifest: http://developer.android.com/guide/topics/manifest/manifest-element.html#uid Thanks, Justin Anderson MagouyaWare

Re: [android-developers] Same permission defined in multiple applications

2012-03-19 Thread Dianne Hackborn
I strongly recommend avoiding sharedUserId. Note that once you publish an app with this, you can never go back. It will have a lot of subtle repercussions on your app that you may not like -- everything from all of the apps with the same shared user ID being batched together in accounting for

[android-developers] Same permission defined in multiple applications

2012-03-18 Thread Ryan Reeves
I am developing two applications that will share functionality via their activities. I would like to only allow applications signed with the same certificate to start these activities. My plan is to create a custom permission with protection level of signature and apply that permission to

Re: [android-developers] Same permission defined in multiple applications

2012-03-18 Thread Mark Murphy
On Sun, Mar 18, 2012 at 5:50 PM, Ryan Reeves rreeves...@gmail.com wrote: I am developing two applications that will share functionality via their activities. I would like to only allow applications signed with the same certificate to start these activities. My plan is to create a custom