Error in Camera app on OnePlus having shutter camera - android-studio

I have written a code which capture photo from front camera. It's working well on all devices. But OnePlus 7 pro has front shutter camera. When I try to capture photo when screen is locked the shutter doesn't popup, instead it asks "tap here to raise the front camera".
How could I disable this message and open the shutter and capture the photo?
It works perfectly when device is not locked.

Related

Automatic change the main screen when switching off the external monitor on laptop

I use Linux on a laptop ACER NITRO 5.
When I'm at home I plug a screen on the laptop and this screen are configured to be the main screen.
BUT
When i unplug the screen my laptop don't automatically reactivate the main screen on the laptop screen (like the behavior on windows).
How i can do that ? Is there a package that can configure that, or a config file ?
Thanks for reading

Control volume from Azure machine

I am starting up with Azure.
Got one Azure machine with Windows 10.
Logged in with RDP.
But not able to control volume with in RDP window.
I have to go back to my original window and change volume.
And volume button in the RDP window is does nothing when clicked:
When I opened Adjust system volume:
Getting No audio device installed message:
How can be the volume controlled from Azure machine logged in from RDP?
It started working after setting up Sounds.
Right clicked on speaker icon in system tray, the below menu appeared:
Clicked on Sounds, below pop-up appeared:
Clicked Yes to enable Windows Audio Service, below box appeared:
Cliked Ok to set the scheme.
Now I am able to play music and listen. Can control volume.

Chrome screen audio capture won't work on Mac

I'm building a chrome extension that captures mic + screen + screen audio with recordrtc.
Everything is working on Windows, but it seems recording screen audio is not allowed on Mac.
Is there a way to get around this?

Sony D2203 and google cardboard

I have a sony xperia E3 (D2203) I can build the demo for google cardboard and load the apk in the phone. When I open it it does starts, I see a menu with [reset] [recenter] [VR mode]
But the movement tracking is not working.
There is also a settings icon, when I click it leads to the cadboard app in google Play store. and In there I find out that my device is not compatible with it.
Can I work with this phone without this configuration app ?
Google Cardboard needs a built-in gyroscope to accurately track movements. Sony D2203 doesn't have this hardware, so it won't be much fun playing with Cardboard.

music player in iphone simulator 4.2

I am trying to add music player to my iphone app using the MediaPlayer framework. I dont have a real device with me and want to test it on simulator. But, the simulator doesnt support MPMusicPlayer and crashes when i run the add media app.
Is there a way I could test MPMusicPlayer on simulator?
You can't add music to the simulator so MPMusicPlayer will fail. It will have to be tested on a device.

Resources