Patent Description:
An Android operating system is a Linux-based open-source operating system, and is mainly applied to an electronic device (for example, a smartphone or a tablet computer). Currently, for an electronic device with the Android operating system, a user may install various applications on the electronic device, for example, WeChat, a browser, and a camera application. When using an application, the user may save a created, transferred, or downloaded file as required. For example, the file may be audio, a video, a document, a picture, or the like. However, when a large quantity of applications are installed on the electronic device, because folders of the applications are arranged in disorder, and names of the folders are irregular, it is difficult to find a file to be viewed from a plurality of folders when a folder in which the file is stored is unknown. This is greatly inconvenient for the user.

Document <CIT> describes a videoconference device providing an interface for initiating and controlling a videoconference and incorporating and annotating content in the videoconference without a personal computer. The content may reside on a portable storage medium such as a Universal Serial Bus (USB) or other flash memory device inserted in the interface device or on the device itself. The interface device may be a dedicated device for controlling the videoconferencing system, navigating to desired content, and interacting with the shared content. The device may also be a portable device such as a tablet device or mobile phone that interfaces with a videoconference system via an installed application.

Document <CIT> describes a user interface method displaying a folder play list playable by an application on a touch screen of an electronic device and detecting a touch selecting one folder in the displayed folder playlist. A touch gesture is detected comprising a continuous movement of a touch and performs a sorting operation using a name representation of a storage path of a folder where the touch is detected, in response to the continuous movement of the detected touch gesture.

Document <CIT> describes a mobile terminal including a first wireless communication module; a second wireless communication module; a display unit configured to display an activated screen of a specific application when the specific application is activated; a memory configured to store a control value indicating which specific wireless communication module among the first and second wireless communication modules is to be used when the specific application is activated; and a controller configured to receive an activation signal indicating an activation of the specific application. The specific wireless communication module is automatically activated when the specific application is activated, and the specific wireless communication module is automatically deactivated, when the specific application is deactivated.

Document "<NPL>" describes the Androids's user-visible file system and how to get access to the file manager.

This application provides a method for browsing an application folder and an electronic device, to help improve efficiency of searching for a file by a user.

According to a first aspect, an embodiment of this application provides a method for browsing an application folder according to claim <NUM>.

According to a second aspect, an embodiment of this application provides an electronic device according to claim <NUM>.

According to a third aspect, an embodiment of this application provides a computer storage medium according to claim <NUM>.

According to a fourth aspect, an embodiment of this application provides a computer program product according to claim <NUM>.

This application may be applied to an electronic device. In some embodiments of this application, the electronic device may be an electronic device that includes a function such as a personal digital assistant and/or a music player, for example, a smartphone, a tablet computer, or a wearable device (such as a smartwatch) having a wireless communication function. Example embodiments of the electronic device include but are not limited to carrying Android®, Microsoft®, or another operating system.

Usually, the electronic device supports a plurality of applications, for example, one or more of a drawing application, a presentation application, a word processing application, a game application, a telephony application, a video player application, a music player application, an email application, an instant message receiving and sending application, a photo management application, a camera application, a browser application, a calendar application, a clock application, a payment application, and a health management application.

The following uses an example in which the electronic device is a smartphone for specific description.

For example, <FIG> is a possible schematic diagram of a hardware structure of a smartphone. It should be understood that a mobile phone <NUM> shown in the figure is merely an example of the electronic device, and the mobile phone <NUM> may have more or fewer components than those shown in the figure, may combine two or more components, or may have different component configurations. Various components shown in the figure may be implemented on hardware, software, or a combination of hardware and software that includes one or more signal processing and/or application-specific integrated circuits.

The mobile phone <NUM> may include one or more processors <NUM>, a memory <NUM>, a radio frequency (radio frequency, RF) circuit <NUM>, an audio circuit <NUM>, a loudspeaker <NUM>, a microphone <NUM>, a touchscreen <NUM>, one or more sensors <NUM>, and a wireless fidelity (wireless fidelity, Wi-Fi) apparatus <NUM>, a peripheral interface <NUM>, and a power supply apparatus <NUM>. These components may perform communication through one or more communications buses or signal cables (not shown in <FIG>). A person skilled in the art may understand that the hardware structure shown in <FIG> does not constitute a limitation on the mobile phone <NUM>. The mobile phone <NUM> may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.

The following describes in detail the components of the mobile phone <NUM>.

The processor <NUM> is a control center of the mobile phone <NUM>. The processor <NUM> is connected to parts of the mobile phone <NUM> by using various interfaces and cables, runs or executes an application program (application, APP) stored in the memory <NUM>, and invokes data and an instruction stored in the memory <NUM>, to perform various functions of the mobile phone <NUM> and process data. For example, the processor <NUM> may establish a correspondence between a folder and an application, collect statistics on a most common folder path, and record a latest saved file, a folder path corresponding to the file, and the like.

In some embodiments, the processor <NUM> may include one or more processing units. An application processor and a modem processor may be integrated into the processor <NUM>. The application processor mainly processes an operating system, a user interface, an application program, and the like, and the modem processor mainly processes wireless communication. It may be understood that, alternatively, the modem processor may not be integrated in the processor <NUM>. For example, the processor <NUM> may be a Kirin <NUM> chip manufactured by Huawei Technologies Co. In some other embodiments of this application, the processor <NUM> may further include a fingerprint verification chip, configured to verify a collected fingerprint.

The memory <NUM> is used to store an application program, data, and various operating systems such as an iOS® operating system developed by Apple and an Android® operating system developed by Google. The memory <NUM> mainly includes a program storage area and a data storage area. The program storage area may store an operating system and an application program required by at least one function (for example, a sound playing function and an image playing function). The data storage area may store data (for example, a phone book) created based on use of the mobile phone <NUM>. For example, the data storage area may store a photo or a video shot by the user by using the mobile phone <NUM>, or audio recorded by the user by using the mobile phone <NUM>. The data storage area may further store a file such as a picture downloaded by the user, or a document created by the user, or the like. In addition, the memory <NUM> may include a high-speed random access memory, and may further include a non-volatile memory, for example, a magnetic disk storage device, a flash storage device, or another non-volatile solid-state storage device.

The RF circuit <NUM> may be configured to send and receive a radio signal in an information sending and receiving process or in a call process. Specifically, the RF circuit <NUM> may receive downlink data from a base station and then send the downlink data to the processor <NUM> for processing. In addition, the RF circuit <NUM> may further send uplink data to the base station. Usually, the RF circuit <NUM> usually includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the RF circuit <NUM> may further communicate with another device through wireless communication. The wireless communication may use any communications standard or protocol, including but not limited to global system for mobile communications, a general packet radio service, code division multiple access, wideband code division multiple access, long term evolution, an email, a short message service, and the like.

The audio circuit <NUM>, a speaker <NUM>, and a microphone <NUM> may provide an audio interface between the user and the mobile phone <NUM>. The audio circuit <NUM> may convert received audio data into an electrical signal and transmit the electrical signal to the speaker <NUM>, and the speaker <NUM> converts the electrical signal into a sound signal for output. In addition, the microphone <NUM> converts a collected sound signal into an electrical signal, and the audio circuit <NUM> receives the electrical signal, converts the electrical signal into audio data, and then outputs the audio data to the RF circuit <NUM>, to send the audio data to, for example, a mobile phone, or outputs the audio data to the memory <NUM> for further processing.

The touchscreen <NUM> may include a touch-sensitive surface <NUM> and a display <NUM>. The touch-sensitive surface <NUM> (for example, a touch panel) may collect a touch event performed by the user of the mobile phone <NUM> on or near the touch-sensitive surface <NUM> (for example, an operation performed by the user on the touch-sensitive surface <NUM> or near the touch-sensitive surface <NUM> by using any suitable object such as a finger or a stylus), and send collected touch information to another component such as the processor <NUM>. The touch event performed by the user near the touch-sensitive surface <NUM> may be referred to as a floating touch. The floating touch may mean that the user does not need to directly touch the touchpad for selecting, moving, or dragging an object (for example, an App icon), and the user only needs to be near the electronic device to execute a desired function. In an application scenario of the floating touch, terms such as "touch" and "contact" do not imply a direct contact with the touchscreen <NUM>, but a contact near or close to the touchscreen <NUM>. The touch-sensitive surface <NUM> on which the floating touch can be performed may be implemented in a capacitive type, an infrared light sensing type, an ultrasonic wave type, or the like.

The touch-sensitive surface <NUM> may include two parts: a touch detection apparatus and a touch controller. The touch detection apparatus detects a touch orientation of the user, detects a signal generated by a touch operation, and transmits the signal to the touch controller. The touch controller receives touch information from the touch detection apparatus, converts the touch information into touchpoint coordinates, and sends the touchpoint coordinates to the processor <NUM>. The touch controller may further receive an instruction sent by the processor <NUM>, and execute the instruction. In addition, the touch-sensitive surface <NUM> may be implemented in a plurality of types such as a resistive type, a capacitive type, an infrared type, and a surface acoustic wave type.

The display (also referred to as a display screen) <NUM> may be configured to display information entered by the user or information provided for the user, and various menus of the mobile phone <NUM>. The display <NUM> may include two parts: a display controller and a display apparatus. The display controller is configured to receive a signal or data sent by the processor <NUM>, to drive to display a corresponding screen on the display apparatus. For example, in this embodiment of this application, the display apparatus may be configured by using an LCD (liquid crystal display, a liquid crystal display), an organic light-emitting diode (organic light-emitting diode, OLED), or the like. For example, the display apparatus is configured by using an active matrix organic light-emitting diode (active matrix organic light emitting diode, AMOLED).

It should be understood that the touch-sensitive surface <NUM> may cover the display <NUM>. After detecting a touch event on or near the touch-sensitive surface <NUM>, the touch-sensitive surface <NUM> transmits the touch event to the processor <NUM> to determine a type of the touch event, and then the processor <NUM> may provide corresponding visual output on the display <NUM> based on the type of the touch event. Although in <FIG>, the touch-sensitive surface <NUM> and the display <NUM> are used as two independent components to implement input and output functions of the mobile phone <NUM>, in some embodiments, the touch-sensitive surface <NUM> and the display <NUM> may be integrated to implement the input and output functions of the mobile phone <NUM>. It may be understood that the touchscreen <NUM> is formed by stacking a plurality of layers of materials. In this embodiment of this application, only the touch-sensitive surface (layer) and the display (layer) are shown, and another layer is not described in this embodiment of this application. In addition, in some other embodiments of this application, the touch-sensitive surface <NUM> may cover the display <NUM>, and a size of the touch-sensitive surface <NUM> is greater than a size of the display <NUM>, so that the display <NUM> is completely covered by the touch-sensitive surface <NUM>. Alternatively, the touch-sensitive surface <NUM> may be disposed on a front of the mobile phone <NUM> in a form of a full panel, in other words, touch of the user on the front of the mobile phone <NUM> can be sensed by the mobile phone. Therefore, full touch experience on the front of the mobile phone can be implemented. In some other embodiments, the touch-sensitive surface <NUM> is disposed on a front of the mobile phone <NUM> in a full panel form, and the display <NUM> may also be disposed on the front of the mobile phone <NUM> in a full panel form. Therefore, a bezel-less structure can be implemented on the front of the mobile phone. In some other embodiments of this application, the touchscreen <NUM> may further include a series of pressure sensor arrays, so that the mobile phone can sense pressure exerted on the touchscreen <NUM> by the touch event.

The one or more sensors <NUM> may be a light sensor, a motion sensor, another sensor, and the like. Specifically, the light sensor may include an ambient light sensor and a proximity sensor. The ambient light sensor may adjust luminance of the display <NUM> based on brightness of ambient light, and the proximity sensor may turn off a power supply of the display <NUM> when the mobile phone <NUM> moves to an ear. As a motion sensor, an accelerometer sensor may detect acceleration values in all directions (usually on three axes), may detect a value and a direction of gravity when the accelerometer sensor is stationary, and may be applied to an application to recognize a mobile phone posture (for example, screen switching between landscape and portrait modes, a related game, and magnetometer posture calibration), a function related to vibration recognition (such as a pedometer and a knock), and the like.

In some embodiments of this application, the sensor <NUM> may further include a fingerprint sensor. For example, the fingerprint sensor may be disposed on a rear side of the mobile phone <NUM> (for example, below the rear-facing camera), or the fingerprint sensor is disposed on the front side of the mobile phone <NUM> (for example, below the touchscreen <NUM>). In addition, a fingerprint recognition function may be implemented by configuring the fingerprint sensor on the touchscreen <NUM>. To be specific, the fingerprint sensor may be integrated with the touchscreen <NUM> to implement the fingerprint recognition function of the mobile phone <NUM>. In this case, the fingerprint sensor may be disposed on the touchscreen <NUM>, or may be a part of the touchscreen <NUM>, or may be disposed on the touchscreen <NUM> in another manner. In addition, the fingerprint sensor may be further implemented as a full-panel fingerprint sensor. Therefore, the touchscreen <NUM> may be considered as a panel on which a fingerprint may be collected at any position. In some embodiments, the fingerprint sensor may process a collected fingerprint (for example, verify the collected fingerprint), and send a fingerprint processing result (for example, whether the fingerprint passes verification) to the processor <NUM>, and the processor <NUM> performs corresponding processing based on the fingerprint processing result. In some other embodiments, the fingerprint sensor may further send the collected fingerprint to the processor <NUM>, so that the processor <NUM> processes the fingerprint (for example, verifies the fingerprint). The fingerprint sensor in this embodiment of this application may use any type of sensing technology, including but not limited to an optical sensing technology, a capacitive sensing technology, a piezoelectric sensing technology, an ultrasonic sensing technology, or the like. In addition, for a specific technical solution of integrating the fingerprint sensor into the touchscreen <NUM> in this embodiment of this application, refer to patent application No. <CIT>, filed with the United States Patent and Trademark Office and entitled "FINGERPRINT SENSOR IN ELECTRONIC DEVICE.

In addition, other
sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor may be configured in the mobile phone <NUM>.

The Wi-Fi apparatus <NUM> is configured to provide, for the mobile phone <NUM>, network access that complies with a Wi-Fi-related standard protocol. The mobile phone <NUM> may access a Wi-Fi access point by using the Wi-Fi apparatus <NUM>, to help the user receive and send an email, browse a web page, access streaming media, and the like. The Wi-Fi apparatus <NUM> provides wireless broadband internet access for the user. In some other embodiments, the Wi-Fi apparatus <NUM> may also be used as a Wi-Fi wireless access point, to provide Wi-Fi network access for another device.

The peripheral interface <NUM> is configured to provide various interfaces for an external input/output device (for example, a keyboard, a mouse, an external display, an external memory, or a subscriber identification module card). For example, the peripheral interface <NUM> is connected to the mouse by using a universal serial bus interface, and is connected to a SIM card provided by an operator by using a metal contact on a card slot of the subscriber identification module card. The peripheral interface <NUM> may be configured to couple the external input/output peripheral device to the processor <NUM> and the memory <NUM>.

The mobile phone <NUM> may further include the power supply apparatus <NUM> (for example, a battery and a power management chip) that supplies power to the components. The battery may be logically connected to the processor <NUM> by using the power management chip, so that functions such as charging, discharging, and power consumption management are managed by using the power supply apparatus <NUM>.

Although not shown in <FIG>, the mobile phone <NUM> may further include a Bluetooth apparatus, a positioning apparatus, a camera (for example, a front-facing camera or a rear-facing camera), a flashlight, a micro projection apparatus, a near field communication (near field communication, NFC) apparatus, or the like. The front-facing camera may be configured to capture facial feature information, and the processor <NUM> may perform facial recognition on the facial feature information, to perform subsequent processing.

The following describes the embodiments of this application in detail by using the mobile phone <NUM> as an example. To help the user search for a file on the mobile phone <NUM>, a folder corresponding to each application installed on the mobile phone <NUM> may be prompted to the user. In this way, when searching for a file stored by using an application (for example, WeChat), the user can narrow a file search scope, to help improve efficiency of searching for a file by the user.

An Android operating system is used as an example. For example, the Android operating system in this embodiment of this application is shown in <FIG>. As shown in <FIG>, the Android operating system mainly includes a kernel layer (Kernel), a framework layer (Framework), and an application layer (Applications). In some embodiments, a system runtime library (libraries) layer may further be included between the kernel layer and the framework layer. The system runtime library layer provides support for an upper layer, that is, the framework layer. When the framework layer is used, a C/C++ library included in the system runtime library layer may be invoked to implement a function to be implemented by the framework layer.

The kernel layer is a hardware abstract layer (hardware abstract layer, HAL) between hardware and software, and is an abstraction of specific implementation of a hardware device. The kernel layer may include an input/output device driver (such as a keyboard driver, a touchscreen driver, a headset driver, a speaker driver, and a microphone driver), a universal serial bus (universal serial bus, USB) driver, a device node, and the like. When the user performs an operation on the input device, the input device driver is configured to convert the operation performed by the user on the input device into an input event, and report the input event to the framework layer or the application layer.

The framework layer includes a package manager, a download manager, a file system manager, a directory manager, and the like. The package manager is configured to: after an installation package of an application is obtained, install a corresponding application based on the installation package, and record an installation progress of the application, and the like. After being invoked by an application at the application layer, the download manager is configured to download a corresponding file, record a download progress of the file, and store the file into a specified folder after the file is successfully downloaded. After being invoked by an application at the application layer, the package manager at the framework layer, the download manager, or the like, the file system manager is configured to create a folder in the memory <NUM> (for example, sdcard) of the mobile phone <NUM>. It should be noted that the directory manager is a newly added module in this embodiment of this application, and may be configured to record a correspondence among a folder name, an application name, and a folder path. For example, if the file system manager creates a folder named "Weixin" in a local folder sdcard of WeChat, the file system manager stores a correspondence among a folder name "Weixin", an application name "WeChat", and a path "sdcard/Weixin" of the folder Weixin in the directory manager. For example, a correspondence among "Weixin", "WeChat", and "sdcard/Weixin" may be shown in Table <NUM>.

The application layer includes a native application (native application) (for example, settings, a home screen, and file management) and a third-party application (for example, WeChat) that are installed on the mobile phone <NUM>. The application at the application layer is configured to: receive the input event reported by the input device, perform corresponding processing on the input event, and output the input event by using the output device (for example, a display screen), so that the user can view the input event.

To enable the mobile phone <NUM> to notify the user of a correspondence between an application and a folder, a related user interface may be displayed on the touchscreen <NUM> of the mobile phone <NUM> to notify the user of the correspondence between an application and a folder. An example in which a first user interface is used to prompt a folder corresponding to WeChat is used. If the mobile phone <NUM> detects a first operation on the touchscreen <NUM>, in response to the first operation, the mobile phone <NUM> may display the first user interface on the touchscreen <NUM>. The first user interface includes a folder control, and the folder control is used to indicate the folder corresponding to WeChat. If the mobile phone <NUM> detects an operation on the folder control, in response to the operation, the mobile phone <NUM> may display, on the touchscreen <NUM>, a content details screen of the folder corresponding to WeChat. For example, the first user interface in this embodiment of this application may be a setting screen corresponding to WeChat.

In an example, as shown in <FIG>, the directory manager is added to the framework layer. The directory manager may be configured to store a correspondence among a folder name, an application name, and a folder path. When content stored in the directory manager changes, the change is reported to settings at the application layer, and the settings generates or refreshes the first user interface based on information reported by the directory manager.

For example, as shown in <FIG>, in a WeChat installation process, the file system manager at the framework layer creates a root folder Weixin, a subfolder Picture, a subfolder Game, a subfolder Video, and a subfolder Document in a folder sdcard. The subfolder Picture is used to store a picture transmitted by the user in a process of chatting by using WeChat. The subfolder Game is used to store data generated when the user use a WeChat game. The subfolder Video is used to store a video transmitted by the user in a process of chatting. The subfolder Document is used to store a program file related to WeChat running. The file system manager at the framework layer may store a correspondence between a name "Weixin" of the root folder, a name "Weixin" of the application, and the path "sdcard/Weixin" of the root folder in the directory manager at the framework layer.

After storing the correspondence among "Weixin", "WeChat", and "sdcard/Weixin", the directory manager may report the correspondence among "Weixin", "WeChat", and "sdcard/Weixin" to the settings (Settings) at the application layer. Then, the settings may generate a first user interface for WeChat based on the correspondence among "Weixin", "WeChat", and "sdcard/Weixin". The first user interface is a user interface that is configured to manage WeChat and that is in the settings, the first user interface includes a control of the root folder Weixin, and the control of the root folder Weixin is used to indicate the root folder. If the mobile phone <NUM> detects an operation (for example, an operation such as tapping, touching and holding, or heavy pressing) on the control of the root folder Weixin, in response to the operation, the mobile phone <NUM> displays a content details screen of the root folder Weixin on the touchscreen <NUM>. For example, the content details screen includes a subfolder or a specific file (for example, a picture or a video). In specific implementation, the content details screen may be a user interface for file management.

For example, the first user interface may be a user interface <NUM> shown in <FIG>, and the content details screen may be a user interface <NUM> shown in <FIG>. The user interface <NUM> includes a folder control <NUM>. The folder control <NUM> is used to indicate a root folder Weixin. As shown in <FIG>, the folder control <NUM> is an icon of the root folder Weixin. Because the folder control may be implemented by using a folder icon, the first user interface may be simpler, and the user can conveniently view the folder control. In addition, in some other embodiments, the folder control <NUM> may be a path link of the root folder Weixin, or may be a virtual button, or the like. This is not limited herein.

In some embodiments, the user interface <NUM> further includes a control <NUM> configured to return to an upper-level setting menu. The user interface <NUM> includes a control <NUM> indicating a subfolder Picture, a control <NUM> indicating a subfolder Game, a control <NUM> indicating a subfolder Video, and a control <NUM> indicating a subfolder Document. The control <NUM> is configured to receive input of the user, and display, on the touchscreen <NUM>, a user interface including content of the subfolder Picture. The control <NUM> is configured to receive input of the user, and display, on the touchscreen <NUM>, a user interface including content of the subfolder Game. The control <NUM> is configured to receive input of the user, and display, on the touchscreen <NUM>, a user interface including content of the subfolder Video. The control <NUM> is configured to receive input of the user, and display, on the touchscreen <NUM>, a user interface including content of the subfolder Document. The control <NUM> is used as an example. If the mobile phone <NUM> detects an operation of touching the control <NUM> by the user, in response to the operation, the mobile phone <NUM> may display the user interface <NUM> on the touchscreen <NUM>. Because the user may perform an operation on the folder control <NUM>, the touchscreen <NUM> can display the user interface <NUM>, and all controls displayed in the user interface <NUM> are used to indicate subfolders corresponding to WeChat, the user can determine folders correspond to WeChat. This helps improve, to some extent, efficiency of searching for a file stored in a process of using WeChat by the user.

In addition, in some embodiments, as shown in <FIG>, the user interface <NUM> may further include some function controls, for example, new folder, search, refresh, sort, and more. These function controls help the user easily find and operate a folder.

In some other embodiments of this application, the first user interface for WeChat may alternatively be a user interface <NUM> shown in <FIG>. The user interface <NUM> includes path information "sdcard/Weixin" of the root folder Weixin and a control <NUM>. The control <NUM> is configured to receive input of the user, and display a content details screen of the root folder Weixin on the touchscreen <NUM>. For example, the content details screen may be the user interface <NUM> in <FIG>. An example in which the content details screen is the user interface <NUM> shown in <FIG> is used. If the mobile phone <NUM> detects an operation of touching the control <NUM> by the user, in response to the operation, the mobile phone <NUM> may display the user interface <NUM> on the touchscreen <NUM>. In some other embodiments, the first user interface further includes a control <NUM>. The control <NUM> is configured to return to an upper-level setting menu.

In some other embodiments, the file system manager at the framework layer may store, to the directory manager, names of subfolders included in the root folder WeiXin, an application name "WeChat", and paths corresponding to the subfolders. The directory manager reports the names of the subfolders, the name of the application, and the paths corresponding to the subfolders to the settings of the application layer. The settings generates the first user interface based on the names of subfolders, the name of the application, and the paths corresponding to the subfolders. The first user interface includes a control corresponding to each subfolder. In this scenario, a file structure of the root folder Weixin shown in <FIG> is used as an example. For example, the first user interface may be a user interface <NUM> shown in <FIG>. The user interface <NUM> includes a control <NUM> indicating a subfolder Picture, a control <NUM> indicating a subfolder Game, a control <NUM> indicating a subfolder Video, and a control <NUM> indicating a subfolder Document. The control <NUM> is configured to receive input of the user, and display, on the touchscreen <NUM>, content included in the subfolder Picture. The control <NUM> is configured to receive input of the user, and display, on the touchscreen <NUM>, content included in the subfolder Game. The control <NUM> is configured to receive input of the user, and display, on the touchscreen <NUM>, content included in the subfolder Video. The control <NUM> is configured to receive input of the user, and display, on the touchscreen <NUM>, content included in the subfolder Document. For example, if the mobile phone <NUM> detects an operation of touching the control <NUM> by the user, in response to the operation, the mobile phone <NUM> displays the user interface <NUM> on the touchscreen <NUM>. The user interface <NUM> is configured to display content included in the subfolder Picture. In some other embodiments, the user interface <NUM> further includes a control <NUM>. The control <NUM> is used to return to display an upper-level setting menu. Because the first user interface directly includes a subfolder control, a folder corresponding to WeChat can be more intuitively prompted to the user, to improve user experience.

During specific implementation, controls in the user interface <NUM> may be sorted based on a time sequence of latest storage of a file in each subfolder, or may be sorted based on a sequence of initial letters of names of subfolders, or may be sorted based on a sequence of creating subfolders in a WeChat installation process, or may be sorted in descending order of frequencies of storing files in the subfolders, and the like. This is not limited herein. For example, the controls are sorted based on a time sequence of latest storage of the files, if the last time when a picture is saved in the subfolder Picture is May <NUM>, <NUM>, no file is saved in the subfolder Game, the last time when a file is saved in the subfolder Video is May <NUM>, <NUM>, and the last time when a file is saved in the subfolder Document is June <NUM>, <NUM>, in this case, the mobile phone <NUM> displays, from top to bottom, the controls of the subfolders on the touchscreen <NUM> in the following order: the subfolder Document, the subfolder Video, the subfolder Picture, and the subfolder Game. In some embodiments, because the subfolder Game does not include a file, the user interface <NUM> shown in <FIG> may further not include (in other words, not display) the control <NUM>. If the controls in the user interface <NUM> may be arranged based on the time sequence of latest storage of a file in each subfolder, this helps the user understand time at which the subfolders store files most recently, and helps improve convenience of searching for a file or a folder to some extent.

In some other embodiments of this application, because the subfolder Document is used to store a program file related to running WeChat, but is not used to store a user file, the file system manager may not store the subfolder Document in the directory manager. In this scenario, the user interface <NUM> shown in <FIG> may further not include the control <NUM>. In the foregoing manner, a range in which the user searches for a file is narrowed, to further improve efficiency of searching for a file or a folder by the user.

In some other examples, the first user interface may further be a user interface <NUM> shown in <FIG>. For example, the user interface <NUM> includes a path and a control <NUM> of a subfolder Picture, a path and a control <NUM> of a subfolder Game, a path and a control <NUM> of a subfolder Video, and a path and a control <NUM> of a subfolder Document. The control <NUM> is configured to receive input of the user, and display, on the touchscreen <NUM>, content included in the subfolder Picture. The control <NUM> is configured to receive input of the user, and display, on the touchscreen <NUM>, content included in the subfolder Game. The control <NUM> is configured to receive input of the user, and display, on the touchscreen <NUM>, content included in the subfolder Video. The control <NUM> is configured to receive input of the user, and display, on the touchscreen <NUM>, content included in the subfolder Document. For example, if the mobile phone <NUM> detects an operation of touching the control <NUM> by the user, in response to the operation, the mobile phone <NUM> displays the user interface <NUM> on the touchscreen <NUM>. The user interface <NUM> is configured to display content included in the subfolder Picture. In some other embodiments, the user interface <NUM> further includes a control <NUM>. The control <NUM> is configured to return to display an upper-level setting menu. The user interface <NUM> shown in <FIG> further includes a path of a subfolder in addition to a control, so that the user can more intuitively learn path information of the subfolder.

In some other embodiments of this application, the file system manager at the framework layer may further collect statistics on a frequency of storing a file in a subfolder at an interval of preset duration, and when storing a name of each subfolder, the name "WeChat" of the application, and a path corresponding to each subfolder to the directory manager, mark a name of a subfolder that is most frequently stored. For example, the subfolder Picture has the highest storage frequency, and a name of the subfolder Picture is marked as Picture-frequency No.<NUM>. In this scenario, the settings at the application layer generates the first user interface based on information reported by the directory manager. For example, the first user interface may be a user interface <NUM> shown in <FIG>. A difference between the user interface <NUM> shown in <FIG> and the user interface <NUM> is that a control <NUM> of a common folder is added. Compared with the user interface <NUM>, the user interface <NUM> more directly displays the common folder to the user. It may be understood that the user may display, on the touchscreen <NUM>, content of a corresponding part of the user interface <NUM> by sliding up and down.

To ensure accuracy of the control of the common folder in the user interface <NUM>, the file system manager saves a statistical result to the directory manager at an interval of preset duration. The directory manager compares whether the currently saved statistical result is the same as a previously saved statistical result, and if yes, deletes one statistical result, or if the currently saved statistical result is changed, saves the currently saved statistical result, and deletes the previously saved statistical result. Then, the directory manager reports the current statistical result to the settings, and the settings changes, based on the reported statistical result, the control of the common folder in the user interface <NUM> to a control of a folder in the statistical result. It should be noted that the preset duration may be correspondingly set based on an actual situation, for example, <NUM> hours or <NUM> minutes. This is not limited herein.

In addition, WeChat is used as an example. If the first user interface for WeChat includes controls of all subfolders, in a subsequent process in which the mobile phone <NUM> runs WeChat, a new subfolder may be created. To ensure reliability of the controls included in the first user interface for WeChat, when the file system manager creates a subfolder for WeChat, for example, the file system manager creates a subfolder Audio in a root folder Weixin, the file system manager stores a name "Audio" of the subfolder, a name "WeChat" of the application, and path information sdcard/Weixin/Audio of the subfolder Audio to the directory manager. The subfolder audio is used to cache an audio file. After detecting that "Audio", "WeChat", and "sdcard/Weixin/Audio" are stored, the directory manager reports "Audio", "WeChat", and "sdcard/Weixin/Audio" to the settings at the application layer. The settings refreshes the first user interface for WeChat based on "Audio", "WeChat", and "sdcard/Weixin/Audio". For example, if the first user interface before refreshing is the user interface <NUM> shown in <FIG>, the refreshed user interface can be a user interface <NUM> shown in <FIG>. Different from the user interface <NUM>, the user interface <NUM> includes a control <NUM>, and the control <NUM> is configured to link to a user interface that displays content included in a subfolder Audio.

To help the user search for a latest file saved in a process of using an application, in some embodiments, after successfully executing a download task, the download manager or the file system manager saves a name of a downloaded file, a name of the application, and a path of the file to the directory manager. After detecting that the information is stored, the directory manager reports the information to the settings at the application layer. In this scenario, the first user interface generated by the settings for the application further includes a file control, and the file control is used to indicate a latest saved file. For example, the first user interface may be a user interface <NUM> shown in <FIG>. A difference between the user interface <NUM> and the user interface <NUM> shown in <FIG> is that the user interface <NUM> further includes a file control <NUM>, and the file control <NUM> is used to indicate a latest saved file. For example, a latest saved file is a picture that is in the user interface <NUM> and that includes a name "scenery" is used. If the mobile phone <NUM> detects an operation of touching the file control <NUM> by the user, in response to the operation of touching the file control <NUM> by the user, the mobile phone <NUM> displays the user interface <NUM> on the touchscreen <NUM>. It may be understood that the file control <NUM> may be a zoomed-out picture of the picture whose name is "scenery", or may be another identifier (such as the name of the picture, "scenery"). This is not limited herein.

When the file system manager or the download manager saves a new file, a name of the newly saved file, a name of an application, and a path of the file are saved to the directory manager. After detecting that the information is stored, the directory manager reports the information to the settings at the application layer. Then, the settings refreshes, based on the information, a control of the latest saved file included in the first user interface.

It should be noted that the first user interface in this embodiment of this application may further be a user interface <NUM> shown in <FIG>. The user interface <NUM> includes controls of all subfolders included in a root folder Weixin, a control of a common folder, and a control of a latest saved file.

In some other embodiments of this application, to simplify an operation performed by the user on the mobile phone <NUM>, so that the first user interface is displayed on the touchscreen <NUM>, a control may be added to a system setting screen for WeChat. When the mobile phone <NUM> detects an operation on the control, in response to the operation, the mobile phone <NUM> displays the first user interface on the touchscreen <NUM>. It should be noted that a name of the control is not limited in this embodiment of this application. For example, the name of the control may be application folder management, or may be folder management. The following uses the application folder management as an example.

For example, the system setting screen for WeChat is a user interface <NUM> shown in <FIG>, and application file management <NUM> is added to the user interface <NUM>. When the mobile phone <NUM> detects an operation on the application folder management <NUM>, in response to the operation, the mobile phone <NUM> displays the first user interface on the touchscreen <NUM>. The operation on the application folder management <NUM> may be a touch operation, a touch and hold operation, a heavy press operation, or the like on the application folder management <NUM>. This is not limited herein. An example in which the first user interface is the user interface <NUM> shown in <FIG> is used. When the mobile phone <NUM> detects an operation on the application folder management <NUM>, in response to the operation, the mobile phone <NUM> displays the user interface <NUM> on the touchscreen <NUM>. In response to an operation of touching, by the user, a setting icon included in a home screen, the mobile phone <NUM> displays the system setting screen on the touchscreen <NUM>. For example, in response to the operation on the setting icon, the system setting screen displayed on the touchscreen <NUM> by the mobile phone <NUM> may be a user interface <NUM> shown in <FIG>. The user interface <NUM> includes WeChat <NUM>. In addition, the user interface <NUM> may further include controls such as a search box, enabling cloud backup, screen locking, wireless and network, and file management. Using a system setting screen shown in <FIG> as an example, in response to a touch operation of the user on WeChat <NUM> included in the system setting screen, the mobile phone <NUM> may display the user interface <NUM> on the touchscreen <NUM>.

For example, the home screen may be shown in <FIG>. Specifically, the home screen <NUM> includes a WeChat icon <NUM>, a setting icon <NUM>, a camera icon <NUM>, a file management icon <NUM>, a status bar <NUM>, and a DOCK bar <NUM>. The status bar <NUM> includes a telecom operator identifier (China Mobile), a network standard (<NUM>), time, a Bluetooth icon, remaining power, and the like. In some other embodiments, the status bar <NUM> may further include a Wi-Fi icon, an external device icon, and the like. The dock bar <NUM> includes a phone icon, an SMS message icon, an email icon, and a weather icon. It should be understood that the user may modify, based on a requirement of the user, application icons included in the DOCK bar.

In addition, for ease of user operation, a control may be further added to a shortcut menu (for example, a POP box) of each application by using a home screen launcher. If the mobile phone <NUM> detects an operation on the control, in response to the operation, the mobile phone <NUM> displays the first user interface on the touchscreen <NUM>.

The home screen <NUM> shown in <FIG> is used as an example. As shown in <FIG>, in response to an operation on the WeChat icon, the mobile phone <NUM> may display a WeChat shortcut menu <NUM> on the touchscreen <NUM>. The shortcut menu <NUM> includes application folder management <NUM>, my QR code <NUM>, scan <NUM>, collection and payment <NUM>, and share "WeChat" <NUM>. In the present invention, the operation on the WeChat icor is an operation of touching and holding the WeChat icon.

This is not limited herein. An example in which the first user interface is the user interface <NUM> shown in <FIG> is used. In response to an operation on the application folder management <NUM>, the mobile phone <NUM> may display the user interface <NUM> on the touchscreen <NUM>.

In some other embodiments, in response to an operation of saving a file (for example, a picture, a video, a document, or audio) by the user, the mobile phone <NUM> may further display a dialog box on the touchscreen <NUM>. The dialog box is used to prompt the user that the file is saved successfully and whether to view the saved file. For example, a user interface <NUM> shown in <FIG> is a user interface for chatting with a user Jolin in WeChat. After detecting that the user successfully saves a picture <NUM>, the mobile phone <NUM> displays a dialog box <NUM>. The dialog box <NUM> includes an option "Yes" <NUM> and an option "No" <NUM>, and the dialog box <NUM> is used to prompt the user that the picture <NUM> is successfully saved and whether to view the saved picture <NUM>. If the mobile phone <NUM> detects a touch operation on the option "yes" <NUM>, in response to the operation, the mobile phone <NUM> displays the first user interface on the touchscreen <NUM>. For example, a file structure corresponding to WeChat is the file structure shown in <FIG>. For example, the first user interface is a user interface <NUM> shown in <FIG>. In response to the touch operation on the option "yes" <NUM>, the mobile phone <NUM> displays the user interface <NUM> on the touchscreen <NUM>. The user interface <NUM> includes a subfolder Picture control, a subfolder Game control, a subfolder Video control, a subfolder Document control, and a file control <NUM>. Because the file <NUM> saved by the user is a latest saved file, the file control <NUM> is used to indicate the file <NUM> saved by the user. If the subfolder Picture control, the subfolder Game control, the subfolder Video control, and the subfolder Document control are arranged based on a time sequence of latest storage of a file in each subfolder, a position of the subfolder Picture control in the user interface <NUM> is before that of another subfolder control. If the mobile phone <NUM> detects a touch operation on the option "no" <NUM>, in response to the operation, the mobile phone <NUM> closes the dialog box. The foregoing technical solution helps the user view a latest saved file.

The foregoing embodiments of this application may be applied to applications installed in the mobile phone <NUM>, and are not limited to WeChat. The foregoing uses WeChat as an example for description. According to the foregoing embodiments, the user searches for a related file in a folder corresponding to an application, and a range in which the user searches for a file is greatly narrowed, to help improve efficiency of searching for a file by the user.

In addition, functions of the directory manager in the foregoing embodiments of this application may be further integrated into the file system manager, and the file system manager reports corresponding information to the settings at the application layer, so that the settings generates and refreshes the first user interface.

It should be noted that WeChat is used as an example. In some other embodiments of this application, a control <NUM> may be further added to a setting screen of WeChat. If the mobile phone <NUM> detects a touch operation on the control <NUM>, in response to the touch operation, the mobile phone <NUM> displays the first user interface on the touchscreen <NUM>. For example, the first user interface is the user interface <NUM> shown in <FIG>. In this case, in response to the touch operation on the control <NUM>, the mobile phone <NUM> displays the user interface <NUM> on the touchscreen <NUM>.

It should be understood that the first user interface may be a user interface for managing WeChat in a native application (for example, the settings) installed on the mobile phone <NUM>, or may be a setting screen for managing WeChat in WeChat. This is not limited in this application.

It should be noted that, in this embodiment of this application, a shortcut gesture operation (for example, three fingers swipe up or draw a circle) may be further set, to display the first user interface on the touchscreen <NUM>.

In addition, WeChat is used as an example. As shown in <FIG>, if the mobile phone <NUM> in this embodiment of this application detects a touch and hold or heavy press operation on an icon of a first application program, in response to the operation, the mobile phone <NUM> displays a shortcut menu <NUM> on the touchscreen <NUM>, and the shortcut menu <NUM> includes application folder management <NUM>. In some other embodiments, the shortcut menu <NUM> may further include controls such as my QR code, scan, collection and payment, and share "WeChat". The user may also correspondingly modify the controls included in the shortcut menu <NUM> based on a requirement of the user. When the mobile phone <NUM> detects a touch operation on the application folder management <NUM>, in response to the touch operation, the mobile phone <NUM> displays the user interface <NUM> on the touchscreen <NUM>. The user interface <NUM> is a user interface of content details of a root folder corresponding to WeChat. In specific implementation, the user interface <NUM> may be a user interface in native application file management. For example, the root folder corresponding to WeChat includes a subfolder Picture, a subfolder Game, a subfolder Video, and a subfolder Document. The user interface <NUM> includes a control <NUM> used to indicate the subfolder Picture, a control <NUM> used to indicate the subfolder Game, a control <NUM> used to indicate the subfolder Video, and a control <NUM> used to indicate the subfolder Document.

WeChat is used as an example. In another embodiment, for WeChat, the mobile phone <NUM> creates a root folder Weixin in a folder sdcard, and the root folder Weixin includes a subfolder Download and a subfolder File. Specifically, the subfolder Download is used to store a picture, audio, a video, and a document downloaded by the user during the use of WeChat. The subfolder File is used to store a program file related to WeChat running. The mobile phone <NUM> may reclassify files based on types of the files included in the subfolder Download and the subfolder File, to generate the first user interface. The first user interface may be a user interface <NUM> shown in <FIG>, and includes a control <NUM>, a control <NUM>, a control <NUM>, and a control <NUM>. In response to a touch operation on the control <NUM>, the mobile phone <NUM> may display, on the touchscreen <NUM>, a user interface of a picture corresponding to WeChat. In response to a touch operation on the control <NUM>, the mobile phone <NUM> may display, on the touchscreen <NUM>, a user interface of audio corresponding to WeChat. In response to a touch operation on the control <NUM>, the mobile phone <NUM> may display, on the touchscreen <NUM>, a user interface of a video corresponding to WeChat. In response to a touch operation on the control <NUM>, the mobile phone <NUM> may display, on the touchscreen <NUM>, a user interface of a file corresponding to WeChat. In addition, the user interface <NUM> may further include a control <NUM>, and the control <NUM> is configured to return to an upper-level setting menu. The files are reclassified based on types of the files, to facilitate the user to search for a file, and improve efficiency of searching for a file by the user.

The foregoing embodiments in this application may be used in combination, or may be used as an independent embodiment. In addition, the foregoing embodiments are described only by using WeChat as an example. The embodiments of this application may also be applied to another application.

An embodiment of this application further provides a method for copying a file stored in the mobile phone <NUM> to another device (for example, a personal computer). The following uses a scenario shown in <FIG> as an example for detailed description.

As shown in <FIG>, after a mobile phone <NUM> is connected to a computer <NUM>, a file stored in the mobile phone <NUM> is copied to the computer <NUM>. The mobile phone <NUM> and the computer <NUM> may be connected in a wired manner, for example, connected by using a USB data cable. The mobile phone <NUM> and the computer <NUM> may also be connected in a wireless manner, for example, through Wi-Fi or Bluetooth. A direct connection manner between the mobile phone <NUM> and the computer <NUM> is not limited in this embodiment of this application.

To facilitate copying the file stored in the mobile phone <NUM> to the computer <NUM>, in this embodiment of this application, after the mobile phone <NUM> is connected to the computer <NUM>, the mobile phone <NUM> may display a file structure of the computer <NUM> by using a touchscreen <NUM>.

An example in which the mobile phone <NUM> is an Android operating system and the computer <NUM> is a Windows operating system is used. For example, as shown in <FIG>, the mobile phone <NUM> includes an Android operating system <NUM> and a storage device. For a related description of the Android operating system <NUM>, refer to the related description of the Android operating system shown in <FIG> in the embodiments of this application. It should be noted that the Android operating system <NUM> shown in <FIG> may not include a directory manager. The storage device may be a memory <NUM> on the mobile phone <NUM>. To simplify an implementation, in some embodiments, a communications node <NUM> is preset in the storage device <NUM>. The communications node <NUM> is configured to store related information of an external device connected to the mobile phone <NUM> by using a USB (for example, the external device is the computer <NUM>, and the communications node <NUM> may be configured to store data converted based on a file structure of the computer <NUM>).

A Windows operating system <NUM> includes a mobile phone assistant application, a system layer, and a USB driver. The mobile phone assistant application is used to process information about a mobile phone connected to the computer <NUM>. For example, the mobile phone assistant application converts the file structure of the computer <NUM> into data in a preset format (such as a string). It should be understood that the mobile phone assistant application may be a system application or a preset application (for example, an application installed on the computer <NUM> by the user based on a requirement of the user). The system layer is configured to provide support for the mobile phone assistant application, to implement functions that can be implemented by the mobile phone assistant application. The USB driver is configured to identify the external device connected to the computer <NUM> by using the USB, for example, the mobile phone <NUM>.

In this embodiment of this application, after the mobile phone <NUM> is connected to the computer <NUM> by using the USB, the mobile phone <NUM> is in a USB slave mode, and the computer <NUM> is in a USB sever mode. According to an existing USB protocol, the computer <NUM> may read a file structure of the mobile phone <NUM>, and display the file structure of the mobile phone <NUM> on the computer <NUM>. To enable the mobile phone <NUM> to obtain the file structure of the computer <NUM> when the mobile phone <NUM> is connected to the computer <NUM> by using the USB, an embodiment of this application provides a data writing and data reading method.

Specifically, as shown in <FIG>, the data writing method in this embodiment of this application includes the following steps.

Step <NUM>: A USB driver <NUM> of a computer <NUM> detects that a device connected to the computer <NUM> by using a USB is a smartphone (for example, a mobile phone <NUM>).

Step <NUM>: The USB driver <NUM> of the computer <NUM> reports first information to a system layer <NUM>, where the first information is used to indicate the computer <NUM> to connect to the mobile phone <NUM> by using the USB.

Step <NUM>: The system layer <NUM> of the computer <NUM> starts a mobile phone assistant application <NUM> based on the first information.

Step <NUM>: The mobile phone assistant application <NUM> of the computer <NUM> obtains a file structure of the computer <NUM>, and converts the file structure of the computer <NUM> into data in a preset format (such as a string). It should be noted that the preset format may be correspondingly set based on a requirement of an actual situation. This is not limited herein.

Step <NUM>: The mobile phone assistant application <NUM> of the computer <NUM> sends the data in the preset format to the USB driver <NUM>. For example, the mobile phone assistant application <NUM> may send the data in the preset format to the USB driver <NUM> by using the system layer <NUM>, or may directly send the data to the USB driver <NUM>. This is not limited herein.

Step <NUM>: The USB driver <NUM> of the computer <NUM> writes the data that is converted in the step <NUM> and that is in the preset format into a communications node <NUM> of the mobile phone <NUM>.

Specifically, after the computer <NUM> writes the converted data in the preset format into the communications node <NUM>, the mobile phone <NUM> may perform the data reading method in this embodiment of this application, as shown in <FIG>.

Step <NUM>: After detecting that an external device connected by using a USB is a computer <NUM>, a USB driver <NUM> of a mobile phone <NUM> reports an event that the external device connected by using the USB is the computer <NUM> to a file system <NUM>. In some embodiments, a personal computer (personal computer, PC) mapping service may be further added to the file system <NUM>. The USB driver <NUM> reports, to the PC mapping service, the event that the external device connected by using the USB is the computer <NUM>.

Step <NUM>: The file system <NUM> obtains, in response to the event that the external device connected by using the USB is the computer <NUM>, data stored on a communications node <NUM>.

It should be noted that if the communications node <NUM> does not store data, the file system <NUM> continues to obtain, after waiting for preset duration, the data stored on the communications node <NUM>. The preset duration may be correspondingly set based on a requirement. For example, the preset duration may be <NUM>, <NUM>, or the like. This is not limited herein.

Step <NUM>: After obtaining the data stored on the communications node <NUM>, the file system <NUM> reports the data to file management <NUM>. In addition, to simplify an implementation, after obtaining the data stored on the communications node <NUM>, the file system <NUM> deletes the data stored on the communications node <NUM>.

Step <NUM>: The file management <NUM> performs format conversion on the data stored on the communications node <NUM>, and generates, based on the data obtained after the format conversion, a user interface including a file structure of the computer <NUM>.

For example, the file structure of the computer <NUM> is shown in <FIG>. The computer <NUM> includes a drive C and a drive D, the drive C includes a folder program, and the drive D includes a folder file <NUM>, a folder file <NUM>, and a file table. The user interface including the file structure of the computer <NUM> shown in <FIG> may be a user interface <NUM> shown in <FIG>. The user interface <NUM> includes a control <NUM> and a control <NUM>, and the control <NUM> indicates the folder program. For example, the mobile phone <NUM> displays the user interface <NUM> on the touchscreen <NUM>. If detecting a touch operation on the control <NUM>, in response to the touch operation, the mobile phone <NUM> displays a user interface <NUM> on the touchscreen <NUM>. The user interface <NUM> includes a control <NUM>. The control <NUM> indicates a content details screen included in the folder program.

The following uses a scenario shown in <FIG> and <FIG> as an example to describe a process of copying a file from a mobile phone <NUM> to a computer <NUM> in this embodiment of this application. Specifically, the following steps are included.

Step <NUM>: In response to a first operation of a user, the mobile phone <NUM> displays a user interface <NUM> on a touchscreen <NUM>, where the user interface <NUM> includes a picture <NUM> named "scenery photo".

Step <NUM>: In response to a copy operation performed by the user on the picture <NUM>, the mobile phone <NUM> obtains path information "sdcard/Download" of the picture <NUM>.

Step <NUM>: In response to the second operation of the user, the mobile phone <NUM> displays a user interface <NUM> on the touchscreen <NUM>. The user interface <NUM> is configured to display content included in the drive D.

Step <NUM>: In response to a pasting operation performed by the user in the user interface <NUM>, the mobile phone <NUM> converts the path information of the picture <NUM> into data in a preset format and stores the data on the communications node <NUM>.

In some embodiments, specifically, the step <NUM> may be implemented in the following manner.

An input device of the mobile phone <NUM> receives the pasting operation performed by the user in the user interface <NUM>, converts the operation into an input event, and reports the input event to the file management <NUM> at the application layer. After receiving the input event, the file management <NUM> obtains the path information "sdcard/Download" of the picture <NUM>, converts the path information "sdcard/Download" into data in the preset format, and stores the data on the communications node <NUM>.

Step <NUM>: When detecting that the data stored in the mobile phone <NUM> is stored on the communications node <NUM>, the computer <NUM> obtains the data on the communications node <NUM>.

Step <NUM>: The computer <NUM> parses the obtained data on the communications node <NUM>, to obtain the path information of the picture <NUM>, obtains the picture <NUM> from the mobile phone <NUM> based on the path information of the picture <NUM>, and stores the picture <NUM> in the drive D.

In some embodiments, specifically, the step <NUM> and the step <NUM> may be implemented in the following manner.

When detecting that the data stored in the mobile phone <NUM> is stored on the communications node <NUM>, a USB driver <NUM> of the computer <NUM> reads the data on the communications node <NUM>, and reports the read data to a mobile phone assistant application <NUM>. The mobile phone assistant application <NUM> parses the obtained data on the communications node <NUM>, to obtain the path information of the picture <NUM>. Then, the mobile phone assistant application <NUM> obtains the picture <NUM> from the mobile phone <NUM> based on the path information of the picture <NUM>, and then saves the picture <NUM> to the drive D.

It should be noted that, after obtaining the path information of the picture <NUM>, the computer <NUM> may indicate the mobile phone <NUM> to delete the data stored on the communications node <NUM>.

In addition, alternatively, when the mobile phone <NUM> is connected to the computer <NUM> by using the USB, data is copied from the computer <NUM> to the mobile phone <NUM>.

The following uses the scenario shown in <FIG> and <FIG> as an example for description. The user needs to copy a file <NUM> named "table" to a folder Download of the mobile phone <NUM>.

Specifically, the following steps are included.

Step <NUM>: In response to a third operation of the user, the mobile phone <NUM> displays a user interface <NUM> on a touchscreen <NUM>, where the user interface <NUM> includes the file <NUM> named "table".

Step <NUM>: In response to a copying operation performed by the user on the file <NUM>, the mobile phone <NUM> obtains path information "computer/drive D" of the file <NUM>.

Step <NUM>: In response to a fourth operation of the user, the mobile phone <NUM> displays a user interface <NUM> on the touchscreen <NUM>.

Step <NUM>: In response to a pasting operation performed by the user in the user interface <NUM>, the mobile phone <NUM> converts the path information of the file <NUM> into data in a preset format and stores the data on the communications node <NUM>.

An input device of the mobile phone <NUM> receives the pasting operation performed by the user in the user interface <NUM>, converts the operation into an input event, and reports the input event to the file management <NUM> at the application layer. After receiving the input event, the file management <NUM> obtains the path information "computer/drive D" of the picture <NUM>, converts the path information "computer/drive D" into data in the preset format, and stores the data on the communications node <NUM>.

Step <NUM>: The computer <NUM> parses the obtained data on the communications node <NUM>, to obtain the path information of the file <NUM>, and sends the file <NUM> to the folder Download of the mobile phone <NUM> based on the path information of the file <NUM>.

When detecting that the data stored in the mobile phone <NUM> is stored on the communications node <NUM>, a USB driver <NUM> of the computer <NUM> reads the data on the communications node <NUM>, and reports the read data to a mobile phone assistant application <NUM>. The mobile phone assistant application <NUM> parses the obtained data on the communications node <NUM>, to obtain the path information of the file <NUM>. Then, the mobile phone assistant application <NUM> sends the file <NUM> to the folder Download of the mobile phone <NUM> based on the path information of the file <NUM>.

In addition, for a process of copying data between the mobile phone <NUM> and the computer <NUM> by the user performing a cutting and pasting operation on the mobile phone <NUM>, refer to a process of copying data between the mobile phone <NUM> and the computer <NUM> by performing a copying and pasting operation.

The foregoing description is merely based on a manner in which the mobile phone <NUM> is connected to the computer <NUM> by using the USB. When the mobile phone <NUM> is connected to the computer <NUM> by using Bluetooth, Wi-Fi, or another manner, the file structure on the computer <NUM> may also be displayed on the mobile phone <NUM>. An implementation is similar to that of displaying the file structure on the computer <NUM> by the mobile phone <NUM> when the mobile phone <NUM> is connected to the computer <NUM> by using the USB.

It should be understood that the foregoing embodiments of this application may be used in combination.

With reference to the foregoing embodiments and the accompanying drawings, an embodiment of this application provides a method for browsing an application folder. The method may be implemented in an electronic device having a hardware structure shown in <FIG>. The electronic device has a touchscreen.

Specifically, as shown in <FIG>, an embodiment of this application provides a method for browsing an application folder, including the following steps.

Step <NUM>: An electronic device detects a first operation on a touchscreen.

For example, the first operation may be a touch operation on a first control, and the first control may be located in a user interface that is in settings and that is used to manage a first application program, or may be located in a setting screen of the first application program. In addition, in some embodiments, the first control may be further located on a shortcut menu of the first application program. In response to a touch and hold or heavy press operation on an icon of the first application program, the electronic device may display the shortcut menu on the touchscreen. During specific implementation, the first control may be referred to as application folder management, folder management, or the like. This is not limited herein. For example, the first application program is WeChat. The application folder management may be located in the user interface <NUM> shown in <FIG>, or may be located on the shortcut menu <NUM> shown in <FIG>, or may be located in the user interface <NUM> shown in <FIG>. This is not limited in this embodiment of this application.

Step <NUM>: In response to the first operation, the electronic device displays a first user interface on the touchscreen, where the first user interface is the setting screen of the first application program. The setting screen of the first application program includes a folder control. The folder control is used to indicate a folder of the first application program.

In some embodiments, the folder control may be a control of a root folder corresponding to the first application program, or may be a control of a subfolder, or may be a control of a reclassified folder based on a type of a file included in the folder corresponding to the first application program.

An example in which the first application program is WeChat is used. For example, WeChat is corresponding to a root folder Weixin, and the setting screen of the first application program may be the user interface <NUM> shown in <FIG>. For another example, WeChat corresponds to a subfolder Picture, a subfolder Game, a subfolder Video, and a subfolder Document, and the setting screen of the first application program may also be the user interface <NUM> shown in <FIG>. For another example, reclassified folders corresponding to WeChat is a folder Picture, a folder Audio, a folder Video, and a folder Document. The setting screen of the first application program may be the user interface <NUM> shown in <FIG>.

In addition, in this embodiment of this application, the folder control may be an icon of a folder, or may be a folder path, or may be a virtual button, or the like. This is not limited herein. WeChat is used as an example. If the folder control is the virtual button, the setting screen of the first application program may be the user interface <NUM> shown in <FIG>, or may be the user interface <NUM> shown in <FIG>.

It should be noted that, in some embodiments, if the folder control includes N subfolder controls corresponding to the first application program, N is a natural number greater than <NUM>, each of the N subfolder controls is used to indicate one subfolder corresponding to the first application program, and each subfolder control indicates a different subfolder. For example, the N subfolder controls may be arranged in the first user interface in descending order of storage frequencies of subfolders respectively indicated by the N subfolder controls. For another example, the N subfolder controls may be arranged in the first user interface based on a time sequence of latest storage of a file in the subfolders respectively indicated by the N subfolder controls.

In addition, the first user interface may further include a common folder control, and the common folder control is used to indicate a subfolder that is most frequently stored in the subfolders corresponding to the first application program. The electronic device may collect, by using a file system manager at an interval of preset duration, statistics on a storage frequency of the subfolders corresponding to the first application program.

In some other embodiments, the first user interface may further include a file control. The file control is used to indicate a latest saved file. The file may be a picture, a document, audio, a video, or the like. This is not limited herein.

Step <NUM>: The electronic device detects a second operation on the folder control.

The second operation may be a touch operation on the folder control, or may be a touch and hold operation on the folder control, or may be a heavy press operation on the folder control, or the like. This is not limited herein.

Step <NUM>: In response to the second operation the electronic device displays a second user interface on the touchscreen. The second user interface is a content details screen of the folder corresponding to the first application program.

For ease of implementation, in some embodiments, the second user interface may be a user interface in file management.

In addition, as shown in <FIG>, another folder browsing method according to an embodiment of this application includes the following steps.

Step <NUM>: An electronic device displays a home screen on a touchscreen, where the home screen includes an icon of a first application program.

Step <NUM>: The electronic device detects an operation on the icon of the first application program.

For example, the operation on the icon of the first application program may be a double-tap operation, a touch and hold operation, a heavy press operation, or the like on the icon of the first application program. This is not limited herein.

Step <NUM>: In response to the operation on the icon of the first application program, the electronic device displays a shortcut menu on the touchscreen, where the shortcut menu includes a first control.

For example, the first application program is WeChat, and the shortcut menu may be the shortcut menu <NUM> shown in <FIG>. The first control may be referred to as application folder management, or may be referred to as folder management, or the like. This is not limited herein.

Step <NUM>: The electronic device detects a touch operation on the first control.

Step <NUM>: In response to the touch operation on the first control, the electronic device displays, on the touchscreen, a content details screen corresponding to the first application program.

It should be noted that, in some embodiments, the content details screen is a user interface that is in file management and that is for content details of a folder corresponding to the first application program.

In the embodiments provided in this application, the methods provided in the embodiments of this application are described from a perspective in which the electronic device is used as an execution body. To implement functions in the methods provided in the embodiments of this application, the electronic device may include a hardware structure and/or a software module, and implement the functions in a form of the hardware structure, the software module, or a combination of the hardware structure and the software module. Whether a function in the foregoing functions is performed by using the hardware structure, the software module, or the combination of the hardware structure and the software module depends on a specific application and a design constraint condition of the technical solutions.

Based on a same concept, <FIG> shows an electronic device <NUM> according to this application. For example, the electronic device <NUM> includes at least one processor <NUM>, a memory <NUM>, and a touchscreen <NUM>. The processor <NUM> is coupled to the memory <NUM> and the touchscreen <NUM>. The coupling in this embodiment of this application is an indirect coupling or communication connection between apparatuses, units, or modules, and may be in an electrical, mechanical, or another form, and is used for information exchange between the apparatuses, units, or modules.

Specifically, the memory <NUM> is configured to store a program instruction.

The touchscreen <NUM> is configured to display a user interface.

The processor <NUM> is configured to invoke the program instruction stored in the memory <NUM>, so that the electronic device <NUM> performs the steps performed by the electronic device in the method for browsing a folder shown in <FIG> and/or <FIG>, to improve efficiency of searching for a file by a user.

It should be understood that the electronic device <NUM> may be configured to implement the method for browsing a folder shown in <FIG> and/or <FIG> in this embodiment of this application. For related features, refer to the foregoing descriptions.

A person skilled in the art may clearly understand that the embodiments of this application may be implemented by hardware, firmware, or a combination thereof. When the present invention is implemented by software, the foregoing functions may be stored in a computer-readable medium or transmitted as one or more instructions or code in the computer-readable medium. The computer-readable medium includes a computer storage medium and a communications medium, where the communications medium includes any medium that enables a computer program to be transmitted from one place to another. The storage medium may be any available medium accessible to a computer. This is used as an example but is not limited to: The computer-readable medium may include a RAM, a ROM, an electrically erasable programmable read-only memory (electrically erasable programmable read only memory, EEPROM), a compact disc read-only memory (compact disc read-Only memory, CD-ROM) or another compact disc storage, a magnetic disk storage medium or another magnetic storage device, or any other medium that can be configured to carry or store desired program code in a form of an instruction or a data structure and that can be accessed by a computer. In addition, any connection may be appropriately defined as a computer-readable medium. For example, if software is transmitted from a website, a server or another remote source by using a coaxial cable, an optical fiber/cable, a twisted pair, a digital subscriber line (digital subscriber line, DSL) or wireless technologies such as infrared ray, radio and microwave, the coaxial cable, optical fiber/cable, twisted pair, DSL or wireless technologies such as infrared ray, radio and microwave are included in fixation of a medium to which they belong. A disk (disk) and disc (disc) used by the embodiments of this application includes a compact disc (compact disc, CD), a laser disc, an optical disc, a digital video disc (digital video disc, DVD), a floppy disk and a Blu-ray disc, where the disk generally copies data by a magnetic means, and the disc copies data optically by a laser means. The foregoing combination should also be included in the protection scope of the computer-readable medium.

Claim 1:
A method for browsing an application folder, wherein the method is implemented on an electronic device (<NUM>) having a touchscreen (<NUM>, <NUM>), and the method comprises:
displaying, by the electronic device (<NUM>), a home screen (<NUM>) on the touchscreen (<NUM>, <NUM>), wherein the home screen (<NUM>) comprises an icon of a first application program;
detecting, by the electronic device (<NUM>), a touch and hold operation on the icon of the first application program; and
in response to the touch and hold operation, displaying, by the electronic device (<NUM>) on the touchscreen (<NUM>, <NUM>), a shortcut menu (<NUM>) corresponding to the first application program, wherein the shortcut menu (<NUM>) comprises a first control;
detecting, by the electronic device (<NUM>), a first operation on the first control;
in response to the first operation, displaying, by the electronic device (<NUM>), a first user interface on the touchscreen (<NUM>, <NUM>), wherein the first user interface is a screen of the first application program, the first user interface comprises a folder control, and the folder control is used to indicate a first folder of the first application program;
detecting, by the electronic device (<NUM>), a second operation on the folder control; and
in response to the second operation, displaying, by the electronic device (<NUM>), a second user interface on the touchscreen (<NUM>, <NUM>), wherein the second user interface is a content details screen of the first folder corresponding to the first application program; and
the first user interface further comprises a file control, wherein the file control is used to indicate a first file, and the first file is a latest file saved for the first application program, wherein the first folder includes the first file.