Android Chat Window Capture Using XML Scrolling Under Security Limits
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing screen capture technologies on Android-based portable terminals struggle to accurately and efficiently capture chat windows due to performance issues, resource usage, and security restrictions, often resulting in distorted images and inefficient processing.
Innovation Solution
An automatic scroll capture method that utilizes Android's screen dump function to acquire XML data while scrolling by selected pixels, integrating data to create a comprehensive screen capture image, including identifying common data between consecutive XML data and combining images accordingly.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Measurement precision
If screen capture is performed on Android-based portable terminals, then the current screen can be captured and saved as an image, but the device performance and resource usage are affected
Solution Approach 1:
The screen capture process is divided into multiple segments: XML data acquisition, image rendering, and integration. By segmenting the capture process and using Android's existing screen dump function for XML data, the system leverages optimized native operations while reducing the burden on the application layer, thus improving capture accuracy without excessive resource consumption.
Solution Approach 2:
The patent uses Android's screen dump function to copy XML data representing the screen content. This copying approach allows the system to work with lightweight XML representations rather than directly manipulating full-screen images, reducing memory usage and processing overhead while maintaining capture precision.
2Measurement precision
If chat window capture is performed on Android devices, then the chat window can be captured, but security restrictions and permission issues prevent accurate capture
Solution Approach 1:
The patent introduces XML data as an intermediary representation of the chat window. Instead of directly capturing the visual display (which is blocked by security restrictions), the system accesses the XML data structure that represents the UI elements, allowing accurate chat window capture while bypassing Android's security limitations.
Solution Approach 2:
The patent transitions from capturing the visual dimension (screen image) to capturing the data dimension (XML structure). By working with the XML representation of the chat window, the system achieves accurate capture without being constrained by visual security restrictions, effectively changing the dimension of capture from graphical to structural.
3Loss of information
If the screen is scrolled to capture the entire chat window, then the complete chat window can be captured, but the capture process becomes time-consuming and inefficient
Solution Approach 1:
The patent performs preliminary actions by acquiring XML data for the current screen position before any scrolling occurs. This preliminary XML data acquisition allows the system to understand the structure and content of the chat window in advance, enabling efficient capture of the entire window without repeated full-screen captures during scrolling.
Solution Approach 2:
Instead of capturing the entire chat window through multiple full-screen captures during scrolling, the patent uses partial action by acquiring XML data at the current screen position and integrating it with the understanding that XML data represents the complete chat window structure. This approach captures only the necessary data without excessive scrolling operations.
4Measurement precision
If XML data is acquired while scrolling by selected pixels, then the chat window can be captured accurately, but the process complexity increases
Solution Approach 1:
The patent changes the parameter of screen position by scrolling through selected pixels and acquiring XML data at different positions. This parameter change approach allows the system to capture the complete chat window by systematically varying the screen position while maintaining a simple XML data acquisition process at each position.
Solution Approach 2:
The patent maintains continuous useful action by acquiring XML data continuously while scrolling through the chat window. Instead of performing discrete, separate capture operations, the system continuously acquires XML data at each scroll position, ensuring complete capture without gaps while keeping the process systematic and manageable.
Data Source
Figure 1
Figure 2
Figure 3
AI summary
Disclosed is technology for automatically scrolling and capturing a chat window running on an Android-based portable terminal, and an automatic scroll capture method may include receiving a screen capture command as input; acquiring XML data for a current screen of the portable terminal using Android's screen dump function based on the input screen capture command; acquiring at least one piece of XML data while scrolling the screen by the number of selected pixels at a location at which the XML data for the current screen is acquired; and creating a screen capture image by integrating the acquired XML data.