How to Implement a Floating Window in Android (Picture-in-Picture Mode) - Android Studio Tutorial
Вставка
- Опубліковано 7 вер 2024
- If you want to implement a floating window in Android that allows the user to use your app while using others, picture in picture mode is what you're looking for. In this video, you'll learn how you can use it.
⭐ Get certificates for your future job
⭐ Save countless hours of time
⭐ 100% money back guarantee for 30 days
⭐ Become a professional Android developer now:
pl-coding.com/...
💻 Let me be your mentor and become an industry-ready Android developer in 10 weeks:
pl-coding.com/...
Subscribe to my FREE newsletter for regular Android, Kotlin & Architecture advice!
pl-coding.com/...
Join this channel to get access to perks:
/ @philipplackner
Get the source code for this video here:
github.com/phi...
Join my Discord server:
/ discord
Regular programming advice on my Instagram page: / _philipplackner_
Checkout my GitHub: github.com/phi...
You like my free content? Here you can buy me a coffee:
www.buymeacoff...
Every time I see your content I love Android more and more, everything suddenly seems simple after learning from you, thank you so much!! Beautiful video as always!! 🙏
Thank you🙏🙏
Something different to me ♥️ your collaborations to this community will pay you off bro ♥️
Thank you!!
the best Android channel ever
OMG. Just a couple days ago I thought: "I have to investigate how to do a picture in picture mode". You read minds.
Ohh man, how did you read my mind. I was searching pip mode implementation with jetpack compose yesterday and today you uploaded video on same topic.
Amazing content Philipp! Thank you for all you do!
Please explain how to use setActions to pause and play the video in java.
There's a few videos floating around explaining how to implement PiP and send a message, but none explaining something useful.
Keeping uploading such good content, thank you 🙏🙏
Big thank you for all of your tutorials!
How can I know if the user drag pip window and closes it. Suppose in video calling app if pip window closed by dragging down how can I end call and goto home fragment?
Just what I need to finish my video player...
Beautiful video & informative. Thanks, Philipp
thank you Philipp. great tutorial in due time.
Oh God, I do MISS my old Visual Basic
It's so easy to make it happen.
Hello, I'm really stuck with an issue I can't seem to fix.
I want a floating UI with a button to start and stop recording the underlaying apps.
To record the screen I seem to need an Activity, but the button to start the recording is controlled by a Floating Window Service...
So my theory was that I needed to create a communication between a capturingActivity and my FloatingWindowService, but nothing works and I have a strong feeling that I am going wrong somewhere...
The recording has to be extremely fast, so I can process the captured screen using OpenCV in realtime. I also want to be able to click the screen really fast in case that changes anything about the infrastructure.
Help would be awesome. thanks!
You also need to check if app has permission to open pip, user can remove such permission in app settings
thanks for the video. Can you make project playest using Compose. like some real application.
I have tons of videos building full projects in Compose
Phillip , excellent video very well explained by the way do you have this tutorial in java ?
Thank you
Thanks for the video. Can you make video on trigerring call pickup UI using firebase notifications in any app state.
Its a very cool, the its very simples implementartion
What is difference between BroadCast Reciever (Pending Intent) and Implicit Intent, conceptually ?
could you make a video of this for jetpack compose?
Hi i want to add a question post layout in which user can add image, video, text , speech as question. How can I achieve this
I have my player in a fragment is it possible to do something like configChanges in that fragment only and not the whole activity.
Hi Phillip can you do a video on how to write a test class for clean architecture mvvm or test class for jetpack compose since we don't have many tutorial on that thanks
he has many of those on this channel and in his paid courses
thanks for a great tutorial, I watched your Spotify clone tutorial , however Android has now introduced, jetpack media3 and exoplayer will be deprecated soon , can you PLEASE make a tutorial series for jetpack media3 and jetpack compose, using local storage audio files and media session , instead of the firebase files as were used in the Spotify clone tutorial , there is absolutely no tutorial available for jetpack media3 and android UAMP implementation is really complex thanks, regards.
Would be an idea 😁
@@PhilippLackner thanks for considering it , hopefully you make the tutorial soon, sorry I had not read the comment correctly earlier . thanks for all the great tutorials.
very cool video
wish you all the best
I took a good look at this content. I have one question. I am trying to implement a function to take a screenshot by pressing a button in pip state, but since the receiver class is outside onCreate, I cannot use functions such as getWindow() related to the View type. Is there any good way?
How is your editor so different? I mean the colors are better than the orange ones
is it possible to draw floating window on top of system bars? or at least status bar?
Make a video on floating window view in compose,Just like the button in video recording apps.
Thank you !!!!
(just to clarify this is before watching) Is it possible to do this with any part of your activity/fragment?? not just a video view??
Yeah, but the user can't interact with it apart from clicking some actions. If it should be interactable, you need a system overlay which requires a permission in the settings and a service
very good man good job😉
Good job ❤️🌹
There is a lot to learn in android
Isn't it more standard to save/restore state rather than do the configchanges manifest tweak?
This is not about state, it's just a requirement from PIP, since going into PIP mode will trigger a config change. You should be able to leave away the orientation though, since otherwise landscape specific layouts wouldn't be used in landscape mode
😯 🔥
Thank you 👏
the very good video
Aye lad, thats how it is, lol
It is werid that you guys focused so hard on Nice tutorialm saying "No homo" or that what he wrote softs gay. I an co one he just
What are you saying bro
Are you being homophobic ?
Is it possible to use the same method on the web view, for example, as a floating web browser? And if you don't mind, I hope you explain it to us, no one talked about this before