How do you use two different user IDs for the same Android application?

1.5k Views Asked by At

There has been lot of discussion how to use the same user ID for two applications.

I have a little bit strange situation where I want to provide two user IDs for one application. For example, from the same application, activity 1 and 2 will use a different user ID, or a service will run on a different user ID then rest of the application.

Any thoughts?

1

There are 1 best solutions below

0
On

This is generally not possible unless you want to split your application into two packages (.apk files).

See the documentation here.