Android, IOS force pressing on the screen - android

Is there any way to measure the force (weight) clicking on the screen in Android or IOS ?

For Android there is MotionEvent.getPressure().
As far as I know iOS does not have a way to get pressure information.

Speaking for iOS: there is no possibility to obtain the force employed when touching the screen.

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.

How to force a widget to appear on lock screen programmatically (Android)

I want to force a widget to appear on the lock screen in Android.
Any ideas or code examples?
Thanks in advance.
First, the standard Android lockscreen framework only supports app widgets from Android 4.1 through 4.4, which is a steadily shrinking portion of the Android device ecosystem.
Second, there is no programmatic means, in standard Android, to force the user to add an app widget to the home screen or to the lockscreen.

Appcelerator - How to disable system sounds when tapping on empty spaces on the screen?

I'm building an Android app using Appcelerator and I have a problem with the sounds effects when I tap the screen.
I only want disable the sounds effects when I tap in an empty space of the screen in Android. I tried it with the property "touchEnabled: false" and I was looking for in Google and through this website but I didn't find the solution at this problem.
Could anyone help me?
Thank's very much.
This is not something apps have influence on AFAIK.
The user will have to disable this in their Android device settings:
http://www.wikihow.com/Turn-off-Android-Touch-Sounds

Android : Guided Mode

Is it possible to lock the screen on Android (similar to guided access in iPad) ? I have tried few of the apps but they do not really lock the screen down. I want my two year to use it to watch videos and that is the reason behind it.
This works beautifully on the ipad (unfortunately its broken now).
No you can't do it in android. the hackaround for this you would have seen in other apps like dim brightness and fullblack image over the window.
are you looking for a ppl or writing a new program but don't want the user to close it or switch screen?
if so you may try to disable the home button the android deivce and set a password to prevent the user from exiting
don't know if this help

Personalized lock screen for Android

Hello I am looking for personalized screen locker for android phones, instead of typing numbers , user can flex fingers in a particular pattern and unlock the screen.
Any pointers/ideas are appreciated.
You might want to look at the Android source: LockPatternUtils.java and LockScreen.java for an idea of how to go about implementing your own.
Also interesting is the android.gesture package which you can use to create and save gestures.

Categories

Resources