I am building an android application where I want to read WindowManager(System Alert) Alert Text that is trigger from some other application.
Suppose there is some application like true caller and after the end of each call this application display some information of that particular phone number in WindowManager(System Alert) of android and I want to read all this information related to that phone number which is displayed in WindowManger(System Alert) using my application.
Is there any way to read or to get view child of WindowManger(System Alert) Alert dialog trigger by other application.
Think one way would be to write an accessibility service (https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html) and hook to some accessibility events. Maybe TYPE_WINDOW_STATE_CHANGED?