Dynamic Storage Path Mapping for Mobile Application Data
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current methods for storing application data on mobile devices are inconvenient due to different path mapping modes for built-in and external SD cards, leading to inconsistent storage locations for installed applications and their generated data.
Innovation Solution
A method that determines the actual path of the storage space where an application is installed and stores data generated after running the application in that same space, allowing users to choose the installation path for both built-in and external SD cards, ensuring data is stored in the intended location.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Stability of the object's composition
If a built-in SD card is fixedly mapped to a specified path, then the application installation path is stable, but the data storage location becomes inconsistent with the application installation location when an external SD card is used
Solution Approach 1:
The patent implements dynamic path mapping where the system automatically detects the application installation location and adjusts the data storage path accordingly. When an external SD card is inserted or removed, the system dynamically updates the path mapping to ensure data is stored in the same location as the application installation, resolving the contradiction between path stability and data storage consistency.
2Ease of manufacture
If an external SD card is fixedly mapped to a specified path, then application installation is simplified, but data generated by applications installed on built-in SD card is incorrectly stored
Solution Approach 1:
The system employs feedback mechanisms by monitoring the application installation location and using this information to determine the correct data storage path. The system queries the actual installation path and adjusts the data storage destination based on this feedback, ensuring data is always stored in the correct location regardless of which SD card is used for installation.
3Adaptability or versatility
If different path mapping modes are used for built-in and external SD cards, then storage flexibility is improved, but user convenience deteriorates due to inconsistent data storage locations
Solution Approach 1:
The patent creates a universal data storage mechanism that works consistently across different SD card types and installation scenarios. By establishing a unified path determination method that adapts to various installation locations, the system provides consistent user experience while maintaining the flexibility to use different storage media, effectively resolving the contradiction between storage flexibility and user convenience.
Data Source
Figure 1
Figure 2
Figure 3~4
AI summary
Embodiments of the present invention provide a method for storing application data and a terminal device, and relate to the field of communications, so that installation of an application having a default specified path and storage of data that is generated after the application is run are enabled to be located in the same storage space. The method includes: receiving an instruction for running a local application, wherein the instruction is triggered by a user; determining an actual path of a storage space in which the application is installed; running the application, and acquiring data that is generated after the application is run; and storing the data that is generated after the application is run in the actual path of the storage space in which the application is installed. The embodiments of the present invention are applied to use of a mobile phone.