CN117119096A - Contact person information presetting method and device, storage medium and electronic equipment - Google Patents

Contact person information presetting method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN117119096A
CN117119096A CN202311381351.7A CN202311381351A CN117119096A CN 117119096 A CN117119096 A CN 117119096A CN 202311381351 A CN202311381351 A CN 202311381351A CN 117119096 A CN117119096 A CN 117119096A
Authority
CN
China
Prior art keywords
contact
preset
information
card
user identification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311381351.7A
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.)
TCL Communication Technology Chengdu Ltd
Original Assignee
TCL Communication Technology Chengdu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TCL Communication Technology Chengdu Ltd filed Critical TCL Communication Technology Chengdu Ltd
Priority to CN202311381351.7A priority Critical patent/CN117119096A/en
Publication of CN117119096A publication Critical patent/CN117119096A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/26Devices for calling a subscriber
    • H04M1/27Devices whereby a plurality of signals may be stored simultaneously
    • H04M1/274Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc
    • H04M1/2745Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips
    • H04M1/2753Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips providing data content
    • H04M1/2757Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips providing data content by data transmission, e.g. downloading
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/20Transfer of user or subscriber data
    • H04W8/205Transfer to or from user equipment or user record carrier

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application discloses a contact person information presetting method, a device, a storage medium and electronic equipment, and relates to the technical field of communication, wherein the method comprises the following steps: if the contact preset related broadcast is detected, obtaining the card state of the user identification card according to the contact preset related broadcast; determining a preset range of a contact corresponding to a local area based on public land mobile network information corresponding to the user identification card; determining a contact preset operation corresponding to the card state of the user identification card; and executing the contact preset operation according to the contact preset range to preset the contact information. The method and the device can realize customizable contact information presetting, can effectively meet the customizing requirements of different users (such as operators), and improve the user experience of contact application.

Description

Contact person information presetting method and device, storage medium and electronic equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for presetting contact information, a storage medium, and an electronic device.
Background
In some devices, such as mobile phones, there is a need to preset some contact information in the contact application of the device, where the contact information includes, but is not limited to, information such as names and numbers of contacts.
At present, in the related art, the way of presetting contact information in a contact application is generally that some information is simply preset in the contact application according to a configuration instruction when leaving a factory. In the current mode, the preset of the contact information cannot effectively meet the customization requirements of different users (such as operators), and the user using experience of the contact application is poor.
Disclosure of Invention
The embodiment of the application provides a scheme, which can realize customizable contact information presetting, can effectively meet the customizing requirements of different users (such as operators), and improves the user experience of contact application.
The embodiment of the application provides the following technical scheme:
according to one embodiment of the application, a contact information presetting method comprises the following steps: if the contact preset related broadcast is detected, obtaining the card state of the user identification card according to the contact preset related broadcast; determining a preset range of a contact corresponding to a local area based on public land mobile network information corresponding to the user identification card; determining a contact preset operation corresponding to the card state of the user identification card; and executing the contact preset operation according to the contact preset range to preset the contact information.
In some embodiments of the present application, the determining, based on public land mobile network information corresponding to the subscriber identity module card, a preset range of contacts corresponding to a local area includes: acquiring public land mobile network information corresponding to the user identification card, wherein the public land mobile network information comprises at least one of a mobile network code and a mobile country code; obtaining a network area corresponding to the user identification card according to the public land mobile network information; and obtaining the preset range of the contact according to the network area.
In some embodiments of the present application, the obtaining the preset contact range according to the network area includes one of the following ways: determining the network area as the contact preset range; and obtaining card information corresponding to the user identification card, determining a sub-range under the network area according to the card information, and obtaining the contact preset range, wherein the card information comprises at least one of a group identifier and a user identification card number.
In some embodiments of the present application, the performing the contact preset operation according to the contact preset range to preset contact information includes: if the card state is of the first type, acquiring contact information to be configured corresponding to the contact preset range; and executing the contact preset operation according to the contact information to be configured, and carrying out contact information preset editing on the local.
In some embodiments of the present application, the performing the contact preset operation according to the contact preset range to preset contact information includes: and if the card state is of the second type, executing the contact preset operation according to the contact preset range, and deleting preset contact information corresponding to the contact preset range in the local.
In some embodiments of the present application, after the determining the locally corresponding contact preset range, before the determining the contact preset operation corresponding to the card state of the subscriber identity card, the method further includes: inquiring preset switch information corresponding to the preset range of the contact person; and determining whether contact person presetting is supported in the contact person presetting range according to the preset switch information.
In some embodiments of the application, the method further comprises: creating a contact preset instance of the singleton model; and executing the contact information presetting method through the contact presetting instance.
According to an embodiment of the present application, a contact information presetting device, the device includes: the state detection module is used for obtaining the card state of the user identification card according to the preset relevant broadcast of the contact person if the preset relevant broadcast of the contact person is detected; the range determining module is used for determining a preset range of a contact corresponding to the local based on public land mobile network information corresponding to the user identification card; the operation determining module is used for determining the preset operation of the contact corresponding to the card state of the user identification card; and the information presetting module is used for executing the contact presetting operation according to the contact presetting range to preset the contact information.
According to another embodiment of the present application, a storage medium has a computer program stored thereon, which when executed by a processor of a computer, causes the computer to perform the method according to the embodiment of the present application.
According to another embodiment of the present application, an electronic device may include: a memory storing a computer program; and the processor reads the computer program stored in the memory to execute the method according to the embodiment of the application.
According to another embodiment of the application, a computer program product or computer program includes computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions to cause the computer device to perform the methods provided in the various alternative implementations described in the embodiments of the present application.
In the embodiment of the application, if the preset related broadcast of the contact person is detected, the card state of the user identification card is obtained according to the preset related broadcast of the contact person; determining a preset range of a contact corresponding to a local area based on public land mobile network information corresponding to the user identification card; determining a contact preset operation corresponding to the card state of the user identification card; and executing the contact preset operation according to the contact preset range to preset the contact information.
The beneficial effects of the application are as follows: in this way, the card state of the user identification card is determined by detecting the related broadcast of the contact preset, the contact preset range corresponding to the local is determined based on the Public Land Mobile Network (PLMN) information corresponding to the user identification card, the contact information is preset according to the contact preset operation corresponding to the card state of the contact preset range, the customizable contact information is preset according to scenes formed by different card states and the contact preset range, the contact information can be customized according to the requirements of operators, the customizable contact information is realized, the customization requirements of different users (such as operators) can be effectively met, and the user experience of the contact application is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 illustrates a flowchart of a contact information presetting method according to an embodiment of the present application.
FIG. 2 illustrates a contact preset range determination flow diagram according to one embodiment of the application.
Fig. 3 shows a contact preset flow diagram according to one embodiment of the application.
Fig. 4 shows a block diagram of a contact information preset device according to one embodiment of the application.
Fig. 5 shows a block diagram of an electronic device according to an embodiment of the application.
Detailed Description
The present disclosure is further described in detail below with reference to the drawings and examples. It should be understood that the examples provided herein are merely illustrative of the present disclosure and are not intended to limit the present disclosure. In addition, the embodiments provided below are some of the embodiments for implementing the present disclosure, and not all of the embodiments for implementing the present disclosure, and the technical solutions described in the embodiments of the present disclosure may be implemented in any combination without conflict.
It should be noted that, in the embodiments of the present disclosure, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a method or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such method or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other related elements (e.g., a step in a method or a unit in an apparatus, e.g., a unit may be a part of a circuit, a part of a processor, a part of a program or software, etc.) in a method or apparatus comprising the element.
For example, the contact information presetting method provided in the embodiment of the present disclosure includes a series of steps, but the contact information presetting method provided in the embodiment of the present disclosure is not limited to the described steps, and similarly, the contact information presetting device provided in the embodiment of the present disclosure includes a series of units, but the device provided in the embodiment of the present disclosure is not limited to including explicitly described units, and may also include units that are required to be set when acquiring related information or performing processing based on information.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure belongs. The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure.
Fig. 1 schematically shows a flow chart of a contact information presetting method according to an embodiment of the application. The execution subject of the contact information presetting method can be any device with contact information presetting capability, such as a mobile phone, a smart watch, a television, a computer, a household appliance and the like.
As shown in fig. 1, the contact information presetting method may include steps S110 to S140.
Step S110, if the preset related broadcast of the contact person is detected, obtaining the card state of the user identification card according to the preset related broadcast of the contact person; step S120, determining a preset range of a contact corresponding to the local area based on public land mobile network information corresponding to the user identification card; step S130, determining a contact preset operation corresponding to the card state of the user identification card; and step S140, executing the contact preset operation according to the contact preset range to preset the contact information.
Contact preset-related broadcasts, i.e., specified subscriber identity card (SIM card) broadcasts associated with contact information presets, such as subscriber identity card status change broadcasts (sim_state_changed), load-on broadcasts (process_value_icc_loaded), off-line broadcasts (process_value_icc_absent), stay-on-line broadcasts, unregistered broadcasts, and the like.
If contact preset related broadcasting is detected in the device, a card state of the subscriber identity card can be obtained according to the contact preset related broadcasting, wherein each broadcasting can correspond to one card state, for example, the card state can be determined to be LOADED (LOADED) according to loading broadcasting (NTENT_VALUE_ICC_LOADED), and the card state can be determined to be disengaged (ABSENT) according to disengaging broadcasting (INENT_VALUE_ICC_ABSENT).
Public land mobile network information, i.e., information corresponding to the Public Land Mobile Network (PLMN), is typically interconnected with the Public Switched Telephone Network (PSTN) to form a communication network on a regional or national scale. Public Land Mobile Network (PLMN) =mobile country code MCC (Mobile Country Code) +mobile network code MNC (Mobile Network Code), public land mobile network information may include at least one of mobile country code MCC and mobile network code MNC.
Corresponding public land mobile network information can be obtained through a Subscriber Identity Module (SIM) card, and a contact preset range corresponding to the subscriber identity module, namely a contact preset range corresponding to the local area, can be determined based on the public land mobile network information corresponding to the subscriber identity module.
Further, the contact person preset operation corresponding to the card state of the user identification card can be determined, the contact person preset operation is executed according to the contact person preset range to preset the contact person information, and the customizable contact person information preset can be completed locally.
In this way, based on the steps S110 to S140, the card state of the subscriber identity module card is determined by detecting the relevant broadcast of the contact preset, the contact preset range corresponding to the local is determined based on the Public Land Mobile Network (PLMN) information corresponding to the subscriber identity module card, the contact information is preset according to the contact preset operation corresponding to the contact preset range and executed by the card state, the customizable contact information is preset according to the scenes formed by the different card states and the contact preset range, and particularly, the customizable contact information is effectively customized according to the requirements of operators, the customizable contact information is realized, the customization requirements of different users (such as operators) can be effectively met, and the user experience of the contact application is improved.
Further alternative embodiments of the steps performed when the contact information presetting is performed in the embodiment of fig. 1 are described below.
Referring to fig. 2, in an embodiment, the determining, based on public land mobile network information corresponding to the subscriber identity module card, a preset range of a contact corresponding to a local location may specifically include: step S210, obtaining public land mobile network information corresponding to the user identification card, wherein the public land mobile network information comprises at least one of a mobile network code and a mobile country code; step S220, according to the public land mobile network information, obtaining a network area corresponding to the user identification card; step S230, obtaining the preset contact range according to the network area.
At least one of the mobile country code MCC (Mobile Country Code) and the mobile network code MNC (Mobile Network Code) corresponding to the subscriber identity card is acquired as public land mobile network information. According to the public land mobile network information, the network area corresponding to the user identification card can be accurately obtained.
The contact preset range can be further obtained according to the network area, and customizable contact preset aiming at the user identification card correspondence of different network areas is realized.
Further, the obtaining the preset contact range according to the network area may specifically include one of the following manners:
firstly, determining the network area as the preset range of the contact person;
secondly, card information corresponding to the user identification card is obtained, a sub-range under the network area is determined according to the card information, and the contact preset range is obtained, wherein the card information comprises at least one of a group identifier and a user identification card number.
In the first mode, the network area is directly determined as a contact preset range, and customizable contact preset is directly realized at the granularity of the network area. For example, if network area a is determined, network area a is the contact preset range.
Second, card information corresponding to the user identification card is obtained, a sub-range under the network area is determined according to the card information, a contact preset range is obtained, and the card information comprises at least one of a group identifier and a user identification card number. Namely, the molecular range is divided by fine granularity on the basis of the network area, the customizable contact person presetting is realized by the fine granularity, and the contact person information presetting effect is improved.
Wherein the group identifier is GID (Group Identification): refer to group identifiers that are set by the operator to distinguish between different user groups. The user identification card number is ICCID (Integrate circuit card identity): i.e. the integrated circuit card identification code. For example, if the network area a is determined, the sub-range A1 corresponding to the card information in the network area a may be further determined by searching from the preset range table according to the card information, where the sub-range A1 is the contact preset range.
Referring to fig. 3, in one embodiment, the performing the contact preset operation according to the contact preset range to perform contact information preset may include: step S310, if the card state is of a first type, obtaining contact information to be configured corresponding to the contact preset range; step S320, executing the contact preset operation according to the contact information to be configured, and carrying out preset editing on the contact information locally.
The card status is of a first type, that is, the card status determined by detection belongs to the first type, and specifically, the types corresponding to different card types can be queried and determined from a type query table. If the card state is of the first type, the contact information to be configured corresponding to the contact preset range can be obtained from the preset resource storage unit, and different contact preset ranges can correspond to different contact information to be configured. Further, contact person presetting operation is executed according to the contact person information to be configured, and contact person information presetting editing is carried out on the local area, so that contact person information presetting can be completed.
For example, the card status may be determined as a Load (LOADED) according to a load broadcast (NTENT_VALUE_ICC_LOADED), which may be of a first type. At this time, the contact information to be configured corresponding to the contact preset range can be further obtained, the contact preset operation (such as contact replacement, addition, etc.) is executed according to the contact information to be configured, and the contact information preset editing (such as contact replacement, addition, etc.) is locally performed, so that the contact information preset is completed.
Further, in an embodiment, if the contact preset operation is performed according to the contact information to be configured, the contact information preset editing is performed locally, the contact information to be configured is written in a contact information base, after the writing is successful, a contact identification field and a preset flow completion field may be written in a setting base (such as a Settings database), a contact identification field, for example, a preloadContactPlanRawContactId may uniquely identify the written contact, and a preset flow completion field, for example, preloadContactPlanLoaded may identify whether the preset contact flow is performed. Furthermore, the value of the successful identification field (such as preload_contacts_flag) written in the setting library (such as the Settings database) can be modified to identify whether the presetting of the contact information is successful, so that the contact information presetting failure caused by abnormal application can be prevented.
Further, referring to fig. 3, in an embodiment, the performing the contact preset operation according to the contact preset range to preset contact information may include: step S330, if the card state is of the second type, executing the contact preset operation according to the contact preset range, and deleting preset contact information corresponding to the contact preset range in the local.
For example, the card status may be determined as a detach (absend) according to an detach broadcast (interval_value_icc_absend), and the detach (absend) may be of a second type, at this time, a contact preset operation may be performed according to a contact preset range, and preset contact information corresponding to the contact preset range in the local area may be deleted.
Further, in an embodiment, if the preset contact information corresponding to the preset contact range in the local area is deleted, after the deletion is successful, the contact identification field and the preset flow completion field in the setting library (such as the settingdatabase) may be modified to be fields for identifying that preset contact data is not stored. Further, the value of the successful identification field (such as preload_contacts_flag) written in the setting library (such as the Settings database) can be modified to identify whether preset contact information exists, so that contact information preset failure caused by abnormal application can be prevented.
Further, in an embodiment, after the determining the preset range of contacts corresponding to the local area, before the determining the preset operation of contacts corresponding to the card state of the subscriber identity card, the method further includes: inquiring preset switch information corresponding to the preset range of the contact person; and according to the preset switch information, whether the contact person preset is supported in the contact person preset range or not.
After the preset range of the contact corresponding to the local is determined, before the preset operation of the contact corresponding to the card state of the user identification card is determined, preset switch information corresponding to the preset range of the contact can be inquired, and whether the preset of the contact is supported in the preset range of the contact can be confirmed according to the preset switch information. The preset switch information corresponding to the preset range of the contact person can be inquired from a resource storage unit for storing the information of the contact person.
If the contact person presetting is supported, the contact person presetting operation and the subsequent steps corresponding to the card state of the user identification card can be continuously executed; if the contact preset is not supported, the subsequent steps, namely, the contact information preset is not needed to be carried out. Further improving the preset reliability of the contact information.
Further, in an embodiment, the method may further include: creating a contact preset instance of the singleton model; and executing the contact information presetting method through the contact presetting instance.
Specifically, a contact preset instance of the singleton model may be created through the getInstance () method, through which the contact information preset method described in the foregoing embodiments of the present application may be performed. The use of resources and the number of instances can be controlled through a single instance mode, so that the triggering of repeated preset processes is avoided, and the contact information preset reliability is further improved.
In order to facilitate better implementation of the contact information presetting method provided by the embodiment of the application, the embodiment of the application also provides a contact information presetting device based on the contact information presetting method. The meaning of the noun is the same as that in the contact information presetting method, and specific implementation details can be referred to the description in the method embodiment. Fig. 4 shows a block diagram of a contact information preset device according to one embodiment of the application.
As shown in fig. 4, the contact information presetting device 400 may include: the state detection module 410 may be configured to obtain a card state of the user identification card according to the contact preset related broadcast if the contact preset related broadcast is detected; the range determining module 420 may be configured to determine a preset range of contacts corresponding to a local location based on public land mobile network information corresponding to the subscriber identity module; the operation determining module 430 may be configured to determine a contact preset operation corresponding to a card status of the subscriber identity card; the information preset module 440 may be configured to perform the contact preset operation according to the contact preset range to perform contact information preset.
In some embodiments of the application, the range determination module 420 may be configured to: acquiring public land mobile network information corresponding to the user identification card, wherein the public land mobile network information comprises at least one of a mobile network code and a mobile country code; obtaining a network area corresponding to the user identification card according to the public land mobile network information; and obtaining the preset range of the contact according to the network area.
In some embodiments of the present application, the range determination module 420 may be used to implement one of the following: determining the network area as the contact preset range; and obtaining card information corresponding to the user identification card, determining a sub-range under the network area according to the card information, and obtaining the contact preset range, wherein the card information comprises at least one of a group identifier and a user identification card number.
In some embodiments of the present application, the information presetting module 440 may be configured to: if the card state is of the first type, acquiring contact information to be configured corresponding to the contact preset range; and executing the contact preset operation according to the contact information to be configured, and carrying out contact information preset editing on the local.
In some embodiments of the present application, the information presetting module 440 may be configured to: and if the card state is of the second type, executing the contact preset operation according to the contact preset range, and deleting preset contact information corresponding to the contact preset range in the local.
In some embodiments of the present application, after the determining the locally corresponding contact preset range, before the determining the contact preset operation corresponding to the card state of the subscriber identity card, the apparatus further includes a support determining module configured to: inquiring preset switch information corresponding to the preset range of the contact person; and according to the preset switch information, whether the contact person preset is supported in the contact person preset range or not.
In some embodiments of the application, the apparatus further comprises an instance creation module for: creating a contact preset instance of the singleton model; and executing the contact information presetting method through the contact presetting instance.
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functions of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the application. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
In addition, the embodiment of the application further provides an electronic device, as shown in fig. 5, and fig. 5 shows a block diagram of the electronic device according to one embodiment of the application, specifically:
the electronic device may include one or more processing cores 'processors 501, one or more computer-readable storage media's memory 502, a power supply 503, and an input unit 504, among other components. It will be appreciated by those skilled in the art that the electronic device structure shown in fig. 5 is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. Wherein:
the processor 501 is a control center of the electronic device, and connects various parts of the entire computer device using various interfaces and lines, and performs various functions of the computer device and processes data by running or executing software programs and/or modules stored in the memory 502, and calling data stored in the memory 502, thereby performing overall monitoring of the electronic device. Optionally, processor 501 may include one or more processing cores; preferably, the processor 501 may integrate an application processor and a modem processor, wherein the application processor primarily handles operating systems, user pages, applications, etc., and the modem processor primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 501.
The memory 502 may be used to store software programs and modules, and the processor 501 executes various functional applications and data processing by executing the software programs and modules stored in the memory 502. The memory 502 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the computer device, etc. In addition, memory 502 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 502 may also include a memory controller to provide access to the memory 502 by the processor 501.
The electronic device further comprises a power supply 503 for powering the various components, preferably the power supply 503 is logically connected to the processor 501 via a power management system, whereby the functions of managing charging, discharging, and power consumption are performed by the power management system. The power supply 503 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
The electronic device may further comprise an input unit 504, which input unit 504 may be used for receiving input digital or character information and for generating keyboard, mouse, joystick, optical or trackball signal inputs in connection with user settings and function control.
Although not shown, the electronic device may further include a display unit or the like, which is not described herein. In particular, in this embodiment, the processor 501 in the electronic device loads executable files corresponding to the processes of one or more computer programs into the memory 502 according to the following instructions, and the processor 501 executes the computer programs stored in the memory 502, so as to implement the functions in the foregoing embodiments of the present application, where the processor 501 may perform the following steps:
if the contact preset related broadcast is detected, obtaining the card state of the user identification card according to the contact preset related broadcast; determining a preset range of a contact corresponding to a local area based on public land mobile network information corresponding to the user identification card; determining a contact preset operation corresponding to the card state of the user identification card; and executing the contact preset operation according to the contact preset range to preset the contact information.
In some embodiments of the present application, the determining, based on public land mobile network information corresponding to the subscriber identity module card, a preset range of contacts corresponding to a local area includes: acquiring public land mobile network information corresponding to the user identification card, wherein the public land mobile network information comprises at least one of a mobile network code and a mobile country code; obtaining a network area corresponding to the user identification card according to the public land mobile network information; and obtaining the preset range of the contact according to the network area.
In some embodiments of the present application, the obtaining the preset contact range according to the network area includes one of the following ways: determining the network area as the contact preset range; and obtaining card information corresponding to the user identification card, determining a sub-range under the network area according to the card information, and obtaining the contact preset range, wherein the card information comprises at least one of a group identifier and a user identification card number.
In some embodiments of the present application, the performing the contact preset operation according to the contact preset range to preset contact information includes: if the card state is of the first type, acquiring contact information to be configured corresponding to the contact preset range; and executing the contact preset operation according to the contact information to be configured, and carrying out contact information preset editing on the local.
In some embodiments of the present application, the performing the contact preset operation according to the contact preset range to preset contact information includes: and if the card state is of the second type, executing the contact preset operation according to the contact preset range, and deleting preset contact information corresponding to the contact preset range in the local.
In some embodiments of the present application, after the determining the preset range of contacts corresponding to the local area, before the determining the preset operation of contacts corresponding to the card status of the subscriber identity card, the method further includes: inquiring preset switch information corresponding to the preset range of the contact person; and according to the preset switch information, whether the contact person preset is supported in the contact person preset range or not.
In some embodiments of the application, the method further comprises: creating a contact preset instance of the singleton model; and executing the contact information presetting method through the contact presetting instance.
It will be appreciated by those of ordinary skill in the art that all or part of the steps of the various methods of the above embodiments may be performed by a computer program, or by computer program control related hardware, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, an embodiment of the present application also provides a storage medium in which a computer program is stored, the computer program being capable of being loaded by a processor to perform the steps of any of the methods provided by the embodiments of the present application.
Wherein the storage medium may be a computer-readable storage medium, the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
The steps of any one of the methods provided in the embodiments of the present application may be executed by the computer program stored in the storage medium, so that the beneficial effects that can be achieved by the methods provided in the embodiments of the present application may be achieved, which are detailed in the previous embodiments and are not described herein.
Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains.
It will be understood that the application is not limited to the embodiments which have been described above and shown in the drawings, but that various modifications and changes can be made without departing from the scope thereof.

Claims (10)

1. The contact person information presetting method is characterized by comprising the following steps:
if the contact preset related broadcast is detected, obtaining the card state of the user identification card according to the contact preset related broadcast;
determining a preset range of a contact corresponding to a local area based on public land mobile network information corresponding to the user identification card;
determining a contact preset operation corresponding to the card state of the user identification card;
and executing the contact preset operation according to the contact preset range to preset the contact information.
2. The method according to claim 1, wherein the determining the preset range of the locally corresponding contact based on the public land mobile network information corresponding to the subscriber identity card includes:
acquiring public land mobile network information corresponding to the user identification card, wherein the public land mobile network information comprises at least one of a mobile network code and a mobile country code;
obtaining a network area corresponding to the user identification card according to the public land mobile network information;
and obtaining the preset range of the contact according to the network area.
3. The method according to claim 2, wherein the obtaining the contact preset range according to the network area includes one of the following ways:
determining the network area as the contact preset range;
and obtaining card information corresponding to the user identification card, determining a sub-range under the network area according to the card information, and obtaining the contact preset range, wherein the card information comprises at least one of a group identifier and a user identification card number.
4. The method of claim 1, wherein performing the contact preset operation according to the contact preset range for contact information preset comprises:
if the card state is of the first type, acquiring contact information to be configured corresponding to the contact preset range;
and executing the contact preset operation according to the contact information to be configured, and carrying out contact information preset editing on the local.
5. The method of claim 1, wherein performing the contact preset operation according to the contact preset range for contact information preset comprises:
and if the card state is of the second type, executing the contact preset operation according to the contact preset range, and deleting preset contact information corresponding to the contact preset range in the local.
6. The method of claim 1, wherein after said determining the locally corresponding contact preset range, prior to said determining the contact preset operation corresponding to the card status of the subscriber identity card, the method further comprises:
inquiring preset switch information corresponding to the preset range of the contact person;
and determining whether contact person presetting is supported in the contact person presetting range according to the preset switch information.
7. The method according to any one of claims 1 to 6, further comprising:
creating a contact preset instance of the singleton model;
and executing the contact information presetting method through the contact presetting instance.
8. A contact information presetting device, characterized by comprising:
the state detection module is used for obtaining the card state of the user identification card according to the preset relevant broadcast of the contact person if the preset relevant broadcast of the contact person is detected;
the range determining module is used for determining a preset range of a contact corresponding to the local based on public land mobile network information corresponding to the user identification card;
the operation determining module is used for determining the preset operation of the contact corresponding to the card state of the user identification card;
and the information presetting module is used for executing the contact presetting operation according to the contact presetting range to preset the contact information.
9. A storage medium having stored thereon a computer program which, when executed by a processor of a computer, causes the computer to perform the method of any of claims 1 to 7.
10. An electronic device, comprising: a memory storing a computer program; a processor reading a computer program stored in a memory to perform the method of any one of claims 1 to 7.
CN202311381351.7A 2023-10-24 2023-10-24 Contact person information presetting method and device, storage medium and electronic equipment Pending CN117119096A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311381351.7A CN117119096A (en) 2023-10-24 2023-10-24 Contact person information presetting method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311381351.7A CN117119096A (en) 2023-10-24 2023-10-24 Contact person information presetting method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN117119096A true CN117119096A (en) 2023-11-24

Family

ID=88807812

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311381351.7A Pending CN117119096A (en) 2023-10-24 2023-10-24 Contact person information presetting method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN117119096A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101384049A (en) * 2008-09-28 2009-03-11 深圳华为通信技术有限公司 Urgent number calling method and communication terminal
CN104955011A (en) * 2015-06-11 2015-09-30 努比亚技术有限公司 Emergency number adapting method, device and terminal
CN111279670A (en) * 2017-08-25 2020-06-12 深圳传音通讯有限公司 Emergency number matching method and device
CN113489832A (en) * 2021-07-20 2021-10-08 惠州Tcl云创科技有限公司 Mobile terminal emergency number customizing method and device, terminal equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101384049A (en) * 2008-09-28 2009-03-11 深圳华为通信技术有限公司 Urgent number calling method and communication terminal
CN104955011A (en) * 2015-06-11 2015-09-30 努比亚技术有限公司 Emergency number adapting method, device and terminal
CN111279670A (en) * 2017-08-25 2020-06-12 深圳传音通讯有限公司 Emergency number matching method and device
CN113489832A (en) * 2021-07-20 2021-10-08 惠州Tcl云创科技有限公司 Mobile terminal emergency number customizing method and device, terminal equipment and storage medium

Similar Documents

Publication Publication Date Title
US9256479B2 (en) App icon processing method and communication terminal
CN109450747B (en) Method and device for awakening smart home equipment and computer storage medium
CN105446776A (en) Application program closing method and device and electronic equipment
CN111666516A (en) Page loading method and device, electronic equipment and storage medium
CN109391512A (en) A kind of service issuing method, device and electronic equipment
CN115038130A (en) Mobile data service switching method, terminal and computer storage medium
CN103813439A (en) Method for terminal register and terminal
CN114116014A (en) Instruction issuing method and device, intelligent equipment and storage medium
CN104866782A (en) Data processing method and apparatus
CN117119096A (en) Contact person information presetting method and device, storage medium and electronic equipment
CN111984293A (en) Information processing method, device and storage medium
CN114585035B (en) Voice call method, device and computer readable storage medium
CN113010514B (en) Thermal loading method and device
CN113094070A (en) Application program switching method and device, storage medium and mobile terminal
CN114513844B (en) Network registration method and device, storage medium and electronic equipment
CN117544714A (en) Contact person information presetting method and device, storage medium and electronic equipment
CN109657455A (en) Using real-time switching method, equipment, storage medium and device
CN114579193B (en) Multi-system loading method, device, equipment and storage medium
CN114615716B (en) Call control method and device, storage medium and electronic equipment
CN110781370B (en) Mobile terminal information query method and computer equipment
CN117062208A (en) Data synchronization method and device, storage medium and electronic equipment
CN114666778A (en) Emergency telephone network selection method, device and computer readable storage medium
CN118382118A (en) Network connection switching method and device, storage medium and electronic equipment
CN106055393A (en) Application start management method and mobile terminal
CN117412269A (en) User identification card information loading method and device, storage medium and electronic equipment

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20231124