CN104092832A - Short message sending method of dual-card dual-standby mobile phone - Google Patents

Short message sending method of dual-card dual-standby mobile phone Download PDF

Info

Publication number
CN104092832A
CN104092832A CN201410363313.3A CN201410363313A CN104092832A CN 104092832 A CN104092832 A CN 104092832A CN 201410363313 A CN201410363313 A CN 201410363313A CN 104092832 A CN104092832 A CN 104092832A
Authority
CN
China
Prior art keywords
mobile phone
standby mobile
dual
card
double
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
CN201410363313.3A
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.)
Shanghai Everybody Science And Technology Ltd
Original Assignee
Shanghai Everybody Science And Technology 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 Shanghai Everybody Science And Technology Ltd filed Critical Shanghai Everybody Science And Technology Ltd
Priority to CN201410363313.3A priority Critical patent/CN104092832A/en
Publication of CN104092832A publication Critical patent/CN104092832A/en
Pending legal-status Critical Current

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The invention provides a short message sending method of a dual-card dual-standby mobile phone. The short message sending method of the dual-card dual-standby mobile phone resolves the problem that application programs of a dual-card dual-standby mobile phone with the Android system in the prior art can not send short messages through an assigned subscriber identity module (SIM) card, and guarantees the good universality and compatibility of the application programs of the dual-card dual-standby mobile phone. The method comprises the steps that hardware platform information data of the dual-card dual-standby mobile phone are obtained; an SIM card is assigned through corresponding data parameters according to the obtained hardware platform information data by using a mobile phone short message management class object interface provided by a hardware platform; a GPRS module of the dual-card dual-standby mobile phone is activated to send short messages. According to the short message sending method of the dual-card dual-standby mobile phone, the hardware platform data are obtained, so that the object interface of a short message program is provided outwards, the assigned SIM card can be used for sending short messages, development of the application programs related to short messages on the mobile phone becomes possible, and good universality and compatibility of the application programs of the dual-card dual-standby mobile phone are guaranteed.

Description

A kind of double card double standby mobile phone note transmission method
Technical field
The present invention relates to technical field of mobile terminals, espespecially a kind of double card double standby mobile phone note transmission method.
Background technology
Android system is to be a kind ofly mainly used in mobile terminal device taking Linux and JAVA as basic open source code operating system, and according to investigations, nowadays the market occupancy of Android system is more than 75%.For the mobile terminal of application Android system, for example mobile phone, send note and need to call void sendTextMessage (the String destinationAddress of android.telephony.SmsManager class (being the class of Android system short message managing), String scAddress, String text, PendingIntent sentIntent, PendingIntent deliveryIntent) function sends note, wherein, destinationAddress is destination's cell-phone number, scAddress is the cell-phone number of making a copy for, text is short message content, sentIntent is the notice being sent, deliveryIntent is the notice after the other side receives.
But for this class mobile terminal of double card double standby mobile phone of application Android system, this function one of them mobile phone Sim card transmission note for acquiescence only conventionally, can not specify and send note with certain special handset Sim card.Mobile phone manufacturer is in the time of exploitation mobile phone, and its short message application program only realizes transmission note for single mobile phone Sim card conventionally.But, for utilizing mobile phone to carry out the common developer of secondary application and development, but can not realize double card double standby mobile phone sends note application program to designated mobile phone card, this is the note transmission calling interface of the double card double standby mobile phone because Android system itself does not provide support, and double card double standby mobile phone manufacturer does not externally provide such calling interface yet.
Summary of the invention
The object of this invention is to provide a kind of double card double standby mobile phone note transmission method, can not realize with solving Android system double card double standby mobile phone application program in prior art the problem that sends note with designated mobile phone card, with the versatility and the compatibility that ensure that double card double standby mobile phone application program is good.
In order to realize the above goal of the invention of the present invention, the technical scheme of a kind of double card double standby mobile phone note transmission method provided by the invention is achieved through the following technical solutions:
A kind of double card double standby mobile phone note transmission method, described method comprises:
Obtain the hardware platform information data of described double card double standby mobile phone;
According to the hardware platform information data getting, the SMS administrative class example interface that utilizes described hardware platform to provide, specifies a SIM card by corresponding data parameter;
The GPRS module that activates described double card double standby mobile phone sends note.
Further, the hardware platform information data of obtaining described double card double standby mobile phone described in specifically comprises:
Search " android.telephony.MSimSmsManager " class, return to described example interface according to lookup result.
Further, the hardware platform information data of obtaining described double card double standby mobile phone described in specifically comprises:
Search " android.telephony.gemini.GeminiSmsManager " class, return to described example interface according to lookup result.
Further, the hardware platform information data of obtaining described double card double standby mobile phone described in specifically comprises:
Search void sendTextMessage (the String destinationAddress of android.telephony.SmsManager class, String scAddress, String text, PendingIntent sentIntent, PendingIntent deliveryIntent, int simIndex) example interface, according to lookup result, return to this interface.
Further, the described hardware platform information data of obtaining described double card double standby mobile phone specifically comprises: void sendTextMessageExt (the String destinationAddress that searches android.telephony.SmsManager class, String scAddress, String text, PendingIntent sentIntent, PendingIntent deliveryIntent, int simIndex) example interface, according to lookup result, return to this interface.
Further, the hardware platform information data of obtaining described double card double standby mobile phone described in specifically comprises:
Obtain the hardware platform information data of described double card double standby mobile phone by third party application.
The present invention is by obtaining hardware platform data, thereby externally provide the example interface of note program, realize by designated mobile phone card transmission note, make the exploitation of carrying out note related application on mobile phone become possibility, ensured versatility and compatibility that double card double standby mobile phone application program is good.
Brief description of the drawings
Below in conjunction with the drawings and specific embodiments, the present invention is described in further detail:
Fig. 1 is the flow chart of a kind of double card double standby mobile phone note transmission method of the embodiment of the present invention.
Embodiment
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
As a specific embodiment, as shown in Figure 1, be the flow chart of embodiment of the present invention double card double standby mobile phone note transmission method, described method comprises:
S101. obtain the hardware platform information data of described double card double standby mobile phone;
S102. according to the hardware platform information data getting, the SMS administrative class example interface that utilizes described hardware platform to provide, specifies a SIM card by corresponding data parameter;
S103. the GPRS module that activates described double card double standby mobile phone sends note.
Double-card dual-standby refers to that a mobile phone can load two SIM cards simultaneously, and this two SIM card is all in holding state.Double-card dual-standby on market, refers generally to the double-card dual-standby of same network formats, i.e. GSM network double-card dual-standby, and cdma network double-card dual-standby, PHS network double-card dual-standby, double-card dual-standby mainly refers to the first situation in the market, i.e. GSM double-card dual-standby.The hardware platforms such as MTK, spreadtrum, high pass, HTC are all supported double-card dual-standby.
The universal applications program interface that carries out note transmission in order to realize the appointment special handset SIM card of double card double standby mobile phone, we can utilize the reflex mechanism of JAVA on Android system, obtain hardware platform data message, specifically comprise:
Search and whether have " android.telephony.MSimSmsManager " class, " android.telephony.MSimSmsManager " class is high-pass platform android SMS administrative class, if there is " android.telephony.MSimSmsManager " class, the static function static MSimSmsManager getDefault () that utilizes reflex mechanism to call such obtains such example, recycling reflex mechanism calls such function void sendTextMessage (String destinationAddress, String scAddress, String text, PendingIntent sentIntent, PendingIntent deliveryIntent, int simIndex) specify certain SIM cards of mobile phones to send note by the 6th parameter s imIndex.
Corresponding GSM or the CDMA module of this appointment SIM card that activates high-pass platform GPRS communication module, realizes the transmission of note by the AT order of GSM or CDMA module.Here GPRS communication module is GSM or the CDMA standard module with GPRS data-transformation facility.GPRS communication module is equivalent to the mobile phone of a scaled-down version, the major function of integrated GSM communication or cdma communication on a circuit board, have send SMS message, the function such as call, transfer of data, be the core of mobile phone.
Or search " android.telephony.gemini.GeminiSmsManager " class, " android.telephony.gemini.GeminiSmsManager " class is MTK platform android SMS administrative class, if there is " android.telephony.gemini.GeminiSmsManager " class, utilize emission mechanism to call such static function static void sendTextMessageGemini (String destinationAddress, String scAddress, String text, int simIndex, PendingIntent sentIntent, PendingIntent deliveryIntent) send note by the 4th parameter s imIndex designated mobile phone SIM card, activate corresponding GSM or the CDMA module of this appointment SIM card of MTK platform GPRS communication module, realize the transmission of note by the AT order of GSM or CDMA module.Here GPRS communication module is GSM or the CDMA standard module with GPRS data-transformation facility.GPRS communication module is equivalent to the mobile phone of a scaled-down version, the major function of integrated GSM communication or cdma communication on a circuit board, have send SMS message, the function such as call, transfer of data, be the core of mobile phone.
If there is no " android.telephony.gemini.GeminiSmsManager " class and " android.telephony.MSimSmsManager " class, search android.telephony.SmsManager class and whether have void sendTextMessage (String destinationAddress, String scAddress, String text, PendingIntent sentIntent, PendingIntent deliveryIntent, int simIndex) function, just utilize reflection to call this function if existed, specify certain SIM Mobile phone card to send note by the 6th parameter s imIndex, this function is the extended function of the class of the primary system of this android of android.telephony.SmsManager, activate corresponding GSM or the CDMA module of this appointment SIM card of spreadtrum platform GPRS communication module, realize the transmission of note by the AT order of GSM or CDMA module.Here GPRS communication module is GSM or the CDMA standard module with GPRS data-transformation facility.GPRS communication module is equivalent to the mobile phone of a scaled-down version, the major function of integrated GSM communication or cdma communication on a circuit board, have send SMS message, the function such as call, transfer of data, be the core of mobile phone.
If there is no void sendTextMessage (String destinationAddress, String scAddress, String text, PendingIntent sentIntent, PendingIntent deliveryIntent, int simIndex) function, search android.telephony.SmsManager class and whether have void sendTextMessageExt (String destinationAddress, String scAddress, String text, PendingIntent sentIntent, PendingIntent deliveryIntent, int simIndex) function, if existed, just utilize reflex mechanism to call this function, specify certain SIM cards of mobile phones to send note by the 6th parameter s imIndex, activate corresponding GSM or the CDMA module of this appointment SIM card of HTC platform GPRS communication module, realize the transmission of note by the AT order of GSM or CDMA module.Here GPRS communication module is GSM or the CDMA standard module with GPRS data-transformation facility.GPRS communication module is equivalent to the mobile phone of a scaled-down version, the major function of integrated GSM communication or cdma communication on a circuit board, have send SMS message, the function such as call, transfer of data, be the core of mobile phone.
Further preferably; obtaining hardware platform data message can also obtain by third party application; this third party application comprises the adb shell-command of 360 mobile phone defence programs, Quadrant Advanced software or linux system etc., can obtain the hardware platform information of mobile phone by these programs.
The present invention is by obtaining hardware platform data, thereby externally provide the example interface of note program, realize by designated mobile phone card transmission note, make the exploitation of carrying out note related application on mobile phone become possibility, ensured versatility and compatibility that double card double standby mobile phone application program is good.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (6)

1. a double card double standby mobile phone note transmission method, is characterized in that, described method comprises:
Obtain the hardware platform information data of described double card double standby mobile phone;
According to the hardware platform information data getting, the SMS administrative class example interface that utilizes described hardware platform to provide, specifies a SIM card by corresponding data parameter;
The GPRS module that activates described double card double standby mobile phone sends note.
2. double card double standby mobile phone note transmission method according to claim 1, is characterized in that, described in obtain described double card double standby mobile phone hardware platform information data specifically comprise:
Search " android.telephony.MSimSmsManager " class, return to described example interface according to lookup result.
3. double card double standby mobile phone note transmission method according to claim 1, is characterized in that, described in obtain described double card double standby mobile phone hardware platform information data specifically comprise:
Search " android.telephony.gemini.GeminiSmsManager " class, return to described example interface according to lookup result.
4. double card double standby mobile phone note transmission method according to claim 1, is characterized in that, described in obtain described double card double standby mobile phone hardware platform information data specifically comprise:
Search void sendTextMessage (the String destinationAddress of android.telephony.SmsManager class, String scAddress, String text, PendingIntent sentIntent, PendingIntent deliveryIntent, int simIndex) example interface, according to lookup result, return to this interface.
5. double card double standby mobile phone note transmission method according to claim 1, is characterized in that, described in obtain described double card double standby mobile phone hardware platform information data specifically comprise:
Search void sendTextMessageExt (the String destinationAddress of android.telephony.SmsManager class, String scAddress, String text, PendingIntent sentIntent, PendingIntent deliveryIntent, int simIndex) example interface, according to lookup result, return to this interface.
6. operating system security login authentication implementation method according to claim 1, is characterized in that, described in obtain described double card double standby mobile phone hardware platform information data specifically comprise:
Obtain the hardware platform information data of described double card double standby mobile phone by third party application.
CN201410363313.3A 2014-07-28 2014-07-28 Short message sending method of dual-card dual-standby mobile phone Pending CN104092832A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410363313.3A CN104092832A (en) 2014-07-28 2014-07-28 Short message sending method of dual-card dual-standby mobile phone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410363313.3A CN104092832A (en) 2014-07-28 2014-07-28 Short message sending method of dual-card dual-standby mobile phone

Publications (1)

Publication Number Publication Date
CN104092832A true CN104092832A (en) 2014-10-08

Family

ID=51640512

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410363313.3A Pending CN104092832A (en) 2014-07-28 2014-07-28 Short message sending method of dual-card dual-standby mobile phone

Country Status (1)

Country Link
CN (1) CN104092832A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106899959A (en) * 2017-01-16 2017-06-27 腾讯科技(深圳)有限公司 A kind of method for obtaining SIM card information, device, terminal and system
CN108021388A (en) * 2017-11-02 2018-05-11 广州慧睿思通信息科技有限公司 Double card sends short message method to a kind of realizing based on android system
CN113660644A (en) * 2021-08-17 2021-11-16 深圳市唐为电子有限公司 Smart phone double-card adaptation control method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101247597A (en) * 2008-03-19 2008-08-20 嘉兴闻泰通讯科技有限公司 Single-chip dual-SIM dual-standby communication terminal short message management method
WO2010125473A1 (en) * 2009-04-30 2010-11-04 France Telecom Mobile operating system management method and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101247597A (en) * 2008-03-19 2008-08-20 嘉兴闻泰通讯科技有限公司 Single-chip dual-SIM dual-standby communication terminal short message management method
WO2010125473A1 (en) * 2009-04-30 2010-11-04 France Telecom Mobile operating system management method and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
佚名: "《android 多卡发送短信选卡方式》", 《搜狐博客》, 26 October 2012 (2012-10-26), pages 1 - 2 *
佚名: "《MTK平台多卡发送短信选卡方式》", 《搜狐博客》, 11 December 2012 (2012-12-11), pages 1 - 2 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106899959A (en) * 2017-01-16 2017-06-27 腾讯科技(深圳)有限公司 A kind of method for obtaining SIM card information, device, terminal and system
CN106899959B (en) * 2017-01-16 2020-09-25 腾讯科技(深圳)有限公司 Method, device, terminal and system for obtaining SIM card information
CN108021388A (en) * 2017-11-02 2018-05-11 广州慧睿思通信息科技有限公司 Double card sends short message method to a kind of realizing based on android system
CN113660644A (en) * 2021-08-17 2021-11-16 深圳市唐为电子有限公司 Smart phone double-card adaptation control method
CN113660644B (en) * 2021-08-17 2023-10-03 深圳市唐为电子有限公司 Smart phone double-card adaptive control method

Similar Documents

Publication Publication Date Title
CA2805314C (en) System and method for transmitting application data between two communication devices
EP2688326B1 (en) Multi-card mobile terminal and method for transferring data of locked sim card
US20190387396A1 (en) ESIM Card Activation Method, Wireless Router, and User Terminal
CN104660678A (en) Application data sharing method and device
KR20080106579A (en) Method, mobile terminal and computer program product for interworking via a card application toolkit
CN104092832A (en) Short message sending method of dual-card dual-standby mobile phone
CN106789577A (en) A kind of method and system of automatic transmission wechat circle of friends
CN104038921A (en) Method and system for theme interaction between mobile terminals
CN112367714B (en) Method and device for establishing session connection
CN102547661B (en) Method and device for establishing communication between Android system and telecommunications smart card
CN105682117B (en) Data service Activiation method and mobile terminal
JP2009177360A (en) Communication apparatus, and application program
CN104768140A (en) Call forwarding processing method, device and system
CN101867918B (en) Real-name system registration state acquiring method, device and terminal
KR101305968B1 (en) Method for controlling telephone conversation remotely, and terminal thereof
CN111615102A (en) Method and system for realizing one number double terminals
KR101186544B1 (en) Message receiving device within specific application and method thereof
ATE477689T1 (en) METHOD AND SYSTEM FOR EMERGENCY CALL PROCESSING A LOW BATTERY WIRELESS COMMUNICATIONS DEVICE
US20120231780A1 (en) Method for Cellular Telephone Adaptation and Mobile Communication System
EP3324654A1 (en) Integrating internet-of-things devices with sim and without sim
KR102402412B1 (en) System for voice call service using distal assistance device, method thereof and non-transitory computer readable medium having computer program recorded thereon
KR102399456B1 (en) System for voice call service using distal assistance device, method thereof and non-transitory computer readable medium having computer program recorded thereon
KR102150580B1 (en) System for voice call service using distal assistance device, method thereof and non-transitory computer readable medium having computer program recorded thereon
TW201251411A (en) System and method for co-existing data communication channels
KR102150578B1 (en) System for voice call service using distal assistance device, method thereof and non-transitory computer readable medium having computer program recorded thereon

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20141008