40 questions
0
votes
0
answers
66
views
How to read data installed in User1 from User 2 in multi user android
Using multi user, I created two user profile:
I have two apps. One is admin app and another is guest app.
User1 profile [Admin app installed]
User 2 profile[Guest app installed]
In admin app, I have ...
0
votes
0
answers
59
views
Sharing data in multiple User app(User and Admin)
I created the multiple User app in which there are User and Admin.
So i want send the User Enrollment request, if user click on Enroll the form should fillup by the user(Name,email,contact). and after ...
1
vote
1
answer
237
views
Android: access SQLite database via Content Provider with multiple users in same application
My requirement is to create a sqlitedb which can be shared with any user who logs into the application. Looks like ContentProvider can be used only to share the db with other applications. Is there ...
2
votes
0
answers
162
views
Which is the best approach for an app with multiple users using Room database?
I'm developing an app (Android, Kotlin) that allows the user to register different documents with specific information in Room database. I'll implement in the app to only be able to display the files ...
0
votes
1
answer
79
views
need to run while loop for multiple users in jmeter
I am using jmeter to test the performance for the ride booking app.I need to run the while controller which runs the events fetching api continuously until the ride is completed or if driver is not ...
0
votes
2
answers
5k
views
Is it possible to enable android multi-user from adb?
As stated in the official document, it is possible to enable android multiple user feature at build time, but there is no document about enabling it on an exiting android image. Is there a way to ...
0
votes
0
answers
408
views
Multi user management with objectbox database
I have an application where a user logs in to their account and stores data according to their account. The user then logs out of their account and logs in with another account and stores other data ...
1
vote
2
answers
1k
views
How to check if "Multiple users" is enabled
Is there a system setting table or API I can check to see if the "Multiple users" setting is turned on in Settings -> System -> Advanced -> Multiple users?
Thanks!
2
votes
1
answer
6k
views
Can I make a shared folder in Android for multiple users?
In Android 29, I want to be able to share large files between multiple Android users. Is it possible to make a shared directory that users can access? And can that directory be made browse-able by ...
2
votes
0
answers
562
views
Device owner app has no privilege in the secondary user
I am a beginner in Android. I am trying to make an app that can switch the user between the primary and secondary without root.
I found DevicePolicyManager.switchUser useful in my case.
So I ...
2
votes
0
answers
2k
views
Android multi-user: get current user info
Strangely there isn't a question on SO regarding this topic. At least I couldn't find one.
Like Windows & Linux, Android too allows us to have multiple user accounts on the same device/computer:
...
6
votes
3
answers
3k
views
Prevent Android App from getting installed on multiple users
When I run my app from Android Studio and install it on the primary user on a device, I notice that it gets installed on the secondary user as well.
In the first place, why is this happening? The ...
27
votes
5
answers
4k
views
Get list of apps of all users
If I want to retrieve an ApplicationInfo list for all apps of the current user, I can just run:
PackageManager pkgmanager = ctx.getPackageManager();
List<ApplicationInfo> installedApps = ...
0
votes
2
answers
604
views
How to create multiple users registration and login activity in an android?
I've made registration and login activity in an android using shared preferences. User is able to registered and logged in successfully. But my problem is when new user is registered, it delete the ...
1
vote
2
answers
1k
views
No Activity found to handle Intent { act=android.app.action.ADD_DEVICE_ADMIN (has extras) }
I'm trying to enable the device administration, so I can create secondary users in Android 9.
First is to send an intent with ACTION_ADD_DEVICE_ADMIN like this below :
// Launch ...
1
vote
3
answers
582
views
Is there any way to install on the same android mobile a debug version of my app AND a google play store version of my app?
Is there any way to install in the same android mobile a debug version of my app AND a google play store version of my app? I try to setup on my android multiple users, but when from another user than ...
0
votes
2
answers
132
views
Use separate DB for each app user, with SQLiteOpenHelper and a ContentProvider
My app uses an SQLite DB, wrapped with a SQLiteOpenHelper and a ContentProvider. I added a sign-in feature to the app, and now I want every user to only be able to see his own data. The way I thought ...
1
vote
0
answers
772
views
How to install my app for all device users when it is installed by Owner user?
I would like to know how to make the app and his services available for all device users, including guest mode and users added after it's installation. Kiosk mode and root the device are not an option....
6
votes
0
answers
261
views
Relation between AlarmManager and INTERACT_ACROSS_USERS
We recently integrated with Crashlytics in Firebase and found that our app was facing this crash:
Fatal Exception: java.lang.SecurityException
get application info: Neither user 1010170 nor current ...
2
votes
1
answer
10k
views
How to access personal file in SD card in work profile App?
According to Google's introduction https://developer.android.com/work/managed-profiles.html, personal files in SD cards are not accessible by work profile application. However, we can see all files in ...
4
votes
0
answers
1k
views
Google In-App Purchase how to set Account for Billing [Not Possible as of 2017-05-26]
Backstory
I'm trying to implement Android's inapp billing for subscriptions. Surprisingly, It's going relatively smoothly, but I've hit a wall. What I'm trying to do is have multiple possible ...
1
vote
2
answers
329
views
Login of many users using SharedPreferences
How can I create a multisession with shared preferences so that two users can login and logout in the same session?
I have the following code.
public class Session
{
SharedPreferences prefs;
...
5
votes
0
answers
1k
views
Android 7.1.1 multi-user support in emulator
I tried to get the multi-user support for my Android 7.1.1 AOSP emulator build on Ubuntu 16.04 64bit. The build gets run with lunch aosp_x86-eng and following the emulator with emulator64-x86.
I ...
7
votes
1
answer
6k
views
SecurityException: get application info: Neither user 1010069 nor current process has android.permission.INTERACT_ACROSS_USERS
I'm getting this weird crash. It seems like AlarmManager.set() cause this
but I don't understand how nor why.
Stack trace:
Fatal Exception: java.lang.RuntimeException: Unable to create application ...
1
vote
2
answers
2k
views
Ionic Build Android command fails with an exception after trying to add ngCordova calendar plugin
I am working ionic(1.7.15) in ubuntu.
My project works fine until i try to implement calendar plugin. After installing this plugin to my project and i try to build with ionic build android command ...
2
votes
1
answer
2k
views
Android for Work ANDROID_ID is returning NULL
I'm using the following code to get the device id:
String androidID = Settings.Secure.getString(getActivity().getContentResolver(), Settings.Secure.ANDROID_ID);
According to the doc here, ANDROID_ID ...
1
vote
1
answer
708
views
getInstalledPackages() for Android multiple users
I want to get a list of all apps installed on my device. My code is below:
PackageManager pm = getApplicationContext().getPackageManager();
List<PackageInfo> list = pm.getInstalledPackages(0);
...
-5
votes
1
answer
447
views
Android create apk programmatically [closed]
I have an app in which i have done some work like updated database with some records. Now i want to generate its .apk file so if i send that .apk to another user he or she can continue work from where ...
0
votes
1
answer
682
views
How to indentify which user profile is activated on Android Multi User feature?
Android has Multi Users feature:
I'd like to identify on my application on some part of the code which is the actual activated user. For example if the activated user is the First, Second or Guest.
...
1
vote
0
answers
494
views
Requirement of Application Kill on Profile Switch
The android application I am working on involves two activities(parent(P) and child(C)).The issue is that on a profile switch (say from Normal mode to Restricted Profile Mode), the parent activity is ...
1
vote
1
answer
324
views
how to make android app density independence?
I am developing photo Editor in android Studio . I have images and icons on my screen which is not fit to other screens(different sizes). I have included following support screen code in my manifest....
1
vote
1
answer
572
views
How to handle in-app billing on devices with multiple accounts?
I'm having problems to handle in-app billing inventory on devices with multiple accounts.
DEVICE 1:
only one account on the device (user = X)
logged with account X on google play
logged with account ...
1
vote
0
answers
686
views
Android multiplayer game SDK development
I am developing an Android App in Android Studio. The application is essentially a 1 vs 1 game where gameplay is as follows:
A 10 second joint planning phase where the players both plan their moves ...
1
vote
0
answers
175
views
Unavailable preferred APN for secondary users on multi-user environment
Currently on my code I'm doing the following to obtain the preferred APN on a device:
public static final Uri PREFERAPN_URI = Uri.parse("content://telephony/carriers/preferapn");
Cursor cursor = ...
0
votes
1
answer
1k
views
How to make android multiplayer games without port forwarding [closed]
I am trying to make a multi-client application in which somebody is the host and other people join into the game. I need this to be possible without port forwarding so that users can easily set up ...
1
vote
1
answer
298
views
How can the Android 4.2 multiple user API be used remotely?
The new Android 4.2 offers a feature called multiple users where users can have separate accounts, settings, and data.
I was wondering if there is a way for this API to be used remotely. For example, ...
2
votes
1
answer
636
views
Android: multiple-user how to change system locale/ language per single User
I'm working on the AOSP with multiple-user.
I need to change the default system language (or locale) to single user, all my attempts change the entire system language for all users.
I use the ...
1
vote
1
answer
352
views
In app billing for multiple users in android application
Is it possible to use google's in app billing mechanism for purchasing subscriptions for multiple user in my application? I have login/register mechanism implemented on my own server and users can ...
21
votes
1
answer
11k
views
How to detect switching between users
I have a service running in foreground mode and I'd like to detect switching between user sessions on tablets running Android 4.2 or above.
Is there any broadcast receiver I can register to get ...
3
votes
3
answers
2k
views
How to know if the android device supports multi users?
Android 4.2 supports multiple user spaces "on shareable devices such as tablets"(http://developer.android.com/about/versions/android-4.2.html#MultipleUsers). How do I know if a specific device is a "...