If I use CWAC-Presentation, can I access phone`s screen? - android

I finding phone`s screen mirroring API.
I wrote at goolgle Developer, I got reply about Presentation API.
but, I still don`t know how can I access phone's screen.
If I use CWAC_Presentation API, can I make mirroring application?
(exactly like chromecast's mirroring function..)
At https://github.com/commonsguy/cwac-presentation provide "Mirroring Presentation Classes",
It`s simple and great API. But I can't understand it.
so.. My question is..
Can "Presentation API" access the phone's screen without root?
-> How it works? Is it provide "display capture"? or just "display location"?
Can I make mirroring application like chromecast's mirroring function?
Should I choose "Display manager" or "MediaRouter" ?
Is any sample or app about "Mirroring?"(not miracast, it`s phone to pc(tv))
Finally, I want buffers of the phone screen. Can I?
Please help me. Thank you.

Can "Presentation API" access the phone's screen without root?
No.
Can I make mirroring application like chromecast's mirroring function?
No.
Should I choose "Display manager" or "MediaRouter" ?
Neither will help you.
Is any sample or app about "Mirroring?"(not miracast, it`s phone to pc(tv))
Chromecast's mirroring is Miracast.
Finally, I want buffers of the phone screen. Can I?
Only with root. This has nothing whatsoever to do with the Presentation API.

Related

How do I disable screen mirroring for Flutter app?

I'm working on a new flutter app and the client wants to detect screen mirroring and disable it, Is there is a way to do so in Flutter using a third party package or something?
I've tried using the FLAG_SECURE in android but it disables only screenshots not screen mirroring.
There is no out of the box package for flutter. And there is also no effective way to disable mirroring for Android and iOS.
What you can do on Android is to use the DisplayManager to get all current logical displays with the method getDisplays. Then you can maybe show a pop up if the number of displays is to big for your app, in order to inform the user.
For iOS I don't think there is something available to stop or at least detect screen mirroring.
for android side we can use
int CanMirror = Settings.Secure.getInt(this.getContentResolver(), Settings.Global.DEVELOPMENT_SETTINGS_ENABLED , 0);
you can get better idea :https://stackoverflow.com/a/63971764/18340828
and ios side dont have much idea.

Mirror screen from a device to another

I am developing an app to achieve the functionality for Screen Casting from one android device to another android device.
I am developing an app which would be functional like teamviewer i.e. cast other user screen and also want to implement the functionality which identify the screen tap from the destination screen which reflect the action to host screen.
I am using below example's link for implementing the functionality. But not able to achieve the solution for screencast.
https://github.com/mmuszkow/ScreenMirroring
https://github.com/farmerbb/SecondScreen
https://github.com/JonesChi/CastScreen
https://integrate.teamviewer.com/en/develop/screen-sharing-sdk/android-tutorial/
Any help will deeply appreciated.
You can not do this Mamta. Not possible in this life.

Capture screenshot with mobile image in Android

I have developed an application and need to have the screenshots of the application. I am able to achieve this using the devices/capture screenshot in Eclipse. But, this gives the contents inside the screen. I want the screen shot with the mobile background where i can publish or use it for website. Is there a way to achieve this?
Are you looking for the Device Art Generator?
Some custom ROMs like CyanogenMod have a built-in screen capture 'plug-in' which you can access.
Have you take a look at this already?

android unlock screen using nfc

I want to unlock the andorid screen when a tag is detected - based on the tag ID.
something like how com.biwota.cerbero is done. someone here has any experience or knows how this can be done. ? could you please point to the right directions perhaps ?
thank you
Domnic
This is not possible, unfortunately. NFC polling is turned off when the screen is off or locked, since Android 4.0 ICS. Only with a custom ROM you can modify this behaviour.

Can I take a screen capture from an Android app by using a service?

I was wondering if there is a way to take a screenshot of the current screen inside the mobile phone using a service (I know how to do it through DDMS though)
Not without root access.
Just for encouragement I would like to say that on Android Developer Challenge 2 there is an application called 'drocap' that does exactly this - takes screenshots on the phone. This is running on my stock european Hero, so no root access required.
But I have no idea how it works. So - keep looking ;)

Categories

Resources