Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for achieving file uploading through SDK

A file upload and file technology, applied in the communication field, can solve problems such as development difficulties, high development costs, and low task efficiency, and achieve the effects of improving development efficiency and quality, reducing development costs, and avoiding development defects

Active Publication Date: 2014-02-19
BEIJING QIHOO TECH CO LTD
View PDF3 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, on the one hand, this development method has high requirements for developers, resulting in development difficulties, slow development speed, and high development costs; Many, need to continue to upgrade and improve the version

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
  • Method and device for achieving file uploading through SDK
  • Method and device for achieving file uploading through SDK
  • Method and device for achieving file uploading through SDK

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0025] refer to figure 1 , shows a flow chart of steps of a method for uploading a file by an SDK according to Embodiment 1 of the present invention.

[0026] The method that the SDK of this embodiment implements file uploading is applied to a cloud storage system, and the method includes the following steps:

[0027] Step S102: receiving a file upload instruction, obtaining information about the file to be uploaded and a unified context environment for uploading the file to be uploaded.

[0028] When there is a file to be uploaded, the device for uploading the file, such as the client, will send a file upload instruction to the cloud storage server. After receiving the instruction, the cloud storage server will obtain the information of the file to be uploaded from the corresponding device, such as The location of the file to be uploaded, the file size, the location to be uploaded, and other information related to the file to be uploaded. More importantly, the cloud storage...

Embodiment 2

[0034] refer to figure 2 , shows a flow chart of steps of a method for uploading a file by an SDK according to Embodiment 2 of the present invention.

[0035] The method that the SDK of this embodiment implements file uploading is applied to a cloud storage system, and the method includes the following steps:

[0036] Step S202: Encapsulate the upload interface of the SDK.

[0037] In this embodiment, a preferred method of encapsulating the SDK upload interface includes: analyzing the file upload process of the cloud storage system, obtaining the basic functions for completing the file upload task from all file upload functions; abstracting the basic functions into application callbacks Information class, and define the member variables in the application callback information class according to the basic functions; use member variables to transfer parameters between basic functions, and determine the calling order of basic functions according to the file upload process; appl...

Embodiment 3

[0049] This embodiment uses a specific example to illustrate the method for uploading a file by the SDK of the present invention, and the method is applied to a cloud storage system.

[0050] The method that the SDK of this embodiment implements file uploading includes the following steps:

[0051] Step 1: Generate the upload interface of the SDK.

[0052] Hereinafter, the process of generating the upload interface of the SDK will be described from various aspects.

[0053] (1) Software environment requirements:

[0054] a. Development environment: android2.1 and above;

[0055] b. Required permissions: at least include the access permissions required to generate the SDK. Take the permission configuration of the android application as an example, such as:

[0056]

[0057] / / Permission to access the Internet

[0058]

[0059] "android.permission.WRITE_EXTERNAL_STORAGE" / >

[0060] / / Permission to write external memory

[0061]

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 provides a method and device for achieving file uploading through an SDK, wherein the SDK is applied to a cloud storage system. The method for achieving file uploading through the SDK includes the first step of receiving a file uploading command, obtaining information of files to be uploaded and uploading a uniform context of the files to be uploaded, and the second step of calling a plurality of file uploading functions encapsulated in an uploading interface according to a member variable in a set application callback information type in the uploading interface to enable the file uploading functions to carry out uploading on the files to be uploaded through the utilization of the uniform context according to the information of the files to be uploaded. Through the method and device, the developing difficulty of developers is greatly lowered, developing efficiency and developing quality are improved, development speed is increased, developing cost is reduced, and developing defects are effectively avoided.

Description

technical field [0001] The present invention relates to the field of communication technology, in particular to a method and device for uploading files based on SDK (Software Development Kit, software development kit) of Android system. Background technique [0002] SDK is a collection of development tools used by software engineers to create application software for specific software packages, software frameworks, hardware platforms, operating systems, etc. It can simply provide an API (Application Programming Interface, application programming interface), but may also include complex hardware capable of communicating with some kind of embedded system. [0003] With the development of cloud storage technology, SDK is increasingly used to develop applications related to cloud storage. Through functions such as cluster application, grid technology or distributed file system, cloud storage integrates a large number of different types of storage devices in the network to work ...

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
IPC IPC(8): H04L29/08G06F9/44G06F9/445
Inventor 张劲辉
Owner BEIJING QIHOO TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products