I created two Android applications that share the same user Id 
(sharedUserId) as well as the same process. In the first app, on startup, I 
set a static int variable to 1 (it's default is 0). In the second app, I 
load (using reflection) the same class from the other app and read the 
static int variable. I read 0.

Since both applications run on the same process, I would expect them to 
share the same static values, no? Can anyone tell me what the mechanism 
underneath does? (are they using, maybe, different apk/dex loaders and that 
causes this behavior?)

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to