Summary of the invention
Main purpose of the present invention is to provide a kind of call recording method and device, is intended to meet user's calling record demand, reduces resource occupation, promotes user and experiences.
To achieve these objectives, the present invention proposes a kind of call recording method, comprises step:
(a), in the time of call setup, judge that call object is whether in address list;
(b) if described call object not in described address list, to call record.
Preferably, described step (b) also comprises step afterwards:
(c), after end of conversation, whether inquiry user needs to preserve this recording;
(d) if user selects to preserve, preserve this recording; Otherwise, give up this recording.
Preferably, in step (b), call is carried out in Recording Process, preserve once recording every Preset Time.
Preferably, described step (a) also comprises before:
The broadcast of radio receiver monitored call state, in the time listening to described call state and be call setup, starts recording module;
Recording module is carried out subsequent step after starting.
Preferably, described step (a) also comprises before:
Radio receiver listens to after the broadcast of system startup, starts recording module;
The broadcast of recording module monitored call state, in the time listening to described call state and be call setup, carries out subsequent step.
The present invention proposes a kind of calling record device simultaneously, comprises a recording module, and described recording module comprises judging unit and recording elements, wherein:
Judging unit, for when the call setup, judges that call object is whether in address list, and sends judged result to described recording elements;
Recording elements, for when described judged result being described call object during not at described address list, records to call.
Preferably, described recording elements also for:
After end of conversation, whether inquiry user needs to preserve this recording;
If user selects to preserve, preserve this recording; Otherwise, give up this recording.
Preferably, described recording elements also for: call is being carried out to Recording Process, is preserving once recording every Preset Time.
Preferably, described calling record device also comprises radio receiver, described radio receiver is used for: the broadcast of monitored call state, in the time listening to described call state and be call setup, start recording module, preferably, described calling record device also comprises radio receiver, described radio receiver is used for: when after the broadcast that the system that listens to starts, start recording module; Described recording module also comprises monitoring unit, and described monitoring unit is used for: the broadcast of monitored call state, and send snoop results.
A kind of call recording method provided by the present invention, while only having the call object of judgement not in address list, just this call is recorded, the i.e. incoming call to stranger or go electricity to record only, thereby more meet user's calling record demand, also avoid all phones record and take a large amount of memory spaces simultaneously.Both the calling record demand that had met user, has reduced again resource occupation, has promoted user's experience.
And, after end of conversation, allow user to select to preserve this recording or give up this recording, give user more autonomous right to choose, more hommization.
In addition,, in communication process, preserve once recording every Preset Time, thereby even if terminal power-off suddenly or deadlock in communication process can not lost recording data, the fail safe that has improved data yet.
Embodiment
Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Referring to Fig. 1, call recording method the first embodiment of the present invention is proposed, described call recording method comprises the following steps:
Step S101: establish call connection
Described calling comprises incoming call or exhalation, and incoming call answers external call, breathes out and outwards calls.
Step S102: judge that call object is whether in address list
Terminal is obtained the telephone number of current call object, and whether inquiry address list has this telephone number in (or claiming contacts list).If no, assert that current call object, for stranger, enters step S104; If have, assert that current call object, for acquaintance, enters step S103.
Step S103: will not record
If assert current call object, for acquaintance, does not record.
Step S104: call is recorded
If assert current call object, for stranger, records to call.
Step S105: end of conversation, stops recording
Step S106: whether inquiry user needs to preserve this recording
Concrete, after end of conversation, terminal shows inquiry interface, whether inquiry user needs to preserve this recording.Alternatively, also can inquire user by voice.If user selects not preserve, enter step S107; If user selects to preserve, enter step S108.
Step S107: give up this recording
If user thinks that this recording does not need to preserve, terminal is given up this recording, will not preserve, and saves memory space.
Step S108: preserve this recording
If user thinks that this recording needs to preserve, this recording is stored in to this locality or high in the clouds, and allows user to name recording file.
In specific implementation, can adopt following scheme:
Scheme one: in the configuration file of recorder application, add the radio receiver of the broadcast of a monitoring system startup, when radio receiver receives after the broadcast of system startup in onReceive (), just start recording module (or starting a service processes (the service)) associative operation of recording, recording module (or service processes) is always at running background, the broadcast of monitored call state, wherein call state comprises call setup, end of calling, exhalation, incoming call etc.In the time of incoming call or exhalation, system can send corresponding broadcast, in the time that talking state changes, also can send broadcast and notify.Wherein, the corresponding Intent.ACTION_NEW_OUTGOING_CALL that broadcasts as breathes out, the talking state corresponding TelephonyManager.ACTION_PHONE_STATE_CHANGED that broadcasts as that changes, what call setup (or answering state) was corresponding broadcasts as TelephonyManager.CALL_STATE_OFFHOOK, what end of calling (or hanging up state) was corresponding broadcasts as TelephonyManager.CALL_STATE_IDLE, etc.Thereby the broadcast that recording module (or service processes) just can send according to the system receiving, in the onReceive of radio receiver (), operates accordingly according to call state.When listening to call state and be call setup such as recording module (or service processes), judge that call object whether in address list, if will not record, records to call if not.In the time listening to call state and be end of calling, stop recording and directly preserved; Or whether inquiry user needs to preserve, need to preserve and preserved, otherwise given up.
Scheme two: in the configuration file of recorder application, add the radio receiver of the broadcast of a monitoring telephone call state.Be call setup when radio receiver listens to call state, breathing out as current or incoming call just in the time of jingle bell, just in its onReceive (), start recording module (or a service processes).After recording module (or service processes) starts, also can monitor the broadcast of call state and (or by radio receiver, snoop results be sent to recording module, or according to snoop results, recording module is carried out to corresponding control by radio receiver), and carry out recording associative operation.As judged, whether call object in address list, if will not record, record to call if not; In the time listening to call state and be end of calling, stop recording and directly preserved, or whether inquiry user need to preserve, need to preserve and preserved, otherwise given up; Or in communication process, preserve once recording every Preset Time.When radio receiver listens to after end of calling, close recording module (or stopping service processes), releasing resource.
With respect to scheme one, scheme two has following advantage: recording module (or service processes) does not need to cause taking resource at running background always always, only have in the time having phone exhalation or incoming call, just start recording module (or service processes), carry out associative operation according to call state, after end of conversation, just close recording module (or stopping service processes), releasing resource.Therefore can reduce resource occupation, reduce energy consumption.
Thereby, call recording method of the present invention, while just thinking to judge that call object is not in address list, just this call is recorded, the i.e. incoming call to stranger or go electricity to record only, thereby more meet user's calling record demand, also avoid all phones record and take a large amount of memory spaces simultaneously.Both the calling record demand that had met user, has reduced again resource occupation, has promoted user's experience.
Referring to Fig. 2, call recording method the second embodiment of the present invention is proposed, described call recording method comprises the following steps:
Step S201: establish call connection
Step S202: judge that call object is whether in address list
If current call object, in address list, enters step S203; If current call object, not in address list, enters step S204.
Step S203: will not record
Step S204: call is recorded
Step S205: in communication process, preserve once recording every Preset Time
In the present embodiment, terminal is recorded to call on one side, every Preset Time (as every 1~5 minute), recording is once preserved on one side.Even if terminal power-off suddenly or deadlock in communication process, can not lose recording data, the fail safe that has improved data yet.
Step S206: end of conversation, stops recording and being preserved
After end of conversation, automatically will all record and save.
Alternatively, terminal also can inquire whether user preserves, and if desired preserves, and is preserved; Otherwise, delete the partial data of having preserved, give up this recording.
Referring to Fig. 3, call recording method of the present invention the 3rd embodiment is proposed, described call recording method comprises the following steps:
Step S201: establish call connection
Step S202: judge that call object is whether in address list
If current call object, in address list, enters step S204; If current call object, not in address list, enters step S203.
Step S203: whether inquiry user needs recording
If not in address list, inquiring user, current call object whether needs recording, if user's selection is to enter step S205; If user selects no, enter step S204.
Concrete, terminal can show inquiry interface on screen, and does not affect user's call.In user's communication process, if user does not select, terminal default user is not wished recording, enters step S204, but this inquiry interface keeps demonstration always, and user can select recording as required at any time.When user selects noly, enter step S204, and inquiry interface disappears; Selecting as user is enter step S205, and inquiry interface to disappear.
Step S204: will not record
If call object in address list, although or call object not in address list, user select will not record, terminal is not recorded to this call.
Step S205: call is recorded
If call object not in address list and user select recording, terminal is recorded to this call.
Step S206: end of conversation, stops recording and preserve this recording
Alternatively, terminal also can communication process in, preserve once recording every Preset Time.
Alternatively, after end of conversation, terminal also can inquire whether user needs to preserve this recording again, if user selects to be preserved, otherwise gives up this recording.
Referring to Fig. 4, calling record device the first embodiment of the present invention is proposed, described calling record device comprises radio receiver and recording module.
Radio receiver: the broadcast starting for monitoring system, when listening to after the broadcast of service system startup, starts recording module.Once after calling record device starts, recording module also starts immediately, and always at running background.
Recording module: for the broadcast of monitored call state, in the time listening to call state and be call setup, carry out recording associative operation.
Concrete, recording module comprises monitoring unit, judging unit and recording elements.
Monitoring unit: for the broadcast of monitored call state, and snoop results is sent to judging unit and recording elements.Described call state comprises call setup, end of calling, incoming call, exhalation etc.
Judging unit: in the time receiving call state and be call setup, judge that call object is whether in address list, and send judged result to recording elements.
Recording elements: for carrying out corresponding operation according to judged result and call state.
If judged result be call object in address list, will not record.If judged result be call object not in address list, to call record; Or whether inquiry user needs recording, selecting as user is to record, otherwise will not record.In the time that call state is end of calling, stops recording, and directly preserve this recording; Or whether inquiry user needs to preserve this recording, if user's selection is to preserve this recording, otherwise give up this recording.
Alternatively, recording elements can, in communication process, be preserved once recording every Preset Time (as 1~5 minute).After end of conversation, automatically will all record and save; Or whether inquiry user preserves, if desired preserve, preserved, otherwise, delete the partial data of having preserved, give up this recording.
The calling record device of the present embodiment, while just thinking to judge that call object is not in address list, just this call is recorded, the i.e. incoming call to stranger or go electricity to record only, thereby more meet user's calling record demand, also avoid all phones record and take a large amount of memory spaces simultaneously.Both the calling record demand that had met user, has reduced again resource occupation, has promoted user's experience.
Referring to Fig. 5, calling record device the second embodiment of the present invention is proposed, described calling record device comprises radio receiver and recording module.
Radio receiver: for the broadcast of monitored call state, carry out corresponding operation according to call state control recording module, or send call state to recording module simultaneously.
As in the time listening to call state and be call setup, start recording module, so that recording module is carried out recording associative operation.In the time listening to call state and be end of calling, close recording module, releasing resource.
Recording module: for carry out recording associative operation under the control of radio receiver or according to call state.It comprises judging unit and recording elements.
Judging unit: for judging that whether call object is at address list, and send judged result to recording elements.Judging unit is carried out decision operation or is carried out decision operation according to call state during as call setup under the control of radio receiver.
Recording elements: for carry out corresponding operation according to judged result under the control of radio receiver, or carry out corresponding operation according to judged result and call state.
If judged result be call object in address list, will not record.If judged result be call object not in address list, to call record; Or whether inquiry user needs recording, selecting as user is to record, otherwise will not record.In the time that call state is end of calling, (or under control of radio receiver) stops recording, and directly preserves this recording; Or whether inquiry user needs to preserve this recording, if user's selection is to preserve this recording, otherwise give up this recording.
Alternatively, recording elements can, in communication process, be preserved once recording every Preset Time (as 1~5 minute).After end of conversation, automatically will all record and save; Or whether inquiry user preserves, if desired preserve, preserved, otherwise, delete the partial data of having preserved, give up this recording.
Alternatively, recording module also can comprise a monitoring unit, for the broadcast of monitored call state, and snoop results is sent to judging unit and recording elements.
In the present embodiment, recording module does not need to cause taking resource at running background always always, only have in the time having phone exhalation or incoming call, radio receiver just starts recording module, after starting, carries out recording module recording associative operation, after end of conversation, radio receiver is just closed recording module, releasing resource.Therefore can reduce resource occupation, reduce energy consumption.
Technical characterictic in said method embodiment, all corresponding being suitable for of this device, no longer repeats here.
It should be noted that: the calling record device that above-described embodiment provides, in the time carrying out calling record, is only illustrated with the division of above-mentioned each functional module, in practical application, can as required above-mentioned functions be distributed and be completed by different functional modules.In addition, calling record device and call recording method embodiment that above-described embodiment provides belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
One of ordinary skill in the art will appreciate that, realizing all or part of step in above-described embodiment method can control relevant hardware by program and complete, described program can be stored in a computer read/write memory medium, and described storage medium can be ROM/RAM, disk, CD etc.
With reference to the accompanying drawings of the preferred embodiments of the present invention, not thereby limit to interest field of the present invention above.Those skilled in the art do not depart from the scope and spirit of the present invention, and can have multiple flexible program to realize the present invention, such as can be used for another embodiment and obtain another embodiment as the feature of an embodiment.Allly using any amendment of doing within technical conceive of the present invention, be equal to and replace and improve, all should be within interest field of the present invention.