Questions tagged [android-user-profile]

**From Android Document** It allows more than one user on a single Android device by separating their accounts and application data. For instance, parents may let their children use the family tablet. Or a critical team might share a mobile device for on-call duty.

8 questions
8
votes
1 answer

Security exception: Unable to start service. User 0 is restricted

I've got the below exception trace. Fatal Exception: java.lang.RuntimeException: Unable to create application com.myapp.MyApplication: java.lang.SecurityException: Unable to start service Intent { cmp=com.myapp/.background.MyService }: Unable to…
1
vote
1 answer

How to differentiate between primary and secondary profiles in Android?

I'm trying to disable a component during app OTA on my secondary profile. I'm writing a receiver to disable the component by capturing “android.intent.action.MY_PACKAGE_REPLACED”. Adding my AndroidManifest.xml change here,
1
vote
0 answers

Android - Restrict application installing on all user profile 6.0 when in development mode

I am creating an app which is working fine only the problem is when I am installing/executing via Android studio it gets installed in all user profile. So my question is:- How can I restrict user to install/execute application to single user…
Pankaj
  • 7,908
  • 6
  • 42
  • 65
1
vote
1 answer

Android User Profile Questions

I'm looking for technical input on Android User Profiles (both full & restricted). More specifically I would like to understand: Whether it is possible to create an app which runs across all profiles, i.e. is not stopped, paused, restarted when…
Mr.K
  • 91
  • 1
  • 5
0
votes
0 answers

Why is no user profile returned on Android emulator?

I'm using a bit of code to get the ID of the current user's profile: val cursor = contentResolver.query( ContactsContract.Profile.CONTENT_URI, arrayOf(ContactsContract.Profile._ID), null, null, null ) cursor.moveToFirst() val…
Josh Hansen
  • 917
  • 1
  • 9
  • 20
0
votes
0 answers

Is it possible for an Android app to get contacts of another Android user?

Given the Android device has 2 users. Each of this users will have it's own contacts lists and installed applications. Is it possible for the application installed by only one of this users to read the contacts of another one?
0
votes
3 answers

How many user can be created in a single android device?

As, we know that Android device support multiple user account from android version 4.2 for a single device. My question is how many user can be created for a single device? Is there any limitation?
0xAliHn
  • 18,390
  • 23
  • 91
  • 111
-1
votes
1 answer

QR code generator to get UserID from Firebase Authentication

Below i have created a QR code generator using zxing library. The way it works now is that the user inputs text into the editText and when they tap on the Generate button, it displays a QR code with that text. My question is, is there a way for me…