android - Can accessibility service be stopped or killed? -


I have written an accessibility service and after receiving a service I want to stop / kill the service (i.e. onAccessibilityEvent ). Can it be done? I have tried to kill the process below but it is not working.

unbindService (mSvcConn);
android.os.process.killProcess (android.os.Process.myPid ());

I have an Android manifest. Xml

I have given the following permission. I know that the accessibility service can not be started in the program but it stops?

An accessibility service can not remove itself from the list of competent services or without its own process Can be able to automatically restart the service, but you can call AccessibilityService.setServiceInfo (New Accessibility Service Manager ()) to shut down your service effectively.

The calling accessibility manager .isEnabled () will still come true, but your service will not receive the event.

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -