CN107066172B - File transmission method and device of mobile terminal - Google Patents

File transmission method and device of mobile terminal Download PDF

Info

Publication number
CN107066172B
CN107066172B CN201710083922.7A CN201710083922A CN107066172B CN 107066172 B CN107066172 B CN 107066172B CN 201710083922 A CN201710083922 A CN 201710083922A CN 107066172 B CN107066172 B CN 107066172B
Authority
CN
China
Prior art keywords
file
application
dragging
window
mobile terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710083922.7A
Other languages
Chinese (zh)
Other versions
CN107066172A (en
Inventor
刘鸣
王乐
伍亮雄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710083922.7A priority Critical patent/CN107066172B/en
Publication of CN107066172A publication Critical patent/CN107066172A/en
Application granted granted Critical
Publication of CN107066172B publication Critical patent/CN107066172B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure relates to a file transmission method and device of a mobile terminal. The method comprises the following steps: under the condition that the mobile terminal is in a multi-window mode, if it is detected that a file in a first window is dragged to a second window, acquiring a data statement of a first application operated by the first window and a data statement of a second application operated by the second window; determining a first set of file types according to a data declaration of a first application; determining a second set of file types according to the data declaration of the second application; and transmitting the file to a second application under the condition that the dragging attribute of the file supports dragging and the file type of the file belongs to the first file type set and the second file type set at the same time. According to the file transmission method and device of the mobile terminal, the files can be rapidly transmitted between different windows in a multi-window mode in a dragging mode, and therefore convenience and flexibility of file transmission between different applications of the mobile terminal are greatly improved.

Description

File transmission method and device of mobile terminal
Technical Field
The present disclosure relates to the field of mobile terminal technologies, and in particular, to a method and an apparatus for transmitting a file of a mobile terminal.
Background
The Android N platform provides a multi-window technology, so that a user can view a plurality of applications on a mobile phone or a tablet computer at the same time. The multi-window is divided into a split screen mode and a free shape mode. In the split-screen mode, the windows corresponding to the two applications respectively occupy half of the screen; in the free form mode, the windows corresponding to the multiple applications may be of any size and may be in any position. In the related art, although windows of multiple applications can be simultaneously displayed through a multi-window technology, file transfer between different applications can be generally performed only through complicated operations such as import and export, and file interaction between applications is not effectively performed by fully utilizing convenience of simultaneous display of multiple windows.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a file transmission method and apparatus for a mobile terminal.
According to a first aspect of the embodiments of the present disclosure, a file transmission method of a mobile terminal is provided, including:
under the condition that a mobile terminal is in a multi-window mode, if it is detected that a file in a first window is dragged to a second window, acquiring a data statement of a first application operated by the first window and a data statement of a second application operated by the second window, wherein under the multi-window mode, different applications are respectively operated by each window;
determining a first file type set according to the data statement of the first application, wherein the first file type set is a set of file types which the first application supports dragging to other applications;
determining a second file type set according to the data statement of the second application, wherein the second file type set is a set of file types which support drag-and-drop reception of the second application;
and transmitting the file to the second application under the condition that the dragging attribute of the file supports dragging and the file type of the file belongs to the first file type set and the second file type set at the same time.
For the above method, in one possible implementation, the method further includes:
and generating a data statement of the first application according to the file type which is dragged to other applications and supported by the first application.
For the above method, in one possible implementation, the method further includes:
and generating a data statement of the second application according to the file type which is dragged and received by the second application.
For the above method, in one possible implementation, the method further includes:
and setting a dragging attribute of each file in the first application, wherein the dragging attribute is that dragging is supported or dragging is not supported.
For the above method, in a possible implementation manner, the transmitting the file to the second application includes:
acquiring a file path of the file;
and transmitting the file to the second application according to the file path of the file.
For the above method, in one possible implementation, the method further includes:
and displaying the thumbnail of the file in the process of dragging the file.
According to a second aspect of the embodiments of the present disclosure, there is provided a file transfer apparatus of a mobile terminal, including:
the data statement acquisition module is used for acquiring a data statement of a first application operated by a first window and a data statement of a second application operated by the second window if it is detected that a file in the first window is dragged to the second window under the condition that the mobile terminal is in a multi-window mode, wherein different applications are respectively operated by the windows under the multi-window mode;
a first determining module, configured to determine a first set of file types according to a data declaration of the first application, where the first set of file types is a set of file types that the first application supports dragging to other applications;
a second determining module, configured to determine a second set of file types according to a data declaration of the second application, where the second set of file types is a set of file types that the second application supports drag-and-drop reception;
and the file transmission module is used for transmitting the file to the second application under the condition that the dragging attribute of the file supports dragging and the file type of the file belongs to the first file type set and the second file type set simultaneously.
For the above apparatus, in one possible implementation manner, the apparatus further includes:
and the first generation module is used for generating the data statement of the first application according to the file type which is dragged to other applications and supported by the first application.
For the above apparatus, in one possible implementation manner, the apparatus further includes:
and the second generation module is used for generating the data statement of the second application according to the file type which is dragged and received by the second application.
For the above apparatus, in one possible implementation manner, the apparatus further includes:
and the dragging attribute setting module is used for setting the dragging attribute of each file in the first application, wherein the dragging attribute is dragging support or dragging support.
For the above apparatus, in a possible implementation manner, the file transfer module includes:
the file path acquisition submodule is used for acquiring a file path of the file;
and the file transmission sub-module is used for transmitting the file to the second application according to the file path of the file.
For the above apparatus, in one possible implementation manner, the apparatus further includes:
and the thumbnail display module is used for displaying the thumbnail of the file in the process of dragging the file.
According to a third aspect of the embodiments of the present disclosure, there is provided a file transfer apparatus of a mobile terminal, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
under the condition that a mobile terminal is in a multi-window mode, if it is detected that a file in a first window is dragged to a second window, acquiring a data statement of a first application operated by the first window and a data statement of a second application operated by the second window, wherein under the multi-window mode, different applications are respectively operated by each window;
determining a first file type set according to the data statement of the first application, wherein the first file type set is a set of file types which the first application supports dragging to other applications;
determining a second file type set according to the data statement of the second application, wherein the second file type set is a set of file types which support drag-and-drop reception of the second application;
and transmitting the file to the second application under the condition that the dragging attribute of the file supports dragging and the file type of the file belongs to the first file type set and the second file type set at the same time.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: under the condition that the mobile terminal is in a multi-window mode, if the condition that the file in the first window is dragged to the second window is detected, a data declaration of a first application run by the first window and a data declaration of a second application run by the second window are obtained, determining a first set of file types from the data declaration of the first application, determining a second set of file types from the data declaration of the second application, transmitting the file to a second application under the condition that the dragging attribute of the file supports dragging and the file type of the file belongs to a first file type set and a second file type set simultaneously, according to the file transmission method and device of the mobile terminal in the embodiment of the disclosure, the file can be rapidly transmitted between different windows in a multi-window mode in a dragging mode, therefore, convenience and flexibility of file transmission among different applications of the mobile terminal are greatly improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart illustrating a file transfer method of a mobile terminal according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating a file transfer method of a mobile terminal, according to an example of an exemplary embodiment, transferring the file to a second application in step S14.
Fig. 3 is a block diagram illustrating a file transfer apparatus of a mobile terminal according to an exemplary embodiment.
Fig. 4 is a block diagram illustrating a file transfer apparatus of a mobile terminal according to an example of an exemplary embodiment.
Fig. 5 is a block diagram illustrating an apparatus 800 for file transfer for a mobile terminal according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a file transfer method of a mobile terminal according to an exemplary embodiment. The execution main body of the method may be a mobile terminal such as a mobile phone or a tablet computer, and is not limited herein. As shown in fig. 1, the method includes the following steps.
In step S11, when the mobile terminal is in the multi-window mode, if it is detected that the file in the first window is dragged to the second window, the data declaration of the first application run in the first window and the data declaration of the second application run in the second window are obtained, where in the multi-window mode, different applications are run in each window.
The first application may be any application in the mobile terminal, and the second application may be any application in the mobile terminal different from the first application. In the present embodiment, the first application refers to a certain application, and the "first" is only used for convenience of expression and reference, and does not mean that there is necessarily a first application corresponding to the first application in a specific implementation manner of the present disclosure. Similarly, "second" in a second application is also for convenience only and does not imply that there must be a second application corresponding to it in a particular implementation of the disclosure.
In a multi-window mode (e.g., a split screen mode or a free-form mode) of the mobile terminal, a first application may be displayed through one window and a second application may be displayed through another window, e.g., the first application is displayed through the first window and the second application is displayed through the second window. As an example of this embodiment, in a case that a first window corresponding to a first application and a second window corresponding to a second application are simultaneously displayed, a user may lengthen a file to be transmitted as needed in the first window, and release a finger after dragging the file to the second window, thereby implementing dragging the file in the first application to the second application.
In this embodiment, the data declaration of the first application may be used to determine that the first application supports a file type dragged to another application, and the data declaration of the second application may be used to determine that the second application supports a file type dragged to receive.
In one possible implementation, the data declaration of the first application may also be used to determine a file type that the first application supports drag-and-drop reception.
In one possible implementation, the data declaration of the second application may also be used to determine a file type that the second application supports dragging to other applications.
In step S12, a first set of file types is determined according to the data declaration of the first application, the first set of file types being a set of file types that the first application supports dragging to other applications.
The embodiment limits the file types which the first application supports dragging to other applications through the data statement of the first application. The first set of file types may include, but is not limited to, documents, pictures, and audio. In this embodiment, when the file type of the file does not belong to the first file type set, the file is not transmitted to the second application, and the user may be reminded that the first application does not support the currently dragged file to be dragged to other applications.
In step S13, a second set of file types is determined according to the data declaration of the second application, and the second set of file types is a set of file types that the second application supports drag receiving.
The embodiment limits the file types which the second application supports drag receiving through the data declaration of the second application. The second set of file types may include, but is not limited to, documents, pictures, and audio. In this embodiment, when the file type of the file does not belong to the second file type set, the file is not transmitted to the second application, and the user may be reminded that the second application does not support dragging and receiving of the currently dragged file.
In step S14, in a case that the drag attribute of the file is drag-supported and the file type of the file belongs to both the first file type set and the second file type set, the file is transmitted to the second application.
The file type of the file may be determined according to a suffix name of the file, or may be determined according to other manners, which is not limited herein. For example, file types may include pictures, documents, audio, video, and so forth.
The file type of the file belongs to both the first set of file types and the second set of file types, which may mean that the file type of the file belongs to a subset of the first set of file types and the second set of file types.
According to the embodiment, the file can be rapidly transmitted between different windows in a multi-window mode in a dragging mode, and file interaction between the multiple windows is realized, so that the convenience and flexibility of file transmission between different applications of the mobile terminal are greatly improved, the interaction mode between the applications is increased, and the user experience can be improved.
In one possible implementation, the method further includes: and generating a data statement of the first application according to the file type which is supported by the first application and is dragged to other applications.
As an example of this implementation, during the installation of the first application, it may be stated that the first application supports a file type dragged to other applications, and the first set of file types may be determined according to the file type that the first application supports dragging to other applications. For example, a file type that the first application supports dragging to other applications may be declared in android manifest.
As an example of this implementation, the data declaration of the first application may be generated according to a file type that the first application supports dragging to other applications, and a file type that the first application supports dragging reception.
In a possible implementation manner, in a process that the first application is used by a user, a file type that the first application supports dragging to other applications may be modified according to a user instruction, and a data declaration of the first application is re-determined according to the modified file type that the first application supports dragging to other applications.
In one possible implementation, the method further includes: and generating a data statement of the second application according to the file type which is dragged and received by the second application.
As an example of this implementation manner, in the process of installing the second application, it may be stated that the second application supports the file type of drag receiving, and the second file type set may be determined according to the file type of drag receiving supported by the second application. For example, the file type that the second application supports drag-and-drop reception can be declared in the android manifest.
As an example of this implementation, the data declaration of the second application may be generated according to a file type that the second application supports drag-and-drop reception, and a file type that the second application supports drag-and-drop to other applications.
In a possible implementation manner, in a process that the second application is used by a user, the file type that the second application supports drag-and-drop reception may be modified according to a user instruction, and the data declaration of the second application may be re-determined according to the modified file type that the second application supports drag-and-drop reception.
In one possible implementation, the method further includes: and setting the dragging attribute of each file in the first application, wherein the dragging attribute is dragging support or dragging non-support. In the implementation manner, a drag attribute is respectively set for each file displayed in a first window corresponding to a first application. For example, the drag attribute of true indicates that the file supports drag, and the drag attribute of false indicates that the file does not support drag. And for the file of which the drag attribute is not supported by dragging, not allowing the drag operation from the first window to the second window to be executed.
According to the implementation mode, the dragging attribute of each file in the first application is set so as to limit the draggable files in the first application, and therefore the possibility of misoperation can be reduced.
Fig. 2 is a flowchart illustrating a file transfer method of a mobile terminal transferring a file to a second application in step S14 according to an example of an exemplary embodiment. As shown in fig. 2, transferring the file to a second application includes:
in step S21, the file path of the file is acquired.
In step S22, the file is transmitted to the second application according to the file path of the file.
In one possible implementation, the method further includes: and displaying the thumbnail of the file in the process of dragging the file. In the implementation mode, when it is detected that a file in a first window is dragged to a second window, the dragging attribute of the file is dragging support, and the file type of the file belongs to both a first file type set and a second file type set, the thumbnail of the file can be obtained, the thumbnail of the file can be displayed in the process of dragging the file, and the thumbnail can be moved in real time according to the touch position of a finger of a user on a screen, so that the dragging effect is displayed in real time, and the experience of the user in dragging the file between the windows can be improved. For example, for a file whose file type is a picture, a thumbnail of the picture may be taken as a thumbnail of the file; for a file of which the file type is a document, audio or video, the thumbnail of the file may be determined according to an icon of an application in the mobile terminal that supports opening the file.
In one possible implementation, the method may further include: and returning the transmission result of the file to the first application. In this implementation, after the second application receives the completed file, a prompt message indicating that the transmission is successful may be displayed in the first application; after the second application fails to receive the file, prompt information of transmission failure can be displayed in the first application. By returning the transmission result of the file to the first application, the user can visually see the transmission result, so that the user experience of transmitting the file among multiple windows of the mobile terminal can be improved.
For ease of understanding, an example of the present embodiment is given below. In this example, the first application is a gallery application and the second application is a notes application (i.e., memo application). The gallery application declares that the file type which supports dragging to other applications is a picture, and determines the file type, the file path and the thumbnail of each file in the gallery application. For example, the file types of the files in the gallery application are pictures; the file path of a certain file in the gallery application is/data/data/DCIM/Camera/1. jpg; and regarding each file in the gallery application, respectively taking the thumbnail of the picture as the thumbnail of each file. The note application declares that the file type that it supports drag-and-drop reception includes a picture. And displaying the thumbnail of the picture in the process that the user long presses and drags a certain picture in the window corresponding to the gallery application. After a user drags the picture to a note being edited in a note application and releases fingers, inserting the picture into the note being edited, and returning information that the picture is successfully transmitted to the first application; after the user drags the picture to the note list page of the note application and releases the fingers, the picture cannot be inserted into the note list page, and therefore the picture transmission failure information is returned to the first application.
Fig. 3 is a block diagram illustrating a file transfer apparatus of a mobile terminal according to an exemplary embodiment. The device may be a mobile terminal such as a mobile phone or a tablet computer, and is not limited herein. For convenience of explanation, only a part related to the present embodiment is shown in fig. 3. Referring to fig. 3, the apparatus includes a data declaration acquisition module 31, a first determination module 32, a second determination module 33, and a file transfer module 34. The data declaration obtaining module 31 is configured to, when the mobile terminal is in a multi-window mode, obtain, if it is detected that a file in a first window is dragged to a second window, a data declaration of a first application run by the first window and a data declaration of a second application run by the second window, where, in the multi-window mode, each window runs a different application. The first determination module 32 is configured to determine a first set of file types from the data declaration for the first application, the first set of file types being a set of file types that the first application supports dragging to other applications. The second determining module 33 is configured to determine a second set of file types according to the data declaration of the second application, the second set of file types being a set of file types that the second application supports drag-and-drop reception. The file transmission module 34 is configured to transmit the file to the second application when the drag attribute of the file supports dragging and the file type of the file belongs to both the first file type set and the second file type set.
Fig. 4 is a block diagram illustrating a file transfer apparatus of a mobile terminal according to an example of an exemplary embodiment. For convenience of explanation, only a part related to the present embodiment is shown in fig. 4. As shown in fig. 4:
in a possible implementation, the apparatus further includes a first generating module 35. The first generation module 35 is configured to generate a data declaration for the first application according to a file type that the first application supports dragging to other applications.
In a possible implementation, the apparatus further comprises a second generating module 36. The second generating module 36 is configured to generate a data declaration of the second application according to a file type that the second application supports drag-and-drop reception.
In one possible implementation, the apparatus further includes a drag attribute setting module 37. The drag attribute setting module 37 is configured to set a drag attribute of each file in the first application, where the drag attribute is drag-supported or drag-not-supported.
In one possible implementation, the file transfer module 34 includes a file path obtaining sub-module 341 and a file transfer sub-module 342. The file path obtaining sub-module 341 is configured to obtain a file path of the file. The file transfer sub-module 342 is configured to transfer the file to the second application according to the file path of the file.
In one possible implementation, the apparatus further includes a thumbnail display module 38. The thumbnail display module 38 is configured to display thumbnails of the files during the process of dragging the files.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
According to the embodiment, the file can be rapidly transmitted between different windows in a multi-window mode in a dragging mode, so that the convenience and flexibility of file transmission between different applications of the mobile terminal are greatly improved.
Fig. 5 is a block diagram illustrating an apparatus 800 for file transfer for a mobile terminal according to an example embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 5, the apparatus 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 806 provide power to the various components of device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user, in some embodiments, the screen may include a liquid crystal display (L CD) and a Touch Panel (TP). if the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed status of the device 800, the relative positioning of components, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in the position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration/deceleration of the device 800, and a change in the temperature of the device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), programmable logic devices (P L D), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the methods described above.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (11)

1. A file transmission method of a mobile terminal is characterized by comprising the following steps:
under the condition that a mobile terminal is in a multi-window mode, if it is detected that a file in a first window is dragged to a second window, acquiring a data statement of a first application operated by the first window and a data statement of a second application operated by the second window, wherein under the multi-window mode, different applications are respectively operated by each window;
determining a first file type set according to the data statement of the first application, wherein the first file type set is a set of file types which the first application supports dragging to other applications;
determining a second file type set according to the data statement of the second application, wherein the second file type set is a set of file types which support drag-and-drop reception of the second application;
transmitting the file to the second application under the condition that the dragging attribute of the file supports dragging and the file type of the file belongs to the first file type set and the second file type set at the same time;
wherein during the installation of the first application, a data statement of the first application is generated, and during the installation of the second application, a data statement of the second application is generated;
wherein the method further comprises:
and setting a dragging attribute of each file in the first application, wherein the dragging attribute is that dragging is supported or dragging is not supported.
2. The file transfer method of a mobile terminal according to claim 1, wherein the method further comprises:
and generating a data statement of the first application according to the file type which is dragged to other applications and supported by the first application.
3. The file transfer method of a mobile terminal according to claim 1, wherein the method further comprises:
and generating a data statement of the second application according to the file type which is dragged and received by the second application.
4. The file transfer method of claim 1, wherein transferring the file to the second application comprises:
acquiring a file path of the file;
and transmitting the file to the second application according to the file path of the file.
5. The file transfer method of a mobile terminal according to claim 1, wherein the method further comprises:
and displaying the thumbnail of the file in the process of dragging the file.
6. A file transfer apparatus of a mobile terminal, comprising:
the data statement acquisition module is used for acquiring a data statement of a first application operated by a first window and a data statement of a second application operated by the second window if it is detected that a file in the first window is dragged to the second window under the condition that the mobile terminal is in a multi-window mode, wherein different applications are respectively operated by the windows under the multi-window mode;
a first determining module, configured to determine a first set of file types according to a data declaration of the first application, where the first set of file types is a set of file types that the first application supports dragging to other applications;
a second determining module, configured to determine a second set of file types according to a data declaration of the second application, where the second set of file types is a set of file types that the second application supports drag-and-drop reception;
the file transmission module is used for transmitting the file to the second application under the condition that the dragging attribute of the file supports dragging and the file type of the file belongs to the first file type set and the second file type set simultaneously;
wherein during the installation of the first application, a data statement of the first application is generated, and during the installation of the second application, a data statement of the second application is generated;
wherein the apparatus further comprises:
and the dragging attribute setting module is used for setting the dragging attribute of each file in the first application, wherein the dragging attribute is dragging support or dragging support.
7. The file transfer apparatus of a mobile terminal according to claim 6, wherein said apparatus further comprises:
and the first generation module is used for generating the data statement of the first application according to the file type which is dragged to other applications and supported by the first application.
8. The file transfer apparatus of a mobile terminal according to claim 6, wherein said apparatus further comprises:
and the second generation module is used for generating the data statement of the second application according to the file type which is dragged and received by the second application.
9. The file transmission device of claim 6, wherein the file transmission module comprises:
the file path acquisition submodule is used for acquiring a file path of the file;
and the file transmission sub-module is used for transmitting the file to the second application according to the file path of the file.
10. The file transfer apparatus of a mobile terminal according to claim 6, wherein said apparatus further comprises:
and the thumbnail display module is used for displaying the thumbnail of the file in the process of dragging the file.
11. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
under the condition that a mobile terminal is in a multi-window mode, if it is detected that a file in a first window is dragged to a second window, acquiring a data statement of a first application operated by the first window and a data statement of a second application operated by the second window, wherein under the multi-window mode, different applications are respectively operated by each window;
determining a first file type set according to the data statement of the first application, wherein the first file type set is a set of file types which the first application supports dragging to other applications;
determining a second file type set according to the data statement of the second application, wherein the second file type set is a set of file types which support drag-and-drop reception of the second application;
transmitting the file to the second application under the condition that the dragging attribute of the file supports dragging and the file type of the file belongs to the first file type set and the second file type set at the same time;
wherein during the installation of the first application, a data statement of the first application is generated, and during the installation of the second application, a data statement of the second application is generated;
wherein the processor is further configured to:
and setting a dragging attribute of each file in the first application, wherein the dragging attribute is that dragging is supported or dragging is not supported.
CN201710083922.7A 2017-02-16 2017-02-16 File transmission method and device of mobile terminal Active CN107066172B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710083922.7A CN107066172B (en) 2017-02-16 2017-02-16 File transmission method and device of mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710083922.7A CN107066172B (en) 2017-02-16 2017-02-16 File transmission method and device of mobile terminal

Publications (2)

Publication Number Publication Date
CN107066172A CN107066172A (en) 2017-08-18
CN107066172B true CN107066172B (en) 2020-07-10

Family

ID=59622306

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710083922.7A Active CN107066172B (en) 2017-02-16 2017-02-16 File transmission method and device of mobile terminal

Country Status (1)

Country Link
CN (1) CN107066172B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110874276B (en) * 2018-08-31 2023-02-28 杭州海康威视系统技术有限公司 Cross-process communication method and device and computer readable storage medium
CN109522278B (en) * 2018-10-18 2020-08-04 维沃移动通信有限公司 File storage method and terminal equipment
CN109933446A (en) * 2019-03-18 2019-06-25 Oppo广东移动通信有限公司 Data transfer control method and device in electronic equipment across application program
CN110262714A (en) * 2019-05-30 2019-09-20 阿里巴巴集团控股有限公司 A kind of information cuing method, device and equipment
CN112199124B (en) * 2019-06-21 2022-07-01 海信视像科技股份有限公司 Project opening method and device and display equipment
CN112445762A (en) * 2019-08-30 2021-03-05 华为技术有限公司 File sharing method and equipment for mobile terminal
CN111327769B (en) * 2020-02-25 2022-04-08 北京小米移动软件有限公司 Multi-screen interaction method and device and storage medium
CN114077411A (en) * 2020-08-11 2022-02-22 华为技术有限公司 Data transmission method and device
CN114527901A (en) * 2020-10-31 2022-05-24 华为技术有限公司 File dragging method and electronic equipment
CN115729431A (en) * 2021-08-31 2023-03-03 华为技术有限公司 Control content dragging method, electronic device and system
CN117149008A (en) * 2022-05-24 2023-12-01 华为技术有限公司 Display method and electronic equipment
CN116974446A (en) * 2023-09-18 2023-10-31 荣耀终端有限公司 Animation effect display method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102486715A (en) * 2010-12-06 2012-06-06 联想(北京)有限公司 Object processing method and device as well as electronic equipment
CN103376989A (en) * 2012-04-26 2013-10-30 三星电子株式会社 Method and terminal for displaying a plurality of pages,method and terminal for displaying a plurality of applications being executed on terminal, and method of executing a plurality of applications
CN104077027A (en) * 2013-03-27 2014-10-01 三星电子株式会社 Device and Method for Displaying Execution Result of Application

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101609162B1 (en) * 2008-11-13 2016-04-05 엘지전자 주식회사 Mobile Terminal With Touch Screen And Method Of Processing Data Using Same
CN103279269B (en) * 2013-05-31 2016-03-02 华为技术有限公司 Data interactive method between a kind of application program and device, terminal device
CN104346461B (en) * 2014-11-07 2018-05-04 北京奇虎科技有限公司 The method, apparatus and browser client of search and webpage element
CN105912191A (en) * 2016-03-31 2016-08-31 北京奇虎科技有限公司 Method and device for realizing interaction between applications of terminal equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102486715A (en) * 2010-12-06 2012-06-06 联想(北京)有限公司 Object processing method and device as well as electronic equipment
CN103376989A (en) * 2012-04-26 2013-10-30 三星电子株式会社 Method and terminal for displaying a plurality of pages,method and terminal for displaying a plurality of applications being executed on terminal, and method of executing a plurality of applications
CN104077027A (en) * 2013-03-27 2014-10-01 三星电子株式会社 Device and Method for Displaying Execution Result of Application

Also Published As

Publication number Publication date
CN107066172A (en) 2017-08-18

Similar Documents

Publication Publication Date Title
CN107066172B (en) File transmission method and device of mobile terminal
CN107908351B (en) Application interface display method and device and storage medium
EP3098701B1 (en) Method and apparatus for managing terminal application
EP3337146B1 (en) Method and apparatus for displaying notification message
CN110231901B (en) Application interface display method and device
CN107992257B (en) Screen splitting method and device
CN106919629B (en) Method and device for realizing information screening in group chat
CN107239351B (en) Pasting method and device
CN110968364B (en) Method and device for adding shortcut plugins and intelligent device
EP3147802B1 (en) Method and apparatus for processing information
CN104462296B (en) File management method and device and terminal
CN109117144B (en) Page processing method, device, terminal and storage medium
CN112463418A (en) Cross-device information sharing method, device, medium and electronic device
CN111427449A (en) Interface display method, device and storage medium
CN105677352B (en) Method and device for setting application icon color
CN107491238B (en) Display method and device of push information
CN110221813B (en) Application data connection establishment method and device, storage medium and electronic equipment
CN107885571B (en) Display page control method and device
CN108829473B (en) Event response method, device and storage medium
CN106919302B (en) Operation control method and device of mobile terminal
CN107368278B (en) Information processing method and device
CN106790683B (en) Network data display method and device based on mobile terminal
CN106569697B (en) Picture viewing method and device and terminal
CN112698770B (en) Information processing method and device, and storage medium
US20220210110A1 (en) Method and device for information processing, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant