Android system window object acquiring method and android system window object acquiring device
暂无分享,去创建一个
The invention discloses an android system window object acquiring method and an android system window object acquiring device and relates to the technical field of intelligent mobile terminals. The method comprises the following steps of before a window object called by window service acquires a function, intercepting calling of the function acquired by an initial window object in an android system; replacing the intercepted function acquired by the initial window object with a function acquired by a first window object; and when triggering window service so as to acquire the acquire the window object, acquiring the window object through calling the function acquired by the first window object by window service, and returning to a specified process, wherein subwindow objects are extracted from the window object in the specified process. According to the android system window object acquiring method and the android system window object acquiring device, the problem that existing methods and devices cannot meet the high window object acquisition speed and are not applicable to all android versions is solved, and the android system window object acquiring method and the android system window object acquiring device have the beneficial effect of rapidly acquiring the window object under the condition of giving consideration to various android versions.