0

I want to open youtube link in youtube app, when I click button in my app. Instead of this I have this error:

AD-PLUGIN-...Controller com.miui.msa.global E Get miui intent sender : com.testyoutube.app

Youtube app doesn't open, and after button click and this error all other ui in my app just off. I mean buttons are not pressed, lists are not scrolled, but animations continue to work and data is updated. It’s like an invisible window has opened on top of my application, and now I can’t interact with UI

My code:

val intent = Intent(Intent.ACTION_VIEW)
 intent.data = Uri.parse("https://www.youtube.com/")
 startActivity(intent)

My MIUI version is 12.5.1

I tryed to accepted "Displaying popup windows while running in the background" permission on App detail settings like in answer from this question:

MIUI - Permission denied while trying to start ACTION_SEND / ACTION_VIEW intent

But still have this error

2
  • does your original code contain quotes in Uri.parse(https://www.youtube.com/), and yet not working? Commented Nov 8, 2023 at 18:22
  • @VladGuriev oh, yea, sorry forgot to write quotes in the question code. Yes, I have quotes in original code and code still not working Commented Nov 8, 2023 at 18:45

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.