• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Android notification not seen on secondary users in case of multi user support

I have android system application which need to support multi user (i.e single device having different user profile). My application shows notification to user. I want notification should be seen all users along with with user 0. But only USER 0 is showing the notification. Other users not showing notification.

I am expecting notification to be shown in other user when it is ACTIVE. I am not seeing that notification when it is ACTIVE

I added below permission in my code.

<permission android:name="android.permission.INTERACT_ACROSS_USERS"
android:protectionLevel="signatureOrSystem"
tools:ignore="ProtectedPermissions"/>

<permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL"
android:protectionLevel="signature"
tools:ignore="ProtectedPermissions"/>

Also added
android:singleUser="true" for all the receivers and services. Still not able to see notification on other users other than USER 0.

adb command used to switch users : am switch-user USER_ID. when i run this command i am seeing my other user is also running
Example:
$ adb shell pm list users
Users:
UserInfo{0:Owner:13} running
UserInfo{10:New User:10} running
UserInfo{12:Guest:14}

I added multiple user by using System->multiple users -> add user settings

What could be the reason?. I kindly request you to help me to resolve this issue

Problems Loading Music on Phone

I have a UMX android phone Which I've never used for listening to music until now.

When I plug the phone into the computer it opens up another drive on the computer. One of the folders on this drive is Music and I've been able to copy music folders from my PC into this folder and listen to them via ear buds when I'm at the gym.

However I have a number of folders that I've manually created on the PC. Let's just say one of them is a Beach Boys folder and I've created this folder from songs on many of the Beach Boys folders already on my PC.

When, using the computer I drag this new compilation folder into the Android music folder it looks great on the computer. But when I open the music icon on my phone I don't just have the any Beach Boys compilation folder. Instead I have folders for all of the BBs albums that have the songs I used to make the compilation computer.

I tried copying the compilation to an external drive - one with no BBs music, and then using the PC to copy the folder to the Music folder for the Android phone. Once again it looked fine on the computer, but the phone had multiple Beach Boys albums.

Sounds too weird to be true. But I thought a forum devoted to Android phones might have someone who has an answer.

Google assistant

Alright guys, putting aside ALL the things I dislike about the Google assistant, is there anyway possible to adjust the settings in a way that you don't need to unlock your phone for EVERYTHING. You ask the assistant to do? Cuz honestly if I have to pull my phone out of my pocket Everytime I ask it something what is the point of the assistant?

I just wanna ask it to do things through headphones or not and it just do it without saying 'you need to unlock your phone'


THANK YOU!!!

songs downloaded from personal library won't play

I had a LG V20 loaded with 350 songs from my CD library. some are individual, some include several from albums The same songs are also loaded on a thumb drive, played in my car. in both cases I have no issues. A large majority of the songs were stored on and moved from Windows Media Player to the thumb drive. Can't remember how I got them onto the LG V20. I burned the songs to Microsoft at the highest bit rate available/allowed. Transfer from the Thumb drive to the Pixel was via Bluetooth. all 350 songs were transferred over, are visible and show the length of the song etc. they show up individually and when in the album view are shown there as well. None of these are SACD or other high resolution files. Standard CD files.

using Google Play Music, then two other music Apps, all apps will only play about 1/5 of the songs. Because these songs came off of my personal CD collection, best guess is that there is an issue with songs played if they are part of an album. Or is there a format that Pixel won't play? Is there a program that i can run the songs through that will make them compatible with the Pixel?

Verizon technical support was stumped. i deleted the Google Music account 2X to "re-boot" the system. Nothing seems to work. Any suggestions?

Android asks for USB access permission twice

I have an application designed to operate the USB serial device. The Manifest contains the corresponding filter:

<intent-filter>
<action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
</intent-filter>
<meta-data
android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"
android:resource="@xml/device_filter" />

When I plug the USB device, the system pop-up dialog asks "Open ... when this USB device is connected?". I can confirm or decline, and this part works fine. However, if I decline and then restart the application from the menu, my phone hangs out. In the stack trace, I see the error:

User has not given permission to device UsbDevice...

Therefore, I have to ask for the USB permission explicitly. I have tried several implementations and the simplest one looks like this (I use the usb_serial_for_android library: https://github.com/mik3y/usb-serial-for-android):

@override
protected void onResume() {
....
UsbManager manager = (UsbManager) getSystemService(Context.USB_SERVICE);
...
List<UsbSerialDriver> availableDrivers = CustomProber.getCustomProber().findAllDrivers(manager);
...
UsbSerialDriver driver = availableDrivers.get(0);
if (!manager.hasPermission(driver.getDevice())) {
manager.requestPermission(
driver.getDevice(),
PendingIntent.getBroadcast(this, 0, new Intent("com.android.example.USB_PERMISSION"), 0));
return;
}
....
}

The problem is that "manager.requestPermission" executes twice.

When I start the application from the menu, the pop-up dialog asks "Allow the app ... to access the USB device?" If I confirm, the same dialog appears again. It's a rather annoying behavior :(

Here is the Log:
...
I/storage permission: DENIED
V/PhoneWindow: DecorView setVisiblity: visibility = 4, Parent = null, this = DecorView@8856cab[]
D/WindowClient: Add to mViews: DecorView@8856cab[MainActivity], this = android.view.WindowManagerGlobal@5653205
...

The pop-up on storage access appeared. I pressed "allow"

I/storage permission: GRANTED
I/directory: EXISTS
I/usb permission: DENIED
V/PhoneWindow: DecorView setVisiblity: visibility = 0, Parent = ViewRoot{632025a com.ERG.erglogger/com.ERG.erglogger.MainActivity,ident = 0}, this = DecorView@8856cab[MainActivity]

The first pop-up on USB access appeared. I pressed "OK".

I/storage permission: GRANTED
I/directory: EXISTS
I/usb permission: DENIED
V/PhoneWindow: DecorView setVisiblity: visibility = 0, Parent = ViewRoot{632025a com.ERG.erglogger/com.ERG.erglogger.MainActivity,ident = 0}, this = DecorView@8856cab[MainActivity]

I pressed "OK", but the permission was not granted (manager.hasPermission(driver.getDevice()) is false). So, the second pop-up on USB access appeared, and after I pressed "OK", the permission was granted:

I/storage permission: GRANTED
I/directory: EXISTS
I/usb permission: GRANTED
D/CdcAcmSerialDriver: trying default interface logic
...

What do I miss?

P.S. I have also tried a "canonical" way described by Android Developers (https://developer.android.com/guide/topics/connectivity/usb/host). However, this BroadcastReceiver based implementation behaves in the same way. I have read the related posts, like this one Android asks for USB permission twice and communicated with the author. The problem is still actual.

Phone isn't coming on. When I plug the charger in I get no response. Please Help!

I dont know if i leaned on it or sat on it but i doubt it. It was in my pocket and it was cool out so there was no overheating. I usually use the fingerprint scanner to turn the screen on and when it didn't turn on i plugged it into my charger and i got no reaction from the screen or the little charging home button. My power button has been broken for a while so I use the finger print scanner to come in and out but i've never had this issue of no response from the charging cable. I hear a boop from my computer when I plug my phone in so I know the port is fine.

Apps how to sell android icon packs on Play store

i feel like i'm in the twilight zone...
i can barely search the play store for any type of android app, without half the results being an icon pack of some sort, free and/or paid. but a simple www.google search with the broadest terms i can think of ("sell android icon pack") yields 0 (ZERO) relevant how-tos, tutorials, books, or discussions worth a damn. this blows my mind, given play store saturation.
can you please help? links to info / instructions for beginners, suggest different search terms, etc. i'd like to develop something like this: https://play.google.com/store/apps/details?id=com.jndapp.line.x.iconpack&hl=en_US.
thanks

AOSP has released the V15 RIL_InitialAttachApn, where i see the new member call modemCognitive As pe

AOSP has released the V15 RIL_InitialAttachApn, where i see the new member call modemCognitive As per the ril.h documentation for modemCognitive member "indicating the APN setting was sent to the modem through setDataProfile earlier"

what does it mean? if i set modemCognitive variable to true, then Initial Attach APN setting are taken from the DataProfile which is sent modem earlier.

It this my understanding correct?

if yes, what will happen if modem has two data profile with IA bitMask Set which one will be choosed?

Bloatware on Android

Is bloatware considered an app?

I have a LG V20 that's acting more like a dumbphone than a smartphone! I'm in the market for a new smartphone.

Does disabled bloatware take up space on RAM?

I don't want to root the phone. That probably voids the warranty, doesn't it? I can use developer mode but there are a lot of files associated with just one app.

Filter

Back
Top Bottom