Movatterモバイル変換


[0]ホーム

URL:


CN103389900A - Control method and device for Android equipment camera - Google Patents

Control method and device for Android equipment camera
Download PDF

Info

Publication number
CN103389900A
CN103389900ACN2013103122627ACN201310312262ACN103389900ACN 103389900 ACN103389900 ACN 103389900ACN 2013103122627 ACN2013103122627 ACN 2013103122627ACN 201310312262 ACN201310312262 ACN 201310312262ACN 103389900 ACN103389900 ACN 103389900A
Authority
CN
China
Prior art keywords
application program
configuration file
camera
preset configuration
ccf layer
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.)
Granted
Application number
CN2013103122627A
Other languages
Chinese (zh)
Other versions
CN103389900B (en
Inventor
高大伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TCL Corp
Original Assignee
TCL Corp
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 TCL CorpfiledCriticalTCL Corp
Priority to CN201310312262.7ApriorityCriticalpatent/CN103389900B/en
Publication of CN103389900ApublicationCriticalpatent/CN103389900A/en
Application grantedgrantedCritical
Publication of CN103389900BpublicationCriticalpatent/CN103389900B/en
Expired - Fee Relatedlegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Landscapes

Abstract

The invention is suitable for the technical field of computers, and provides a control method for an Android equipment camera. The method comprises the following steps: when an application is started, reading a preset configuration file, wherein information of all applications needing to use a camera in Android equipment is configured in the preset configuration file; judging whether the started application is configured in the preset configuration file or not through a framework layer; and if the started application is configured in the preset configuration file, separately allocating the camera to the started application through the framework layer. According to the control method, the preset configuration file is read when an application in an Android system is started, and the camera is separately allocated to the application through the framework layer if the application is configured in the preset configuration file, so that the problem of conflict caused by simultaneous occupation of the camera by a plurality of applications is solved.

Description

Control method and device that a kind of Android equipment camera uses
Technical field
The invention belongs to field of computer technology, relate in particular to control method and device that a kind of Android equipment camera uses.
Background technology
The Android system is because of its opening, allows any equipment vendors to become its developer and obtained development rapidly, become one of operating system of main flow at present, is widely used on the equipment such as mobile phone, panel computer, TV and camera.For the user, maximum value is that to have the abundant software resource based on the Android system available.
Meanwhile, the experience requirements of user when using application program is more and more higher, often need aspectant interchange or by limb action, send instruction, therefore, on many Android equipment increasing application program need to use that camera is taken a picture, video recording, video communication, gesture identification etc.For example, on the Android intelligent television, by instant communication software, can realize video calling, by some limb actions, participate in somatic sensation television game etc.But some application program is behind the interface of having withdrawed from the use camera, do not discharge the device resource of camera in the process on backstage, camera still is in occupied state, can cause like this other application programs can not normally use camera, even can cause other application programs the situation of operation exception to occur.
Summary of the invention
The control method and the device that the object of the present invention is to provide a kind of Android equipment camera to use, be intended to solve the problem that clashes when a plurality of application programs take camera simultaneously.
The present invention is achieved in that the control method that a kind of Android equipment camera uses, and comprising:
When application program launching, read preset configuration file, configured in described preset configuration file that in described Android equipment, all need to use the information of the application program of described camera;
Judge by ccf layer whether the described application program that starts is configured in described preset configuration file;
, if the described application program that starts is configured in described preset configuration file, by the described application program that described ccf layer is distributed to separately startup with described camera, use.
The control device that provides a kind of Android equipment camera to use is provided, comprises:
Reading unit, be used for reading preset configuration file when application program launching, configured in described preset configuration file that in described Android equipment, all need to use the information of the application program of described camera;
Judging unit, be used for judging by ccf layer whether the described application program that starts is configured in described preset configuration file;
Allocation units,, if the described application program that is used for starting is configured in described preset configuration file, use by the described application program that described ccf layer is distributed to separately startup with described camera.
In the present invention, when the application program launching on the Android system, read preset configuration file, if this application program is configured in this preset configuration file, by ccf layer, camera is distributed to separately this application program and use, solve the problem that clashes when a plurality of application programs take camera simultaneously.
Description of drawings
Fig. 1 is the realization flow figure of the control method used of the Android equipment camera that provides of the embodiment of the present invention;
Fig. 2 is the particular flow sheet of the control method step S103 that uses of the Android equipment camera that provides of the embodiment of the present invention;
Fig. 3 is the structured flowchart of the control device that uses of the Android equipment camera that provides of the embodiment of the present invention.
Embodiment
, in order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
In embodiments of the present invention, when the application program launching on the Android system, read preset configuration file, if this application program is configured in this preset configuration file, by ccf layer, camera being distributed to separately this application program uses, solve the problem that clashes when a plurality of application programs take camera simultaneously, for the user uses camera, provide mode of operation simply and easily.
Need to prove, in embodiments of the present invention, set forth based on the Android intelligent television control method that above-mentioned Android equipment camera uses, solve in Android equipment the problem that clashes when a plurality of application programs take camera simultaneously, described method also can run on other equipment that carried the Android system.
The realization flow of the control method that the Android equipment camera that Fig. 1 shows the embodiment of the present invention to be provided uses, details are as follows:
In step S101, when application program launching, read preset configuration file, configured in described preset configuration file that in described Android equipment, all need to use the information of the application program of described camera.
The system partitioning of Android system is used for placing preset application program, system file and user interface etc., and data partition is used for placing user's data, as associated person information and third party application etc.And the ccf layer of Android system has comprised the framework that need to use while writing kernel service, in the Android system starting process, can carry out and starts kernel service and read the preset operations such as configuration file when ccf layer starts.
In embodiments of the present invention, when application program launching, read preset configuration file from data partition.Before reading this preset configuration file, also need to carry out following steps: for the Android system, add configuration file as preset configuration file in system partitioning, this configuration file has configured that in preset application program, all need to use the information of the application program of camera.When the Android system starts, detect data partition by ccf layer and whether have required configuration file, if do not have, copy is a in data partition from system partitioning.
In embodiments of the present invention, read preset configuration file from data partition,, if there is the situation that reads failure, from system partitioning, read above-mentioned configuration file, simultaneously, copy is a in data partition again from system partitioning.Like this, when the factory reset of Android system, the above-mentioned preset configuration file in system partitioning can not disposed by the user, guarantees to read successfully.
The user is when using Android equipment, except preset application program, also need download and many third party applications be installed to meet its individual demand, for example in the Android intelligent television, the application program of Web TV etc. usually all is installed, but the user also can download and install other third party application, and as somatic sensation television game, the good experience and the whole family that bring with enjoyment TV giant-screen participate in the enjoyment of playing together.And also may need to use camera in these third party applications, therefore also should comprise the information of the third party application of user installation in above-mentioned preset configuration file.
For compatible third party application, installed while needing to use the application program of camera when described Android equipment being detected, the information of the described application program of installing is added in described preset configuration file; When described Android unit deletion having been detected and need to have used the application program of camera, the information of the described application program of deletion from described preset configuration file.
When third party application is disposed in the application shop, whether this third party application is needed to use camera to identify, and be recorded in the database of server, obtain this sign by the data interaction of this third party application and server, judge whether it needs to use camera.
In embodiments of the present invention, when third party application is installed, detect this sign,, if need to use camera, the information of this third party application is added in the preset configuration file of data partition; In unloading during third party application, the information of this third party application of deletion in above-mentioned preset configuration file from data partition.Can dynamically update so the above-mentioned preset configuration file in data partition.
When the Android system starts, read the above-mentioned configuration file that has configured preset application program and third party application information from data partition, if there is the situation that reads failure, from system partitioning, read the configuration file that only comprises preset application program, produce the problem of conflict in the time of so both can having solved preset application program and third party application and need to take camera simultaneously, also can guarantee when the factory reset of Android system, configuration file preset in system partitioning can not disposed by the user, still can successfully read.
In step S102, by ccf layer, judge whether the described application program that starts is configured in described preset configuration file.
In the Android system, need to carry out whether being met the condition of this application program launching by the configuration of ccf layer decision-making system alternately with ccf layer when application program launching.In embodiments of the present invention, if information in preset configuration file detected in step S101, the application program that ccf layer will start is mated with the information from the preset configuration file that data partition reads; , if the situation of failure occurred reading in step S101, this application program and the information from the preset configuration file that system partitioning reads are mated.If this application program is configured in above-mentioned preset configuration file, represent that it will use camera, otherwise, representing that it can not use camera, ccf layer notifies this application program to continue to carry out its original startup flow process.
In step S103,, if the described application program that starts is configured in described preset configuration file, by the described application program that described ccf layer is distributed to separately startup with described camera, use.
After judging that by ccf layer the application program that needs startup is configured in above-mentioned preset configuration file, as one embodiment of the present of invention, as shown in Figure 2, step S103 is specially:
In S201, detect described camera by described ccf layer and whether by other application programs, taken.
In S202,, if described camera is taken by other application programs, by described ccf layer, close the current application program that takies described camera.
In embodiments of the present invention, if camera is occupied, inquiry is taking the progress information of camera, progress information comprises the identification (Identity of process, ID) number etc., according to the process ID number that takies camera, ccf layer is closed corresponding application program, the camera resource of release busy., if camera is unoccupied, perform step S203.
In S203, by the described application program that described ccf layer is distributed to separately startup with described camera, use.
In embodiments of the present invention, ccf layer uses the application program that described camera is distributed to separately startup, notifies this application program to carry out its original startup flow process.
In embodiments of the present invention, when the application program launching on the Android system, read preset configuration file, if this application program is configured in this preset configuration file, by ccf layer, camera being distributed to separately this application program uses, solve the problem that clashes when a plurality of application programs take camera simultaneously, for the user uses camera, provide mode of operation simply and easily.
The structured flowchart of the control device that the Android equipment camera that Fig. 3 shows the embodiment of the present invention to be provided uses, this device can be arranged in the terminal devices such as smart mobile phone, intelligent television, panel computer, is used for carrying out the control method of Fig. 1 of the present invention and the described a kind of terminal camera use of Fig. 2 embodiment.For convenience of explanation, only show the part relevant to the present embodiment.As shown in Figure 3, this device comprises:
Reading unit 31, when application program launching, read preset configuration file, configured in described preset configuration file that in described Android equipment, all need to use the information of the application program of described camera.
Judgingunit 32, judge by ccf layer whether the described application program that starts is configured in described preset configuration file.
Allocation units 33,, if the described application program that starts is configured in described preset configuration file, use by the described application program that described ccf layer is distributed to separately startup with described camera.
Alternatively, described device also comprises:
Adding device, add described preset configuration file in the system partitioning of described Android system.
Copy cell, when described Android system starts, copy the described preset configuration file in described system partitioning in the data partition of described Android system to.
Described reading unit specifically is used for reading described preset configuration file from described data partition
Alternatively, described device also comprises:
The application information adding device, installed while needing to use the application program of camera when described Android equipment being detected, and the information of the described application program of installing is added in described preset configuration file.
The application information delete cells, unloaded while needing to use the application program of camera when described Android equipment being detected, the information of the described application program of deletion from described preset configuration file.
Alternatively,allocation units 33 comprise:
Whether detection sub-unit, detect described camera by described ccf layer and taken by other application programs.
Close subelement,, if described camera is taken by other application programs, by described ccf layer, close the current application program that takies described camera.
Distribute subelement, by the described application program that described ccf layer is distributed to separately startup with described camera, use.
In embodiments of the present invention, when the application program launching on the Android system, read preset configuration file, if this application program is configured in this preset configuration file, by ccf layer, camera being distributed to separately this application program uses, solve the problem that clashes when a plurality of application programs take camera simultaneously, for the user uses camera, provide mode of operation simply and easily.
The foregoing is only preferred embodiment of the present invention,, not in order to limit the present invention, all any modifications of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.

Claims (10)

CN201310312262.7A2013-07-232013-07-23A kind of control method and device that Android device camera usesExpired - Fee RelatedCN103389900B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201310312262.7ACN103389900B (en)2013-07-232013-07-23A kind of control method and device that Android device camera uses

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201310312262.7ACN103389900B (en)2013-07-232013-07-23A kind of control method and device that Android device camera uses

Publications (2)

Publication NumberPublication Date
CN103389900Atrue CN103389900A (en)2013-11-13
CN103389900B CN103389900B (en)2018-08-31

Family

ID=49534180

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201310312262.7AExpired - Fee RelatedCN103389900B (en)2013-07-232013-07-23A kind of control method and device that Android device camera uses

Country Status (1)

CountryLink
CN (1)CN103389900B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103995787A (en)*2014-05-152014-08-20Tcl集团股份有限公司Regulation and control method and device for camera applications
CN104750555A (en)*2015-03-312015-07-01北京奇虎科技有限公司Management method and device for progresses in Android program
CN104778041A (en)*2015-03-242015-07-15四川长虹电器股份有限公司Management method and management system for multi-program shared speech equipment
CN105224369A (en)*2015-10-142016-01-06深圳Tcl数字技术有限公司Application start method and system
CN105955779A (en)*2016-05-032016-09-21深圳Tcl数字技术有限公司Process closing method and device
CN105979321A (en)*2016-04-292016-09-28乐视控股(北京)有限公司Method and system for preventing hardware resource occupation conflicts
CN107483812A (en)*2017-08-022017-12-15深圳依偎控股有限公司A kind of multi-platform parallel live method and device
CN107832092A (en)*2017-11-242018-03-23四川长虹电器股份有限公司Suitable for the software platform and processing method of individual demand
CN108322640A (en)*2017-12-272018-07-24武汉长江通信智联技术有限公司A kind of method and system for mostly application being realized based on broadcast mechanism while calling camera
CN109358913A (en)*2018-09-302019-02-19维沃移动通信(杭州)有限公司A kind of the starting method and terminal device of application program
CN109729271A (en)*2019-01-072019-05-07Oppo广东移动通信有限公司Camera label allocation processing method, device, electronic equipment, storage medium
CN111475347A (en)*2020-03-032020-07-31福州瑞芯微电子股份有限公司Method, device, equipment and medium for supporting hot plug and unplug function of camera
CN112181476A (en)*2020-08-312021-01-05北京达佳互联信息技术有限公司 Application control method, device, server and storage medium
CN115957515A (en)*2022-11-162023-04-14合众新能源汽车股份有限公司Application monitoring method and device in android system

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1806228A (en)*2003-06-102006-07-19索尼爱立信移动通信日本株式会社 Resource management method, resource management device, resource management program and storage medium
CN102819715A (en)*2012-08-152012-12-12腾讯科技(深圳)有限公司API (application programming interface) monitoring method and device
CN102917346A (en)*2012-10-172013-02-06浙江大学城市学院Security policy management system and method for Android-based application program during operation
CN103002342A (en)*2012-11-122013-03-27北京奇虎科技有限公司 TV camera protection method and system
US20130097660A1 (en)*2011-10-172013-04-18Mcafee, Inc.System and method for whitelisting applications in a mobile network environment
CN103106117A (en)*2012-12-252013-05-15青岛海信电器股份有限公司Resource allocation method and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1806228A (en)*2003-06-102006-07-19索尼爱立信移动通信日本株式会社 Resource management method, resource management device, resource management program and storage medium
US20130097660A1 (en)*2011-10-172013-04-18Mcafee, Inc.System and method for whitelisting applications in a mobile network environment
CN102819715A (en)*2012-08-152012-12-12腾讯科技(深圳)有限公司API (application programming interface) monitoring method and device
CN102917346A (en)*2012-10-172013-02-06浙江大学城市学院Security policy management system and method for Android-based application program during operation
CN103002342A (en)*2012-11-122013-03-27北京奇虎科技有限公司 TV camera protection method and system
CN103106117A (en)*2012-12-252013-05-15青岛海信电器股份有限公司Resource allocation method and electronic equipment

Cited By (20)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103995787A (en)*2014-05-152014-08-20Tcl集团股份有限公司Regulation and control method and device for camera applications
CN104778041A (en)*2015-03-242015-07-15四川长虹电器股份有限公司Management method and management system for multi-program shared speech equipment
CN104750555A (en)*2015-03-312015-07-01北京奇虎科技有限公司Management method and device for progresses in Android program
CN105224369A (en)*2015-10-142016-01-06深圳Tcl数字技术有限公司Application start method and system
CN105979321A (en)*2016-04-292016-09-28乐视控股(北京)有限公司Method and system for preventing hardware resource occupation conflicts
CN105955779B (en)*2016-05-032020-06-09深圳Tcl数字技术有限公司Process closing method and device
CN105955779A (en)*2016-05-032016-09-21深圳Tcl数字技术有限公司Process closing method and device
WO2017190450A1 (en)*2016-05-032017-11-09深圳Tcl数字技术有限公司Process closing method and apparatus
CN107483812A (en)*2017-08-022017-12-15深圳依偎控股有限公司A kind of multi-platform parallel live method and device
CN107483812B (en)*2017-08-022020-08-04深圳依偎控股有限公司Multi-platform parallel live broadcast method and device
CN107832092A (en)*2017-11-242018-03-23四川长虹电器股份有限公司Suitable for the software platform and processing method of individual demand
CN108322640B (en)*2017-12-272020-10-27武汉长江通信智联技术有限公司Method and system for realizing simultaneous calling of multiple applications to camera based on broadcast mechanism
CN108322640A (en)*2017-12-272018-07-24武汉长江通信智联技术有限公司A kind of method and system for mostly application being realized based on broadcast mechanism while calling camera
CN109358913A (en)*2018-09-302019-02-19维沃移动通信(杭州)有限公司A kind of the starting method and terminal device of application program
CN109729271A (en)*2019-01-072019-05-07Oppo广东移动通信有限公司Camera label allocation processing method, device, electronic equipment, storage medium
CN109729271B (en)*2019-01-072021-01-12Oppo广东移动通信有限公司 Camera configuration label processing method, device, electronic device, storage medium
CN111475347A (en)*2020-03-032020-07-31福州瑞芯微电子股份有限公司Method, device, equipment and medium for supporting hot plug and unplug function of camera
CN111475347B (en)*2020-03-032022-05-27瑞芯微电子股份有限公司Method, device, equipment and medium for supporting hot plug and unplug function of camera
CN112181476A (en)*2020-08-312021-01-05北京达佳互联信息技术有限公司 Application control method, device, server and storage medium
CN115957515A (en)*2022-11-162023-04-14合众新能源汽车股份有限公司Application monitoring method and device in android system

Also Published As

Publication numberPublication date
CN103389900B (en)2018-08-31

Similar Documents

PublicationPublication DateTitle
CN103389900A (en)Control method and device for Android equipment camera
KR102389235B1 (en) Resource placement methods, devices, terminals and storage media
US20210389973A1 (en)Electronic device and method for operating the same
CN104516760B (en)A kind of method, device and mobile terminal of operating system hot-swap
US10020832B2 (en)Method of controlling SIM card and SD card and electronic device for implementing the same
CN102360298B (en)Software upgrading method of terminal equipment
CN112749022B (en)Camera resource access method, operating system, terminal and virtual camera
WO2020108085A1 (en)Resource allocation method and apparatus, terminal, and storage medium
CN103530186A (en)Method and system for achieving multi-position storage supported by camera application
KR102340637B1 (en)Mobile cloud system and operating method of the same
CN114489898B (en)Processing method of floating window, electronic equipment and computer readable storage medium
CN107577471B (en)Application control method and mobile terminal
CN106406944A (en)Control method and system for forbidding self-starting of application
CN110134237B (en) Interface control method and related equipment
CN109271211A (en)Method, apparatus of attending to anything else, equipment and the medium of application program
CN102609304A (en)Management method for internal third-party applications of Android mobile phone
CN104951330B (en)Method for operating multiple operating systems and electronic device thereof
CN106095605B (en)A kind of abnormality eliminating method and device of display terminal
CN107908953A (en)Notifications service control method, device, terminal device and storage medium
US9998536B2 (en)Metered network synchronization
US9317309B2 (en)Virtualized environment allocation system and method
CN110248181B (en)Self-reset method, device and system for external equipment and computer readable medium
CN108762983A (en)Multi-medium data restoration methods and device
CN108241515A (en)Application shortcut method for building up and terminal
JP7331132B2 (en) Application program installation method, operation method, electronic device, computer readable medium

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant
CF01Termination of patent right due to non-payment of annual fee

Granted publication date:20180831

CF01Termination of patent right due to non-payment of annual fee

[8]ページ先頭

©2009-2025 Movatter.jp