Are you sure that this is the assignment?

You can force two applications to have the same UID by using an attribute 
of the <manifest> element in AndroidManifest.xml. This is documented in 
Security and Permissions, 
http://developer.android.com/guide/topics/security/security.html. This 
guide also describes the ramifications of sharing a UID. Once you do this, 
the two application are treated as "one" by Android, so they share the same 
"sandbox". This means that a file written by one can be read by another. To 
share a variable, you could create an object and then serialize it to a 
file.

However, I strongly recommend against doing this sort of thing. It's not 
the way Android is designed to work. Applications should avoid knowing too 
much about one another. An application A should use common APIs to send 
information to an application B, with the assumption that B could be 
anything.

In summary, I think it's a bad assignment.

-- 
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