Back button response in video call - android

I am building an android application having video call facilities. I have used pristine.io webrtc library. My problem is when I press back button I want to finish the activity and show a small video view in top right corner of the screen. Thus user can navigate other activities of the application. If a user touches the small video view, the original Activity restarts with full screen video. Can anyone help me telling how can I do this.

Related

Android Kotlin: App flickering when clicking app overview button

For some reason clicking the App over view button (the button next to the home button and lets you view all apps running) makes my app flicker... What would be the reason?
I am currently using one activity, all other screens are fragments stacked on each other. Could that be the problem?
Also, when clicking on the app over view button, sometimes all the fragments will simply be removed leading me back to my singular main activity...

How to prevent user from clicking Navigation buttons in Android

I have encountered a problem where user will exit my application accidentally. I know Android is preventing to block use of these buttons, because you should always be able to exit your app somehow but I am creating an app for blind and visually impaired people and I will implement a special exit the app so they won't close it when they will be using it.
Here are some things I gathered:
I can block the onBackPressed() function and prevent going back.
I can't use onKeyEvent() since it won't grab the home click
Good example is MX Player where you can "lock" your screen but it just draws over the whole screen, thus preventing user to click on anything.
Ok, so I would like to grab the same thing as MX Player, except, I would like for user, to still have interaction with the screen.
I tried using Immersive full screen that Google has introduced for full screen apps, but whenever user slides his finger on the screen, Navigation Menu popus up. Can I keep this hidden at all times? Also, can I prevent the slide from Status Bar to display the buttons? I would like to have full control of how the user is moving their finger over the screen.
So if I go back to the MX Player solution - drawing over the screen. Can I create like a Canvas that doesn't have focus and it's just there to prevent the clicks on the buttons?
Any help is very much appreciated. Thanks.

Android thumbnail when it goes to background

I have an app in android that I want to protect it's content when the app goes to background or mainly when the user pressed on the home button. If I go to switching between apps I can see a small thumbnail there of my current app screen, which I want to protect it with some blur or another screen.
I tried blurring, dimming, changing colour in the onPause event, but it always takes the screenshot thumbnail for the switch apps as it is.
Do you have any idea or approach on this matter?
Have you tried disabling the thumbnail by adding FLAG_SECURE to your window on exiting?
getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE);

Show Caller Location On Incoming Screen

I am developing an app which the Location of Caller on Incoming call Screen.
To show that I used Toast, But I came to about ann App which does this but not using Toast.
It uses something else to show something on Incoming Call Screen. I want to know what is that control.
The screen shot is attached here
As you can see in the image. I want to know about the control or View (that is in red Line Center).
This particular contriol can be dragged up and down and can be closed on clicking cross button
How to create this control.
you can use system overlays to put a view on top of all the screens..
check out following post for more info:
Creating a system overlay window (always on top)
Creating a system overlay where the home buttons still work?
AirCalc is one more proof of concept...

Android "Tooltip"

The current Android YouTube application provides helpful hints for navigating the user interface. For example: the first time the user switches between tabs while a video is playing, a small "tooltip" with an arrow pops up and says "You can also switch between tabs by swiping left and right." or something to that effect. Is there a way to mimic the look and functionality of this tooltip?
The best way I could think of doing that is having something in a preferences file and when the user triggers a certain event (pressing a tab in Youtube rather than swiping) it brings up a custom view or even a Toast message. Then, after the tooltip is triggered, set the specific tag in the preferences file as triggered.

Categories

Resources