CN110175052A - A kind of method, apparatus and computer readable storage medium of file opening - Google Patents

A kind of method, apparatus and computer readable storage medium of file opening Download PDF

Info

Publication number
CN110175052A
CN110175052A CN201910305305.6A CN201910305305A CN110175052A CN 110175052 A CN110175052 A CN 110175052A CN 201910305305 A CN201910305305 A CN 201910305305A CN 110175052 A CN110175052 A CN 110175052A
Authority
CN
China
Prior art keywords
application program
file
predetermined file
application
open
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.)
Pending
Application number
CN201910305305.6A
Other languages
Chinese (zh)
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201910305305.6A priority Critical patent/CN110175052A/en
Publication of CN110175052A publication Critical patent/CN110175052A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Abstract

This application involves a kind of method, apparatus of file opening and computer readable storage medium, method includes: whether the first application program of detection has been switched on predetermined file, wherein the first application program is to open the default application of predetermined file;In the case where the first application program does not open predetermined file, the file type of predetermined file is parsed, and is determined to open the second application program of predetermined file according to file type;Predetermined file is opened by the second application program.The embodiment of the present application whole process does not need user and carries out additional operation, system background automatic running, it ensure that user can be turned on when looking on the bright side of things and opening predetermined file by corresponding application program, and when with predetermined file there is the default application of the file of same file type to be also the first application program, can normally-open this document type All Files, better user experience.

Description

A kind of method, apparatus and computer readable storage medium of file opening
Technical field
This application involves the method, apparatus and computer-readable storage medium of control field more particularly to a kind of file opening Matter.
Background technique
Terminal usually there will be many locally downloading application programs, such as Photo Browser, music player, rise After grade, situations such as Crash (collapse), ANR (application program without respond) may be will appear when jumping opening.
If the default that these application programs are initially set to certain type of file opens program, once these are applied Occurs exception when program starts, then the corresponding a certain class file of the application program can not just be opened, and influence making for entire terminal With bringing poor experience to user.
Summary of the invention
In order to solve the above-mentioned technical problem or it at least is partially solved above-mentioned technical problem, this application provides one kind to open Open the method, apparatus and computer readable storage medium of file.
In a first aspect, this application provides a kind of methods of file opening, comprising: whether the first application program of detection Open predetermined file, wherein first application program is to open the default application of the predetermined file;Described first In the case that application program does not open the predetermined file, the file type of the predetermined file is parsed, and according to the file Type is determined to open the second application program of the predetermined file;The predetermined text is opened by second application program Part.
Optionally, whether the first application program of detection has been switched on predetermined file, comprising: detection first application program Whether successfully start up.
Optionally, the file type of the predetermined file is parsed, comprising: being currently up for first application program is secondary Number plus one;That detects first application program is currently up whether number reaches preset times threshold value;It is described default reaching In the case where frequency threshold value, the file type of the predetermined file is parsed.
Optionally, further includes: in the case where the not up to preset times threshold value, continue to test described first using journey Whether sequence successfully starts up.
Optionally, the predetermined file is opened by second application program, comprising: whether there is institute in detection terminal State the second application program;There are second application program, opened by second application program described pre- Determine file.
Optionally, further includes: in the case where second application program is not present, jump to second application program Downloading interface.
Optionally, it is determined to open the second application program of the predetermined file according to the file type, comprising: root It is determined to open multiple application programs of the predetermined file according to the file type;It is determined in the multiple application program The application program is applied journey by a most application program with the first application program common ground Sequence.
Optionally, before whether the first application program of detection has been switched on predetermined file, further includes: described in opening The operation of predetermined file determines corresponding first application program of the predetermined file.
Second aspect, this application provides a kind of device of file opening, the device of the file opening includes: storage Device, processor and it is stored in the computer program that can be run on the memory and on the processor;The computer journey Sequence realizes the step of above-mentioned method when being executed by the processor.
The third aspect, this application provides a kind of computer readable storage medium, on the computer readable storage medium It is stored with the program of file opening, the program of the file opening realizes above-mentioned file opening method when being executed by processor The step of.
Above-mentioned technical proposal provided by the embodiments of the present application has the advantages that compared with prior art
The embodiment of the present application whole process does not need user and carries out additional operation, and system background automatic running ensure that User can be turned on when looking on the bright side of things and opening predetermined file by corresponding application program, and identical having with predetermined file When the default application of the file of file type is also the first application program, can normally-open this document type it is all File, better user experience.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the application Example, and together with specification it is used to explain the principle of the application.
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, for those of ordinary skill in the art Speech, without any creative labor, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of hardware structural diagram for mobile terminal that each embodiment of the application provides;
Fig. 2 is a kind of communications network system architecture diagram that each embodiment of the application provides;
Fig. 3 is the flow chart of the method for the file opening that the application first embodiment provides;
Fig. 4 is the flow chart of the method for the file opening that the application second embodiment provides;
Fig. 5 is the flow chart of the method for the file opening that the application 3rd embodiment provides.
Specific embodiment
It should be appreciated that specific embodiment described herein is only used to explain the application, it is not used to limit the application.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element The explanation for being conducive to the application, itself does not have a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in this application may include such as mobile phone, plate Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. move The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special Except element for moving purpose, the terminal of fixed type can also apply to according to the construction of presently filed embodiment.
Referring to Fig. 1, it is the hardware structural diagram for realizing a kind of mobile terminal of each embodiment of the application, the shifting Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram, Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model. Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
The embodiment of the present application in order to facilitate understanding, the communications network system that the mobile terminal of the application is based below into Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided by the embodiments of the present application, the communication network system System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201 Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the application is not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And the following new network system etc., herein without limitation.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the application method is proposed.
The application first embodiment provides a kind of method of file opening, and the process of this method is as shown in figure 3, include step Rapid S301 to S303:
Whether S301, the first application program of detection have been switched on predetermined file, wherein the first application program is to open to make a reservation for The default application of file.
First application program can be any application, for example, the application opened the application program of picture, play audio Program, the application program for playing video etc..
Since the first application program is to open the default application of predetermined file, i.e., when attempting to open predetermined file, The first application program can be jumped directly to, and predetermined file is opened by the first application program.For example, if user wants to beat The predetermined file opened is music, then the first application program is to play the application program of music.If once the first application Occurs exception when program starts, then the corresponding a certain class file of the application program can not just be opened, and influence making for entire terminal With bringing poor experience to user.When specific implementation, which can be the mobile terminal provided in above-mentioned embodiment.
In order to guarantee that predetermined file can be opened normally, the embodiment of the present application first detects whether the first application program has been opened Open predetermined file.If opening predetermined file, illustrate that the first application program does not break down, if be not turned on predetermined File then illustrates that failure occurs at this time in the first application program, fail to open predetermined file.
S302 parses the file type of predetermined file, and root in the case where the first application program does not open predetermined file It is determined to open the second application program of predetermined file according to file type.
Since the first application failure leads to not open predetermined file, then any and predetermined file same type text Part may all be fail to open.
In order to bring good usage experience to user, the embodiment of the present application parses the file type of predetermined file, passes through Its file type is determined to open the other application program of predetermined file.If there is multiple texts that can open predetermined file The application program of part type, can be random select an application program as the second application program in multiple application programs, It is of course also possible to select a user usually most commonly used application program, in above-mentioned multiple application programs so as to more The use habit being close to the users.
It is, of course, also possible to a determining application most with the first application program common ground in above-mentioned multiple application programs Program, using application program as the second application program.Second application program due to the common ground with the first application program most It is more, can preferably it guarantee after predetermined file is opened, user can more use the similar functions to the first application program.
S303 opens predetermined file by the second application program.
After determining the second application program, so that it may the second application program be called to open predetermined file.
Certainly, it if the second application program does not also open predetermined file successfully, can also continue in above-mentioned determination Reselection one application program opens predetermined file in multiple application programs, and process is same as described above, herein no longer It repeats.
The embodiment of the present application parses the file of predetermined file in the case where the first application program fail to open predetermined file Type, and be determined to open the second application program of predetermined file according to file type, and then open by second using sequence Open predetermined file.The embodiment of the present application whole process does not need user and carries out additional operation, and system background automatic running guarantees User can be turned on when looking on the bright side of things and opening predetermined file by corresponding application program, and have phase with predetermined file When default application with the file of file type is also the first application program, can normally-open this document type institute There are file, better user experience.
The application second embodiment provides a kind of method of file opening, and the process of this method is as shown in figure 4, include step Rapid S401 to S406:
Whether S401, the first application program of detection have been switched on predetermined file, wherein the first application program is to open to make a reservation for The default application of file.
First application program can be any application, for example, the application opened the application program of picture, play audio Program, the application program for playing video etc..
Since the first application program is to open the default application of predetermined file, i.e., when attempting to open predetermined file, The first application program can be jumped directly to, and predetermined file is opened by the first application program.For example, if user wants to beat The predetermined file opened is music, then the first application program is to play the application program of music.If once the first application Occurs exception when program starts, then the corresponding a certain class file of the application program can not just be opened, and influence making for entire terminal With bringing poor experience to user.
In order to guarantee that predetermined file can be opened normally, the embodiment of the present application first detects whether the first application program has been opened Open predetermined file.If opening predetermined file, illustrate that the first application program does not break down, if be not turned on predetermined File then illustrates that failure occurs at this time in the first application program, fail to open predetermined file.
When whether the first application program of detection has been switched on predetermined file, as long as usually application program opens, one Surely predetermined file can be opened, therefore, specifically can detecte whether the first application program successfully starts up.If the application success opens It is dynamic, it may be considered that predetermined file is turned on.
S402, it is in the case where the first application program does not open predetermined file, being currently up for the first application program is secondary Number plus one.
S403, the first application program of detection are currently up whether number reaches preset times threshold value.If it is, executing Otherwise S404 in the case where not up to preset times threshold value, returns to S401.
Above-mentioned preset times threshold value can be rule of thumb arranged, such as user operates continuously 3 times not yet under normal conditions Predetermined file is opened, bad user experience may be caused, then can be set preset times threshold value to 2 times.
S404 parses the file type of predetermined file in the case where reaching preset times threshold value.
In order to be better understood by the demand of user, in the case where being currently up number and reaching preset times threshold value, may be used also To send prompting frame on user interface, to allow user to choose whether to switch to another application program unlatching predetermined file. If user selects to open another application program, then parses the file type of predetermined file.If user does not select to open another One application program, then do not parse the type of predetermined file actively, but wait user manually select its think it is to be used using journey Sequence.
S405 is determined to open the second application program of predetermined file according to file type.
Since the first application failure leads to not open predetermined file, then any and predetermined file same type text Part may all be fail to open.
In order to bring good usage experience to user, the embodiment of the present application parses the file type of predetermined file, passes through Its file type is determined to open the other application program of predetermined file.If there is multiple texts that can open predetermined file The application program of part type, can be random select an application program as the second application program in multiple application programs, It is of course also possible to select a user usually most commonly used application program, in above-mentioned multiple application programs so as to more The use habit being close to the users.
It is, of course, also possible to a determining application most with the first application program common ground in above-mentioned multiple application programs Program, using application program as the second application program.Second application program due to the common ground with the first application program most It is more, can preferably it guarantee after predetermined file is opened, user can more use the similar functions to the first application program.
S406 opens predetermined file by the second application program.
After determining the second application program, so that it may the second application program be called to open predetermined file.
Certainly, it if the second application program does not also open predetermined file successfully, can also continue in above-mentioned determination Reselection one application program opens predetermined file in multiple application programs, and process is same as described above, herein no longer It repeats.
The embodiment of the present application parses the file of predetermined file in the case where the first application program fail to open predetermined file Type, and be determined to open the second application program of predetermined file according to file type, and then open by second using sequence Open predetermined file.The embodiment of the present application whole process does not need user and carries out additional operation, and system background automatic running guarantees User can be turned on when looking on the bright side of things and opening predetermined file by corresponding application program, and have phase with predetermined file When default application with the file of file type is also the first application program, can normally-open this document type institute There are file, better user experience.
The application 3rd embodiment provides a kind of method of file opening, and the process of this method is as shown in figure 5, include step Rapid S501 to S508:
Whether S501, the first application program of detection have been switched on predetermined file, wherein the first application program is to open to make a reservation for The default application of file.
It detects before whether the first application program have been switched on predetermined file, needs the behaviour in response to opening predetermined file Make, determines corresponding first application program of predetermined file.
First application program can be any application, for example, the application opened the application program of picture, play audio Program, the application program for playing video etc..
Since the first application program is to open the default application of predetermined file, i.e., when attempting to open predetermined file, The first application program can be jumped directly to, and predetermined file is opened by the first application program.For example, if user wants to beat The predetermined file opened is music, then the first application program is to play the application program of music.If once the first application Occurs exception when program starts, then the corresponding a certain class file of the application program can not just be opened, and influence making for entire terminal With bringing poor experience to user.
In order to guarantee that predetermined file can be opened normally, the embodiment of the present application first detects whether the first application program has been opened Open predetermined file.If opening predetermined file, illustrate that the first application program does not break down, if be not turned on predetermined File then illustrates that failure occurs at this time in the first application program, fail to open predetermined file.
When whether the first application program of detection has been switched on predetermined file, as long as usually application program opens, one Surely predetermined file can be opened, therefore, specifically can detecte whether the first application program successfully starts up.If the application success opens It is dynamic, it may be considered that predetermined file is turned on.
S502, it is in the case where the first application program does not open predetermined file, being currently up for the first application program is secondary Number plus one.
S503, the first application program of detection are currently up whether number reaches preset times threshold value.If it is, executing Otherwise S504 in the case where not up to preset times threshold value, returns to S501.
Above-mentioned preset times threshold value can be rule of thumb arranged, such as user operates continuously 3 times not yet under normal conditions Predetermined file is opened, bad user experience may be caused, then can be set preset times threshold value to 2 times.
S504 parses the file type of predetermined file in the case where reaching preset times threshold value.
In order to be better understood by the demand of user, in the case where being currently up number and reaching preset times threshold value, may be used also To send prompting frame on user interface, to allow user to choose whether to switch to another application program unlatching predetermined file. If user selects to open another application program, then parses the file type of predetermined file.If user does not select to open another One application program, then do not parse the type of predetermined file actively, but wait user manually select its think it is to be used using journey Sequence.
S505 is determined to open the second application program of predetermined file according to file type.
Since the first application failure leads to not open predetermined file, then any and predetermined file same type text Part may all be fail to open.
In order to bring good usage experience to user, the embodiment of the present application parses the file type of predetermined file, passes through Its file type is determined to open the other application program of predetermined file.If there is multiple texts that can open predetermined file The application program of part type, can be random select an application program as the second application program in multiple application programs, It is of course also possible to select a user usually most commonly used application program, in above-mentioned multiple application programs so as to more The use habit being close to the users.
It is, of course, also possible to a determining application most with the first application program common ground in above-mentioned multiple application programs Program, using application program as the second application program.Second application program due to the common ground with the first application program most It is more, can preferably it guarantee after predetermined file is opened, user can more use the similar functions to the first application program.
S506 is detected and be whether there is the second application program in terminal.If it is, executing S507, S508 is otherwise executed.
S507 opens predetermined file by the second application program there are the second application program.
After determining the second application program, so that it may the second application program be called to open predetermined file.
Certainly, it if the second application program does not also open predetermined file successfully, can also continue in above-mentioned determination Reselection one application program opens predetermined file in multiple application programs, and process is same as described above, herein no longer It repeats.
S508 jumps to the downloading interface of the second application program in the case where the second application program is not present.
If not having that the other application program of predetermined file can be opened in terminal, user will be unable to open predetermined file, User experience is poor.In order to allow user that can open the predetermined file, the embodiment of the present application is in the file that predetermined file has been determined After type, it will be able to know which application program can open the predetermined file, these application programs can be the second application Program.In the case where the second application program is not present, the downloading interface of the second application program is jumped to guide user to carry out Downloading, and then after the download is complete, user can be used the second application program and open predetermined file, and experience is preferable.
The embodiment of the present application parses the file of predetermined file in the case where the first application program fail to open predetermined file Type, and be determined to open the second application program of predetermined file according to file type, and then open by second using sequence Open predetermined file.The embodiment of the present application whole process does not need user and carries out additional operation, and system background automatic running guarantees User can be turned on when looking on the bright side of things and opening predetermined file by corresponding application program, and have phase with predetermined file When default application with the file of file type is also the first application program, can normally-open this document type institute There are file, better user experience.
The application fourth embodiment provides a kind of device of file opening, and the device of file opening includes: memory, place The computer program managing device and storage on a memory and can running on a processor;It is real when computer program is executed by processor It is existing, realize following steps S11 to S13:
Whether S11, the first application program of detection have been switched on predetermined file, wherein the first application program is to open to make a reservation for The default application of file.
First application program can be any application, for example, the application opened the application program of picture, play audio Program, the application program for playing video etc..
Since the first application program is to open the default application of predetermined file, i.e., when attempting to open predetermined file, The first application program can be jumped directly to, and predetermined file is opened by the first application program.For example, if user wants to beat The predetermined file opened is music, then the first application program is to play the application program of music.If once the first application Occurs exception when program starts, then the corresponding a certain class file of the application program can not just be opened, and influence making for entire terminal With bringing poor experience to user.
In order to guarantee that predetermined file can be opened normally, the embodiment of the present application first detects whether the first application program has been opened Open predetermined file.If opening predetermined file, illustrate that the first application program does not break down, if be not turned on predetermined File then illustrates that failure occurs at this time in the first application program, fail to open predetermined file.
S12 parses the file type of predetermined file, and root in the case where the first application program does not open predetermined file It is determined to open the second application program of predetermined file according to file type.
Since the first application failure leads to not open predetermined file, then any and predetermined file same type text Part may all be fail to open.
In order to bring good usage experience to user, the embodiment of the present application parses the file type of predetermined file, passes through Its file type is determined to open the other application program of predetermined file.If there is multiple texts that can open predetermined file The application program of part type, can be random select an application program as the second application program in multiple application programs, It is of course also possible to select a user usually most commonly used application program, in above-mentioned multiple application programs so as to more The use habit being close to the users.
It is, of course, also possible to a determining application most with the first application program common ground in above-mentioned multiple application programs Program, using application program as the second application program.Second application program due to the common ground with the first application program most It is more, can preferably it guarantee after predetermined file is opened, user can more use the similar functions to the first application program.
S13 opens predetermined file by the second application program.
After determining the second application program, so that it may the second application program be called to open predetermined file.
Certainly, it if the second application program does not also open predetermined file successfully, can also continue in above-mentioned determination Reselection one application program opens predetermined file in multiple application programs, and process is same as described above, herein no longer It repeats.
When whether the first application program of detection has been switched on predetermined file, as long as usually application program opens, one Surely predetermined file can be opened.Based on above-mentioned thinking, whether computer program is executed by processor the first application program of detection When opening the step of predetermined file, be implemented as follows step: whether the first application program of detection successfully starts up.If the application It successfully starts up, it may be considered that predetermined file is turned on.
When computer program is executed by processor the step of the file type of parsing predetermined file, it is implemented as follows step It is rapid: the number that is currently up of the first application program is added one;That detects the first application program is currently up whether number reaches pre- If frequency threshold value;In the case where reaching preset times threshold value, the file type of predetermined file is parsed.
Above-mentioned preset times threshold value can be rule of thumb arranged, such as user operates continuously 3 times not yet under normal conditions Predetermined file is opened, bad user experience may be caused, then can be set preset times threshold value to 2 times.
In order to be better understood by the demand of user, in the case where being currently up number and reaching preset times threshold value, may be used also To send prompting frame on user interface, to allow user to choose whether to switch to another application program unlatching predetermined file. If user selects to open another application program, then parses the file type of predetermined file.If user does not select to open another One application program, then do not parse the type of predetermined file actively, but wait user manually select its think it is to be used using journey Sequence.
Computer program is executed by processor the first application program of detection and is currently up whether number reaches preset times After the step of threshold value, following steps are also realized: in the case where not up to preset times threshold value, continuing to test first using journey Whether sequence successfully starts up.
When computer program is executed by processor the step by the second application program unlatching predetermined file, specific implementation is such as Lower step: it whether there is the second application program in detection terminal;There are the second application program, pass through the second application Program opens predetermined file;In the case where the second application program is not present, the downloading interface of the second application program is jumped to.
If not having that the other application program of predetermined file can be opened in terminal, user will be unable to open predetermined file, User experience is poor.In order to allow user that can open the predetermined file, the embodiment of the present application is in the file that predetermined file has been determined After type, it will be able to know which application program can open the predetermined file, these application programs can be the second application Program.In the case where the second application program is not present, the downloading interface of the second application program is jumped to guide user to carry out Downloading, and then after the download is complete, user can be used the second application program and open predetermined file, and experience is preferable.
Computer program was executed by processor before the step of whether the first application program of detection has been switched on predetermined file, Also realize following steps: the operation in response to opening predetermined file determines corresponding first application program of predetermined file.
The embodiment of the present application parses the file of predetermined file in the case where the first application program fail to open predetermined file Type, and be determined to open the second application program of predetermined file according to file type, and then open by second using sequence Open predetermined file.The embodiment of the present application whole process does not need user and carries out additional operation, and system background automatic running guarantees User can be turned on when looking on the bright side of things and opening predetermined file by corresponding application program, and have phase with predetermined file When default application with the file of file type is also the first application program, can normally-open this document type institute There are file, better user experience.
The application sixth embodiment provides a kind of computer readable storage medium, stores on computer readable storage medium There is the program of file opening, following step S21 to S23 realized when the program of file opening is executed by processor:
Whether S21, the first application program of detection have been switched on predetermined file, wherein the first application program is to open to make a reservation for The default application of file.
First application program can be any application, for example, the application opened the application program of picture, play audio Program, the application program for playing video etc..
Since the first application program is to open the default application of predetermined file, i.e., when attempting to open predetermined file, The first application program can be jumped directly to, and predetermined file is opened by the first application program.For example, if user wants to beat The predetermined file opened is music, then the first application program is to play the application program of music.If once the first application Occurs exception when program starts, then the corresponding a certain class file of the application program can not just be opened, and influence making for entire terminal With bringing poor experience to user.
In order to guarantee that predetermined file can be opened normally, the embodiment of the present application first detects whether the first application program has been opened Open predetermined file.If opening predetermined file, illustrate that the first application program does not break down, if be not turned on predetermined File then illustrates that failure occurs at this time in the first application program, fail to open predetermined file.
S22 parses the file type of predetermined file, and root in the case where the first application program does not open predetermined file It is determined to open the second application program of predetermined file according to file type.
Since the first application failure leads to not open predetermined file, then any and predetermined file same type text Part may all be fail to open.
In order to bring good usage experience to user, the embodiment of the present application parses the file type of predetermined file, passes through Its file type is determined to open the other application program of predetermined file.If there is multiple texts that can open predetermined file The application program of part type, can be random select an application program as the second application program in multiple application programs, It is of course also possible to select a user usually most commonly used application program, in above-mentioned multiple application programs so as to more The use habit being close to the users.
It is, of course, also possible to a determining application most with the first application program common ground in above-mentioned multiple application programs Program, using application program as the second application program.Second application program due to the common ground with the first application program most It is more, can preferably it guarantee after predetermined file is opened, user can more use the similar functions to the first application program.
S23 opens predetermined file by the second application program.
After determining the second application program, so that it may the second application program be called to open predetermined file.
Certainly, it if the second application program does not also open predetermined file successfully, can also continue in above-mentioned determination Reselection one application program opens predetermined file in multiple application programs, and process is same as described above, herein no longer It repeats.
When whether the first application program of detection has been switched on predetermined file, as long as usually application program opens, one Surely predetermined file can be opened.Based on above-mentioned thinking, whether the program of operating terminal is executed by processor the first application program of detection When having been switched on the program of predetermined file, specifically execute following steps: whether the first application program of detection successfully starts up.If should Application success starting, it may be considered that predetermined file is turned on.
When the program of operating terminal is executed by processor the program of the file type of parsing predetermined file, specific execution is as follows Step: the number that is currently up of the first application program is added one;That detects the first application program is currently up whether number reaches Preset times threshold value;In the case where reaching preset times threshold value, the file type of predetermined file is parsed.
Above-mentioned preset times threshold value can be rule of thumb arranged, such as user operates continuously 3 times not yet under normal conditions Predetermined file is opened, bad user experience may be caused, then can be set preset times threshold value to 2 times.
In order to be better understood by the demand of user, in the case where being currently up number and reaching preset times threshold value, may be used also To send prompting frame on user interface, to allow user to choose whether to switch to another application program unlatching predetermined file. If user selects to open another application program, then parses the file type of predetermined file.If user does not select to open another One application program, then do not parse the type of predetermined file actively, but wait user manually select its think it is to be used using journey Sequence.
The program of operating terminal is executed by processor the first application program of detection and is currently up whether number reaches default It after the program of frequency threshold value, also executes the following steps: in the case where not up to preset times threshold value, continues to test first and answer Whether successfully started up with program.
When the program of operating terminal is executed by processor the program by the second application program unlatching predetermined file, specifically hold Row following steps: it whether there is the second application program in detection terminal;There are the second application program, pass through second Application program opens predetermined file;In the case where the second application program is not present, downloading circle of the second application program is jumped to Face.
If not having that the other application program of predetermined file can be opened in terminal, user will be unable to open predetermined file, User experience is poor.In order to allow user that can open the predetermined file, the embodiment of the present application is in the file that predetermined file has been determined After type, it will be able to know which application program can open the predetermined file, these application programs can be the second application Program.In the case where the second application program is not present, the downloading interface of the second application program is jumped to guide user to carry out Downloading, and then after the download is complete, user can be used the second application program and open predetermined file, and experience is preferable.
The program of operating terminal is executed by processor the program whether the first application program of detection has been switched on predetermined file Before, the operation in response to opening predetermined file is also executed the following steps:, determines corresponding first application program of predetermined file.
The embodiment of the present application parses the file of predetermined file in the case where the first application program fail to open predetermined file Type, and be determined to open the second application program of predetermined file according to file type, and then open by second using sequence Open predetermined file.The embodiment of the present application whole process does not need user and carries out additional operation, and system background automatic running guarantees User can be turned on when looking on the bright side of things and opening predetermined file by corresponding application program, and have phase with predetermined file When default application with the file of file type is also the first application program, can normally-open this document type institute There are file, better user experience.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
Above-mentioned the embodiment of the present application serial number is for illustration only, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, the technical solution of the application substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute each embodiment of the application method.
Embodiments herein is described above in conjunction with attached drawing, but the application be not limited to it is above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the enlightenment of the application, when not departing from the application objective and scope of the claimed protection, can also it make very much Form, these are belonged within the protection of the application.

Claims (10)

1. a kind of method of file opening characterized by comprising
Detect whether the first application program has been switched on predetermined file, wherein first application program is to open described make a reservation for The default application of file;
In the case where first application program does not open the predetermined file, the file type of the predetermined file is parsed, And it is determined to open the second application program of the predetermined file according to the file type;
The predetermined file is opened by second application program.
2. the method according to claim 1, wherein whether the first application program of detection has been switched on predetermined text Part, comprising:
Detect whether first application program successfully starts up.
3. according to the method described in claim 2, it is characterized in that, parsing the file type of the predetermined file, comprising:
The number that is currently up of first application program is added one;
That detects first application program is currently up whether number reaches preset times threshold value;
In the case where reaching the preset times threshold value, the file type of the predetermined file is parsed.
4. according to the method described in claim 3, it is characterized by further comprising:
In the case where the not up to preset times threshold value, continue to test whether first application program successfully starts up.
5. the method according to claim 1, wherein opening the predetermined text by second application program Part, comprising:
It detects and whether there is second application program in terminal;
There are second application program, the predetermined file is opened by second application program.
6. according to the method described in claim 5, it is characterized by further comprising:
In the case where second application program is not present, the downloading interface of second application program is jumped to.
7. the method according to claim 1, wherein being determined to open according to the file type described predetermined Second application program of file, comprising:
It is determined to open multiple application programs of the predetermined file according to the file type;
A determining application program most with the first application program common ground in the multiple application program, by institute Application program is stated as second application program.
8. method according to any one of claim 1 to 7, which is characterized in that whether the first application program of detection Before unlatching predetermined file, further includes:
In response to opening the operation of the predetermined file, corresponding first application program of the predetermined file is determined.
9. a kind of device of file opening, which is characterized in that the device of the file opening includes:
Memory, processor and it is stored in the computer program that can be run on the memory and on the processor;
The step such as method described in any item of the claim 1 to 8 is realized when the computer program is executed by the processor Suddenly.
10. a kind of computer readable storage medium, which is characterized in that be stored with unlatching text on the computer readable storage medium Such as unlatching described in any item of the claim 1 to 8 is realized when the program of the program of part, the file opening is executed by processor The step of method of file.
CN201910305305.6A 2019-04-16 2019-04-16 A kind of method, apparatus and computer readable storage medium of file opening Pending CN110175052A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910305305.6A CN110175052A (en) 2019-04-16 2019-04-16 A kind of method, apparatus and computer readable storage medium of file opening

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910305305.6A CN110175052A (en) 2019-04-16 2019-04-16 A kind of method, apparatus and computer readable storage medium of file opening

Publications (1)

Publication Number Publication Date
CN110175052A true CN110175052A (en) 2019-08-27

Family

ID=67689976

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910305305.6A Pending CN110175052A (en) 2019-04-16 2019-04-16 A kind of method, apparatus and computer readable storage medium of file opening

Country Status (1)

Country Link
CN (1) CN110175052A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111124202A (en) * 2019-12-06 2020-05-08 维沃移动通信有限公司 File opening method and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111124202A (en) * 2019-12-06 2020-05-08 维沃移动通信有限公司 File opening method and electronic equipment
CN111124202B (en) * 2019-12-06 2021-04-23 维沃移动通信有限公司 File opening method and electronic equipment

Similar Documents

Publication Publication Date Title
CN109462692A (en) Split screen display available operating method, mobile terminal and computer readable storage medium
CN108536481A (en) A kind of application program launching method, mobile terminal and computer storage media
CN108768775A (en) Information processing method, electronic equipment and computer storage media
CN109982402A (en) Terminal voice call method, mobile terminal and computer readable storage medium
CN108833690A (en) authority control method, terminal and computer readable storage medium
CN109005288A (en) Call processing method, double-sided screen terminal and computer readable storage medium
CN109462700A (en) A kind of call method, mobile terminal and computer readable storage medium
CN108958936A (en) Application programe switch-over method, mobile terminal and computer readable storage medium
CN108965602A (en) Application program display methods, mobile terminal and computer readable storage medium
CN108879117A (en) Mobile terminal and its antenna structure
CN108762631A (en) A kind of method for controlling mobile terminal, mobile terminal and computer readable storage medium
CN108418966A (en) Message prompt method, mobile terminal and computer readable storage medium
CN110175052A (en) A kind of method, apparatus and computer readable storage medium of file opening
CN110187808A (en) Dynamic wallpaper setting method, device and computer readable storage medium
CN110069291A (en) A kind of display control method, mobile terminal and computer readable storage medium
CN109669618A (en) Interface control method, mobile terminal and computer readable storage medium
CN109408184A (en) A kind of icon processing method, mobile terminal and computer storage medium
CN110012155A (en) A kind of call recording method, terminal and computer readable storage medium
CN109407957A (en) Screen touch control method, terminal and computer readable storage medium
CN108536490A (en) A kind of application program launching method, mobile terminal and computer storage media
CN108829302A (en) A kind of interaction regulation method, equipment and computer readable storage medium
CN108304302A (en) A kind of interface merging method, equipment and computer readable storage medium
CN110058762A (en) A kind of application starting method, terminal and computer readable storage medium
CN110069680A (en) Search processing method, mobile terminal and computer readable storage medium
CN109471677A (en) A kind of quick start method, mobile terminal and computer 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