CN108874521A - A kind of photographing program application method, device, terminal and computer storage medium - Google Patents

A kind of photographing program application method, device, terminal and computer storage medium Download PDF

Info

Publication number
CN108874521A
CN108874521A CN201810610191.1A CN201810610191A CN108874521A CN 108874521 A CN108874521 A CN 108874521A CN 201810610191 A CN201810610191 A CN 201810610191A CN 108874521 A CN108874521 A CN 108874521A
Authority
CN
China
Prior art keywords
photographing program
program
disabling
photographing
museum
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.)
Withdrawn
Application number
CN201810610191.1A
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201810610191.1A priority Critical patent/CN108874521A/en
Publication of CN108874521A publication Critical patent/CN108874521A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • 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/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Studio Devices (AREA)

Abstract

The present invention is suitable for software field, provides a kind of photographing program application method, device, terminal and computer storage medium, including:If current location is in museum's coordinate range, the broadcast message of disabling photographing program is issued;When listening to the broadcast message of disabling photographing program, identifier list is obtained, identifier list includes the identifier of photographing program;The packet name for obtaining application program, is calculated using packet name of the preset SHA1 function to application program, generates the corresponding identifier of application program;The identifier of generation is matched, successful match with the identifier of photographing program, is photographing program with regard to recognition application;If the state of photographing program is operating status, the process that interface forceStopPackage pressure stops photographing program of hiding just is called;If the state of photographing program is not operating status, photographing program icon is just obtained, sets 100% for the display transparency of photographing program icon.The present invention can disable automatically photographing program in museum's coordinate range.

Description

A kind of photographing program application method, device, terminal and computer storage medium
Technical field
The invention belongs to software field more particularly to a kind of photographing program application method, device, terminal and computer storages Medium.
Background technique
As the improvement of people's living standards, more and more people are by capital investment more than needed to stock market.Stock is A kind of document of title of joint-stock company's distribution, can transfer the possession of, buy and sell.In general, stock invester is flat by dedicated photographing program Platform, such as great wisdom or straight flush realize stock exchange.In unit, part employee indulges stock, can not extricate oneself, so that The case where undisciplined speculation in stocks of employee's office hours is discharged from by unit repeated.
However, current photographing program application method, it is difficult to which in museum, coordinate range disables photographing program, is unfavorable for controlling The application range of photographing program processed.The reason is that museum's coordinate range no photo, and current photographing program application side Method is all that will not distinguish museum's coordinate range and non-museum's coordinate range towards whole regions, faces museum's coordinate Range can also operate normally photographing program, be unfavorable for controlling the application range of photographing program in this way.
Summary of the invention
In view of this, the embodiment of the invention provides the storages of a kind of photographing program application method, device, terminal and computer Medium, to solve current photographing program application method, it is difficult to which coordinate range disables photographing program in museum, is unfavorable for controlling The problem of application range of photographing program.
The first aspect of the embodiment of the present invention provides a kind of photographing program application method, including:
Current location is obtained, by the data access interface of wireless network connection museum website, from the data access Museum's coordinate range is obtained in interface just passes through operation if the current location is in museum's coordinate range System issues the broadcast message of disabling photographing program;
The broadcast message for monitoring the disabling photographing program in real time using preset listening thread, when listening to the disabling When the broadcast message of photographing program, identifier list acquisition request is sent to predetermined server, receives predetermined server according to institute The identifier list that identifier list acquisition request issues is stated, the identifier list includes the identifier of photographing program;
Using the acquisition installation kit function getInstalledPackages of the operating system, mounted application is obtained The package informatin of program obtains the packet name of the application program in the package informatin, is answered using preset SHA1 function described It is calculated with the packet name of program, generates the corresponding identifier of the application program;
The identifier of generation is matched with the identifier of the photographing program, if the two successful match, is just identified The application program is the photographing program;
Obtain the state of the photographing program;
If the state of the photographing program is operating status, hiding interface forceStopPackage pressure is just called to stop The only process of the photographing program makes the state halted state of the photographing program;
If the state of the photographing program is not operating status, the corresponding photographing program figure of the photographing program is just obtained Mark, sets 100% for the display transparency of the photographing program icon, to hide the photographing program icon, prevents described Photographing program icon is clicked.
The second aspect of the embodiment of the present invention provides a kind of photographing program application apparatus, including:
Broadcast module, for obtaining current location, by the data access interface of wireless network connection museum website, from Museum's coordinate range is obtained in the data access interface, if the current location is in museum's coordinate range It is interior, the broadcast message of disabling photographing program is just issued by operating system;
Receiving module, for monitoring the broadcast message of the disabling photographing program in real time using preset listening thread, when When listening to the broadcast message of the disabling photographing program, identifier list acquisition request is sent to predetermined server, is received pre- If the identifier list that server is issued according to the identifier list acquisition request, the identifier list include photographing program Identifier;
Generation module is obtained for the acquisition installation kit function getInstalledPackages using the operating system The package informatin for taking mounted application program obtains the packet name of the application program in the package informatin, and utilization is preset SHA1 function calculates the packet name of the application program, generates the corresponding identifier of the application program;
Matching module, for matching the identifier of generation with the identifier of the photographing program, if the two With success, just identify that the application program is the photographing program;
Module is obtained, for obtaining the state of the photographing program;
Stopping modular just calls if the state for the photographing program is operating status and hides interface ForceStopPackage forces to stop the process of the photographing program, makes the state halted state of the photographing program;
Hidden module just obtains the photographing program pair if the state for the photographing program is not operating status The photographing program icon answered sets 100% for the display transparency of the photographing program icon, to hide the photographing program Icon prevents the photographing program icon to be clicked.
The third aspect of the embodiment of the present invention provides a kind of terminal, including memory, processor and is stored in described In memory and the computer program that can run on the processor, the processor are realized when executing the computer program The step of above method.
The fourth aspect of the embodiment of the present invention provides a kind of computer storage medium, the computer storage medium storage The step of having computer program, the above method is realized when the computer program is executed by processor.
Existing beneficial effect is the embodiment of the present invention compared with prior art:
By the data access interface of wireless network connection museum website, natural science is obtained from the data access interface Shop coordinate range just issues disabling by operating system and claps if the current location is in museum's coordinate range The broadcast message of program is taken the photograph, if the state of photographing program is operating status, just calls and hides interface forceStopPackage The process for forcing the stopping photographing program, is able to satisfy the state halted state of the photographing program therefore in museum Coordinate range disables the demand of photographing program, is conducive to the disabling efficiency for improving photographing program.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is the implementation flow chart of photographing program application method provided in an embodiment of the present invention;
Fig. 2 is the structural block diagram of photographing program application apparatus provided in an embodiment of the present invention;
Fig. 3 is the schematic diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity The detailed description of road and method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " instruction is described special Sign, entirety, step, operation, the presence of element and/or component, but be not precluded one or more of the other feature, entirety, step, Operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this description of the invention merely for the sake of description specific embodiment And be not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in description of the invention and the appended claims is Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt Be construed to " when ... " or " once " or " in response to determination " or " in response to detecting ".Similarly, phrase " if it is determined that " or " if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
Embodiment one
It is the implementation flow chart of photographing program application method provided in an embodiment of the present invention with reference to Fig. 1, Fig. 1, this method is answered For being equipped with the mobile terminal of photographing program, photographing program application method as shown in Figure 1 be may comprise steps of:
S101 obtains current location, by the data access interface of wireless network connection museum website, from the data Museum's coordinate range is obtained in access interface just to pass through if the current location is in museum's coordinate range Operating system issues the broadcast message of disabling photographing program;
Wherein, acquisition for mobile terminal current location, by the data access interface of wireless network connection museum website, from In the data access interface, museum's coordinate range in city, such beneficial effect are where obtaining current location:It obtains Speed is fast, while being conducive to reduce museum's coordinate range.
Wherein, operating system is Android system.
Wherein, before S101, the photographing program application method further includes:
In the memory node of museum website, the corresponding relationship in city and museum's coordinate range is stored, so as to subsequent By the data access interface of wireless network connection museum website, by the data access interface, in museum website In memory node, museum's coordinate range in city where obtaining current location.
S102 monitors the broadcast message of the disabling photographing program using preset listening thread, when listening in real time When stating the broadcast message of disabling photographing program, identifier list acquisition request is sent to predetermined server, receives predetermined server According to the identifier list that the identifier list acquisition request issues, the identifier list includes the mark of photographing program Symbol;
Wherein, before S101, the photographing program application method further includes:
Identifier list is stored in predetermined server, is asked so as to subsequent to predetermined server transmission identifier list acquisition It asks, receives the identifier list that predetermined server is issued according to the identifier list acquisition request.
The step of identifier list is stored in predetermined server, and in the memory node of museum website, store city The step of corresponding relationship of city and museum's coordinate range, the execution sequencing of the two is with no restrictions.
Before and after the step of storing identifier list in predetermined server, the storage section in museum website can be performed In point, the step of storing the corresponding relationship of city and museum's coordinate range.
S103, using the acquisition installation kit function getInstalledPackages of the operating system, acquisition has been installed The package informatin of application program obtain the packet name of the application program in the package informatin, utilize preset SHA1 function pair The packet name of the application program is calculated, and the corresponding identifier of the application program is generated;
S104 matches the identifier of generation with the identifier of the photographing program, if the two successful match, just Identify that the application program is the photographing program;
S105 obtains the state of the photographing program;
Wherein, application program function getInstalledApplications is installed by obtaining, obtains the operation system Mounted Application Status list obtains the state of the photographing program in the Application Status list in system.
S106 is just called if the state of the photographing program is operating status and is hidden interface forceStopPackage The process for forcing the stopping photographing program, makes the state halted state of the photographing program;
S107 just obtains the corresponding shooting of the photographing program if the state of the photographing program is not operating status Program icon sets 100% for the display transparency of the photographing program icon, to hide the photographing program icon, prevents Only the photographing program icon is clicked.
Wherein, preset SHA1 function is:The function of Secure Hash Algorithm (Secure Hash Algorithm, SHA1).
In embodiments of the present invention, by the data access interface of wireless network connection museum website, from the data Museum's coordinate range is obtained in access interface just to pass through if the current location is in museum's coordinate range Operating system issues the broadcast message of disabling photographing program, if the state of photographing program is operating status, just calling is hidden and connect Mouth forceStopPackage forces to stop the process of the photographing program, makes the state halted state of the photographing program, Therefore, it is able to satisfy the demand in museum's coordinate range disabling photographing program, is conducive to the disabling efficiency for improving photographing program.
Embodiment two
The embodiment of the present invention describes the implementation process for issuing the broadcast message of disabling photographing program, and details are as follows:
Using GPS positioning mode or Beidou station-keeping mode, current location is positioned, position coordinates are obtained;
By the data access interface of wireless network connection museum website, natural science is obtained from the data access interface Shop coordinate range, judges whether the position coordinates are in museum's coordinate range;
If whether the position coordinates are in museum's coordinate range, disabling is just issued by operating system and is clapped Take the photograph the broadcast message of program.
In embodiments of the present invention, by the data access interface of wireless network connection museum website, from the data Museum's coordinate range is obtained in access interface just to pass through if the current location is in museum's coordinate range Operating system issues the broadcast message of disabling photographing program, if the state of photographing program is operating status, just calling is hidden and connect Mouth forceStopPackage forces to stop the process of the photographing program, makes the state halted state of the photographing program, Therefore, it is able to satisfy the demand in museum's coordinate range disabling photographing program, is conducive to the disabling efficiency for improving photographing program.
Embodiment three
The embodiment of the present invention describes the implementation process for obtaining residual power percentage, and details are as follows:
If whether the position coordinates are in museum's coordinate range, residual power percentage is just obtained;
If the residual power percentage is greater than 3%, just disappeared by the broadcast that operating system issues disabling photographing program Breath.
If the residual power percentage is not more than 3%, just the wide of disabling photographing program is not issued by operating system Message is broadcast, to reduce the data volume of broadcast.
In embodiments of the present invention, if the residual power percentage is greater than 3%, illustrate electricity abundance, shooting can be played Program, the broadcast message of disabling photographing program is issued by operating system, in this way, further increasing the disabling effect of photographing program Rate.
Example IV
The embodiment of the present invention describes the implementation process for receiving photographing program disabling instruction, and details are as follows:
If the residual power percentage is greater than 3%, just by WIFI communication pattern, detect whether that receiving outside sets The photographing program that preparation is sent disables instruction;
If receiving the photographing program disabling instruction of external equipment transmission, disabling shooting journey is just issued by operating system The broadcast message of sequence.
In embodiments of the present invention, if receiving the photographing program disabling instruction of external equipment transmission, illustrate that outside is set Standby initiative disables photographing program, the broadcast message of disabling photographing program is issued by operating system, in this way, shooting can be improved The accuracy rate of program disabling.
Embodiment five
The embodiment of the present invention describes the implementation process for obtaining identifier list, and details are as follows:
The broadcast message for monitoring the disabling photographing program in real time using preset listening thread, when listening to the disabling When the broadcast message of photographing program, identifier list acquisition request is sent to predetermined server using the communication pattern of setting, is connect The identifier list that predetermined server is issued according to the identifier list acquisition request is received, the identifier list includes shooting The identifier of program, the communication pattern of the setting include at least one of 4G communication pattern, 5G communication pattern.
Predetermined server is stored with identifier list, and the identifier list includes the identifier of photographing program.
In embodiments of the present invention, identifier list is obtained, when the identifier of application program and the identifier of photographing program Successful match, recognition application is photographing program, in this way, photographing program can be quickly recognized.
Embodiment six
It is photographing program provided in an embodiment of the present invention with reference to Fig. 2, Fig. 2 corresponding to method described in foregoing embodiments one The structural block diagram of application apparatus is applied to terminal, and terminal includes but is not limited to mobile phone, computer.For purposes of illustration only, only showing Part related to the present embodiment is gone out.For ease of description, only the parts related to this embodiment are shown.
Referring to Fig. 2, which includes:
Broadcast module 21, for obtaining current location, by the data access interface of wireless network connection museum website, Museum's coordinate range is obtained from the data access interface, if the current location is in museum's coordinate range It is interior, the broadcast message of disabling photographing program is just issued by operating system;
Receiving module 22, for monitoring the broadcast message of the disabling photographing program in real time using preset listening thread, When listening to the broadcast message of the disabling photographing program, identifier list acquisition request is sent to predetermined server, is received The identifier list that predetermined server is issued according to the identifier list acquisition request, the identifier list include shooting journey The identifier of sequence;
Generation module 23, for utilizing the acquisition installation kit function getInstalledPackages of the operating system, The package informatin for obtaining mounted application program obtains the packet name of the application program in the package informatin, and utilization is preset SHA1 function calculates the packet name of the application program, generates the corresponding identifier of the application program;
Matching module 24, for matching the identifier of generation with the identifier of the photographing program, if the two Successful match just identifies that the application program is the photographing program;
Module 25 is obtained, for obtaining the state of the photographing program;
Stopping modular 26 just calls if the state for the photographing program is operating status and hides interface ForceStopPackage forces to stop the process of the photographing program, makes the state halted state of the photographing program;
Hidden module 27 just obtains the photographing program if the state for the photographing program is not operating status Corresponding photographing program icon sets 100% for the display transparency of the photographing program icon, to hide the shooting journey Sequence icon prevents the photographing program icon to be clicked.
As a kind of implementation of the present embodiment, in the photographing program application apparatus, the broadcast module is specific to wrap It includes:
Positioning unit positions current location, obtains in place for using GPS positioning mode or Beidou station-keeping mode Set coordinate;
Judging unit, for passing through the data access interface of wireless network connection museum website, from the data access Museum's coordinate range is obtained in interface, judges whether the position coordinates are in museum's coordinate range;
Radio unit just passes through operation if whether be in museum's coordinate range for the position coordinates System issues the broadcast message of disabling photographing program;
Wherein, the radio unit, specifically includes:
Subelement is obtained, if whether be in museum's coordinate range for the position coordinates, is just obtained surplus Remaining electricity percentage;
Subelement is broadcasted, if being greater than 3% for the residual power percentage, disabling is just issued by operating system and is clapped Take the photograph the broadcast message of program;
Wherein, the broadcast subelement is specifically used for:
If the residual power percentage is greater than 3%, just by WIFI communication pattern, detect whether that receiving outside sets The photographing program that preparation is sent disables instruction;
If receiving the photographing program disabling instruction of external equipment transmission, disabling shooting journey is just issued by operating system The broadcast message of sequence.
As a kind of implementation of the present embodiment, in the photographing program application apparatus, the receiving module is specific to use In:
The broadcast message for monitoring the disabling photographing program in real time using preset listening thread, when listening to the disabling When the broadcast message of photographing program, identifier list acquisition request is sent to predetermined server using the communication pattern of setting, is connect The identifier list that predetermined server is issued according to the identifier list acquisition request is received, the identifier list includes shooting The identifier of program, the communication pattern of the setting include at least one of 4G communication pattern, 5G communication pattern.
Embodiment seven
Fig. 3 is the schematic diagram of terminal provided in an embodiment of the present invention.As shown in figure 3, the terminal 3 of the embodiment includes:Place It manages device 30, memory 31 and is stored in the computer program that can be run in the memory 31 and on the processor 30 32, such as photographing program application program.The processor 30 realizes above-mentioned each shooting journey when executing the computer program 32 Step in sequence application method embodiment.
Illustratively, the computer program 32 can be divided into one or more module/units, one or more A module/unit is stored in the memory 31, and is executed by the processor 30, to complete the present invention.It is one Or multiple module/units can be the series of computation machine program instruction section that can complete specific function, the instruction segment is for retouching State implementation procedure of the computer program 32 in the terminal 3.
The terminal 3 can be desktop PC, notebook, palm PC and cloud server etc. and calculate equipment.Institute Stating terminal may include, but be not limited only to, processor 30, memory 31.
It will be understood by those skilled in the art that Fig. 3 is only the example of terminal 3, the not restriction of structure paired terminal 3 can To include components more more or fewer than diagram, or certain components or different components are combined, such as the terminal can also wrap Include input-output equipment, network access equipment, bus etc..
Alleged processor 30 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) or it is other programmable logic device, discrete gate or transistor logic, discrete Hardware component etc..General processor can be microprocessor or the processor is also possible to any conventional processor etc..
The memory 31 can be the internal storage unit of the terminal 3, such as the hard disk or memory of terminal 3.It is described Memory 31 is also possible to the External memory equipment of the terminal 3, such as the plug-in type hard disk being equipped in the terminal 3, intelligence Storage card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) Deng.Further, the memory 31 can also both include the internal storage unit of the terminal 3 or set including external storage It is standby.
The memory 31 is for other programs and data needed for storing the computer program and the terminal.Institute Stating memory 31 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing All or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also be with It is that each unit physically exists alone, can also be integrated in one unit with two or more units, above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
In addition, the specific name of each functional unit, module is also only for convenience of distinguishing each other, it is not limited to this Shen Protection scope please.The specific work process of unit in above system, module, can be with reference to the correspondence in preceding method embodiment Process, details are not described herein.
A kind of computer storage medium is provided in another embodiment of the invention, and the computer storage medium is stored with Computer program, the computer program are realized when being executed by processor in above-mentioned each photographing program application method embodiment Step.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
In embodiment provided by the present invention, it should be understood that disclosed device and method can pass through others Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the module or unit, Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be with In conjunction with or be desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed Mutual coupling or direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or logical of device or unit News connection can be electrical property, mechanical or other forms.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality Applying example, invention is explained in detail, those skilled in the art should understand that:It still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these modification or Replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all include Within protection scope of the present invention.

Claims (10)

1. a kind of photographing program application method, applied to the mobile terminal for being equipped with photographing program, which is characterized in that including:
Current location is obtained, by the data access interface of wireless network connection museum website, from the data access interface Middle acquisition museum coordinate range just passes through operating system if the current location is in museum's coordinate range Issue the broadcast message of disabling photographing program;
The broadcast message for being monitored the disabling photographing program in real time using preset listening thread, is shot when listening to the disabling When the broadcast message of program, identifier list acquisition request is sent to predetermined server, receives predetermined server according to the mark Know the identifier list that symbol list acquisition request issues, the identifier list includes the identifier of photographing program;
Using the acquisition installation kit function getInstalledPackages of the operating system, mounted application program is obtained Package informatin obtain the packet name of the application program in the package informatin, using preset SHA1 function to it is described apply journey The packet name of sequence is calculated, and the corresponding identifier of the application program is generated;
The identifier of generation is matched with the identifier of the photographing program, if the two successful match, just described in identification Application program is the photographing program;
Obtain the state of the photographing program;
If the state of the photographing program is operating status, hiding interface forceStopPackage is just called to force to stop institute The process for stating photographing program makes the state halted state of the photographing program;
If the state of the photographing program is not operating status, the corresponding photographing program icon of the photographing program is just obtained, 100% is set by the display transparency of the photographing program icon, to hide the photographing program icon, prevents the shooting Program icon is clicked.
2. the method as described in claim 1, which is characterized in that the acquisition current location passes through wireless network connection natural science The data access interface of shop website obtains museum's coordinate range, if the current location from the data access interface In museum's coordinate range, the broadcast message of disabling photographing program is just issued by operating system, specially:
Using GPS positioning mode or Beidou station-keeping mode, current location is positioned, position coordinates are obtained;
By the data access interface of wireless network connection museum website, museum is obtained from the data access interface and is sat Range is marked, judges whether the position coordinates are in museum's coordinate range;
If whether the position coordinates are in museum's coordinate range, disabling shooting journey is just issued by operating system The broadcast message of sequence.
3. method according to claim 2, which is characterized in that if whether the position coordinates are in the museum In coordinate range, the broadcast message of disabling photographing program is just issued by operating system, specially:
If whether the position coordinates are in museum's coordinate range, residual power percentage is just obtained;
If the residual power percentage is greater than 3%, the broadcast message of disabling photographing program is just issued by operating system.
4. method as claimed in claim 3, which is characterized in that if the residual power percentage is greater than 3%, just lead to The broadcast message that operating system issues disabling photographing program is crossed, specially:
If the residual power percentage is greater than 3%, just by WIFI communication pattern, detect whether to receive external equipment hair The photographing program disabling instruction sent;
If receiving the photographing program disabling instruction of external equipment transmission, disabling photographing program is just issued by operating system Broadcast message.
5. the method as described in claim 1, which is characterized in that described to monitor the disabling in real time using preset listening thread The broadcast message of photographing program sends to predetermined server and identifies when listening to the broadcast message of the disabling photographing program List acquisition request is accorded with, the identifier list that predetermined server is issued according to the identifier list acquisition request is received, it is described Identifier list includes the identifier of photographing program, specially:
The broadcast message for being monitored the disabling photographing program in real time using preset listening thread, is shot when listening to the disabling When the broadcast message of program, identifier list acquisition request is sent to predetermined server using the communication pattern of setting, is received pre- If the identifier list that server is issued according to the identifier list acquisition request, the identifier list include photographing program Identifier, the communication pattern of the setting includes at least one of 4G communication pattern, 5G communication pattern.
6. a kind of photographing program application apparatus, applied to the mobile terminal for being equipped with photographing program, which is characterized in that including:
Broadcast module, for obtaining current location, by the data access interface of wireless network connection museum website, from described Museum's coordinate range is obtained in data access interface, if the current location is in museum's coordinate range, just The broadcast message of disabling photographing program is issued by operating system;
Receiving module works as monitoring for monitoring the broadcast message of the disabling photographing program in real time using preset listening thread To the disabling photographing program broadcast message when, send identifier list acquisition request to predetermined server, receive default clothes The identifier list that business device is issued according to the identifier list acquisition request, the identifier list includes the mark of photographing program Know symbol;
Generation module obtains for the acquisition installation kit function getInstalledPackages using the operating system The package informatin of the application program of installation obtains the packet name of the application program in the package informatin, utilizes preset SHA1 letter Several packet names to the application program calculate, and generate the corresponding identifier of the application program;
Matching module, for the identifier of generation to be matched with the identifier of the photographing program, if the two matching at Function just identifies that the application program is the photographing program;
Module is obtained, for obtaining the state of the photographing program;
Stopping modular just calls if the state for the photographing program is operating status and hides interface ForceStopPackage forces to stop the process of the photographing program, makes the state halted state of the photographing program;
It is corresponding just to obtain the photographing program if the state for the photographing program is not operating status for hidden module Photographing program icon sets 100% for the display transparency of the photographing program icon, to hide the photographing program figure Mark, prevents the photographing program icon to be clicked.
7. device as claimed in claim 6, which is characterized in that the broadcast module specifically includes:
Positioning unit positions current location, obtains position seat for using GPS positioning mode or Beidou station-keeping mode Mark;
Judging unit, for passing through the data access interface of wireless network connection museum website, from the data access interface Middle acquisition museum coordinate range, judges whether the position coordinates are in museum's coordinate range;
Radio unit just passes through operating system if whether be in museum's coordinate range for the position coordinates Issue the broadcast message of disabling photographing program;
Wherein, the radio unit, specifically includes:
Subelement is obtained, if whether be in museum's coordinate range for the position coordinates, just obtains remaining electricity Measure percentage;
Subelement is broadcasted, if being greater than 3% for the residual power percentage, disabling shooting journey is just issued by operating system The broadcast message of sequence;
Wherein, the broadcast subelement is specifically used for:
If the residual power percentage is greater than 3%, just by WIFI communication pattern, detect whether to receive external equipment hair The photographing program disabling instruction sent;
If receiving the photographing program disabling instruction of external equipment transmission, disabling photographing program is just issued by operating system Broadcast message.
8. device as claimed in claim 6, which is characterized in that the receiving module is specifically used for:
The broadcast message for being monitored the disabling photographing program in real time using preset listening thread, is shot when listening to the disabling When the broadcast message of program, identifier list acquisition request is sent to predetermined server using the communication pattern of setting, is received pre- If the identifier list that server is issued according to the identifier list acquisition request, the identifier list include photographing program Identifier, the communication pattern of the setting includes at least one of 4G communication pattern, 5G communication pattern.
9. a kind of terminal, including memory, processor and storage can be run in the memory and on the processor Computer program, which is characterized in that the processor is realized when executing the computer program as claim 1 to 5 is any The step of item the method.
10. a kind of computer storage medium, the computer storage medium is stored with computer program, which is characterized in that described It is realized when computer program is executed by processor such as the step of any one of claim 1 to 5 the method.
CN201810610191.1A 2018-06-13 2018-06-13 A kind of photographing program application method, device, terminal and computer storage medium Withdrawn CN108874521A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810610191.1A CN108874521A (en) 2018-06-13 2018-06-13 A kind of photographing program application method, device, terminal and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810610191.1A CN108874521A (en) 2018-06-13 2018-06-13 A kind of photographing program application method, device, terminal and computer storage medium

Publications (1)

Publication Number Publication Date
CN108874521A true CN108874521A (en) 2018-11-23

Family

ID=64338237

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810610191.1A Withdrawn CN108874521A (en) 2018-06-13 2018-06-13 A kind of photographing program application method, device, terminal and computer storage medium

Country Status (1)

Country Link
CN (1) CN108874521A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110913126A (en) * 2019-10-31 2020-03-24 华为终端有限公司 Shooting range calculation method and device and related equipment
CN112509197A (en) * 2020-12-10 2021-03-16 深圳市天彦通信股份有限公司 Visitor management method and related device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110913126A (en) * 2019-10-31 2020-03-24 华为终端有限公司 Shooting range calculation method and device and related equipment
CN112509197A (en) * 2020-12-10 2021-03-16 深圳市天彦通信股份有限公司 Visitor management method and related device

Similar Documents

Publication Publication Date Title
CN113535343B (en) Computing power sharing method based on network scheduling and related product
CN110048879A (en) Micro services register method, device, electronic equipment and computer readable storage medium
CN108650667A (en) Terminal scheduling method and apparatus
CN104123265A (en) Method and system for communication among multiple kernels
CN108874521A (en) A kind of photographing program application method, device, terminal and computer storage medium
CN104021104A (en) Collaborative system based on dual-bus structure and communication method thereof
CN110266582A (en) A kind of information push method, system, server and communication terminal
CN109634747A (en) Resource capacity expansion method, apparatus, computer equipment and storage medium based on Saltstack
CN107817962A (en) A kind of long-range control method, device, control server and storage medium
CN104601448A (en) Method and device for handling virtual card
CN113626765A (en) Energy data processing method, device, equipment and storage medium
CN109445973A (en) Position the method and device of application crash
CN109462646A (en) A kind of method and apparatus of exception response
CN107025131A (en) A kind of method for scheduling task and device
CN108200047A (en) Data processing method, apparatus and system
CN116860391A (en) GPU computing power resource scheduling method, device, equipment and medium
CN115454576B (en) Virtual machine process management method and system and electronic equipment
WO2023035690A1 (en) Method and apparatus for controlling air conditioner, and air conditioner
CN108833956A (en) A kind of short-sighted sound interval sort run method, apparatus, terminal and computer storage medium
CN108733431A (en) One B shareB procedure management method, device, terminal and computer storage media
CN115730780A (en) OMS (operation management system) ticket overhauling system and method of comprehensive scheduling terminal
CN108319642A (en) Processing method, processing unit and the terminal of outage information
CN105743667B (en) A kind of access management-control method, apparatus and system
CN108939543A (en) A kind of games control method, device, terminal and computer storage medium
CN114310889A (en) Intelligent robot inspection system for transformer substation and access operation method thereof

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20181123

WW01 Invention patent application withdrawn after publication