File sharing method and device

A file sharing and file technology, applied in the information field, can solve problems such as accidental deletion of files, and achieve the effect of avoiding read permissions

Inactive Publication Date: 2017-03-15
LETV HLDG BEIJING CO LTD +1
View PDF0 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the embodiments of the present invention is to provide a file sharing method and device, aiming to solve the problems in existing file sharing schemes, such as files are easily deleted by users by mistake, and corresponding permissions are required when writing and reading files

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • File sharing method and device
  • File sharing method and device
  • File sharing method and device

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0026] See figure 1 , figure 1 It shows the first embodiment provided by the present invention, a file sharing method, including:

[0027] S101. Save the to-be-shared file of the first application in a preset directory of the first application.

[0028] In this step, after detecting the file to be shared of the first application, the file sharing device saves the file to be shared of the first application to a preset directory of the first application.

[0029] Specifically, at present, users use mobile terminals or computers to install various application programs (APP, Application), and each APP will save generated files according to the preset storage path of the APP during use. Taking a mobile terminal whose operating system is the Android system as an example, after an APP is installed on the mobile terminal, the files generated during the use of the APP will be saved in different directories according to the preset saving rules of the APP. In order to avoid the permis...

no. 2 example

[0041] See figure 2 , figure 2 It shows a file sharing method according to the second embodiment of the present invention, including:

[0042] S201. Save the to-be-shared file of the first application in a preset directory of the first application.

[0043] After detecting the to-be-shared file of the first application, the file-sharing device saves the to-be-shared file of the first application to a preset directory of the first application.

[0044]Specifically, at present, users use mobile terminals or computers to install various application programs (APP, Application), and each APP will save generated files according to the preset storage path of the APP during use. Taking a mobile terminal whose operating system is the Android system as an example, after an APP is installed on the mobile terminal, the files generated during the use of the APP will be saved in different directories according to the preset saving rules of the APP. In order to avoid the permission prob...

no. 5 example

[0081] The present invention also provides Figure 5 In the fifth embodiment shown, a file sharing method includes:

[0082] S501. Save the to-be-shared file of the first application in a preset directory of the first application.

[0083] In this step, after detecting the file to be shared of the first application, the file sharing device saves the file to be shared of the first application to a preset directory of the first application.

[0084] S502. Establish an inheritance class of contentprovider, and rewrite the openFile method in the established class.

[0085] In this step, the file sharing device will create a contentprovider inheritance class, and after creating the contentprovider inheritance class, it will rewrite the openFile method in the created class.

[0086] S503. Define a uniform resource identifier for the created class.

[0087] In this step, the file sharing device will define a uniform resource identifier for the created class. Specifically, the URI...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention is suitable for the technical field of address lists, and provides a file sharing method. The file sharing method includes: saving a file to be shared of a first application in a preset catalogue of the first application; establishing an inheritance class of a contentprovider, and re-writing an openFile method in the established class; defining a unified resource identifier for the established class; allowing the first application to read the file to be shared in the preset catalogue into an input output stream; allowing a second application to acquire the input output stream through the unified resource identifier so as to acquire the file to be shared. The file sharing method can avoid reading authority of an SD, and can overcome the problem that the user deletes the file to be shared due to a wrong operation.

Description

technical field [0001] The invention belongs to the field of information technology, and in particular relates to a file sharing method and device. Background technique [0002] The existing file sharing between different application programs (APP, Application) realizes the sharing of file data by saving the files in the directory under sdcard / of the SD card, or saving them in a path that can be accessed. [0003] During the inventor's implementation of this solution, it was found that there were at least the following problems in the above-mentioned file storage solution: although file data sharing could be realized according to the above-mentioned solution, it brought problems such as files being easily deleted by users by mistake, writing and reading When fetching files, you need the corresponding permissions and other issues. Contents of the invention [0004] The purpose of the embodiments of the present invention is to provide a file sharing method and device, aimi...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30
CPCG06F16/176
Inventor 李鹏成
Owner LETV HLDG BEIJING CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products