CN103152701A - Method and device for obtaining service information in Android system - Google Patents

Method and device for obtaining service information in Android system Download PDF

Info

Publication number
CN103152701A
CN103152701A CN2011104032811A CN201110403281A CN103152701A CN 103152701 A CN103152701 A CN 103152701A CN 2011104032811 A CN2011104032811 A CN 2011104032811A CN 201110403281 A CN201110403281 A CN 201110403281A CN 103152701 A CN103152701 A CN 103152701A
Authority
CN
China
Prior art keywords
services
information
broadcast message
protocol type
described information
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
CN2011104032811A
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN2011104032811A priority Critical patent/CN103152701A/en
Publication of CN103152701A publication Critical patent/CN103152701A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a method and a device for obtaining service information in an Android system and relates to the technical field of computers. The method includes the steps: obtaining broadcast messages which are issued by the system and are accompanied with the service information; extracting and analyzing the service information in the broadcast messages; and displaying the service information. Due to the fact that the broadcast messages which are issued by the system and are accompanied with the service information are obtained, users who use a mobile terminal of the Android system are capable of obtaining the service information.

Description

Obtain the method and apparatus of information on services in a kind of Android system
Technical field
The present invention relates to field of computer technology, particularly obtain the method and apparatus of information on services in a kind of Android system.
Background technology
Wappush is called information on services or pushes information, is a kind of short message protocol very commonly used.At present, each large operator generally adopts the mode that sends service information to promote separately business.It can send to the link of a certain website or a certain business on mobile terminal by note, and the user only need to read this information on services like this, and click the link in information on services, just direct access service.
Information on services is not supported in each version of current Android (Android) mobile terminal operating system, therefore can't resolve it after under primary Android mobile terminal operating system, mobile terminal receives information on services, also can't display it.
In realizing process of the present invention, the inventor finds that there is following problem at least in prior art:
Use the mobile terminal of primary Android system can't obtain, resolve and show information on services, affect user's use.Can't obtain simultaneously the content of information on services due to the user, also affect operator to the popularization of business.
Summary of the invention
Can't obtain, resolve and show the defective of information on services in order to solve the mobile terminal that uses the Android mobile terminal operating system in prior art, the embodiment of the present invention provides the method and apparatus that obtains information on services in a kind of Android system.Described technical scheme is as follows:
The embodiment of the present invention has proposed to obtain in a kind of Android system the method for information on services, comprising:
Obtain the broadcast message of carrying information on services of system's issue;
Extract the information on services in described broadcast message, and resolve described information on services;
Show described information on services.
Preferred as technique scheme, before the described broadcast message of carrying information on services of obtaining system's issue, described method also comprises:
Registration is used for receiving the radio receiver of described information on services in described system.
Preferred as technique scheme, the described information on services of described parsing comprises:
Determine the protocol type of described information on services according to the sign of described information on services head.
According to the protocol type of described information on services, use analytical algorithm corresponding to described protocol type to resolve described information on services.
Preferred as technique scheme, after the information on services in the described broadcast message of described extraction, described method also comprises:
Send intercept information to system, make system stop sending described broadcast message according to described intercept information.
Preferred as technique scheme, after the information on services in the described broadcast message of described extraction, described method also comprises:
Judge whether described information on services belongs to default form.
The embodiment of the present invention has also proposed to obtain in a kind of Android system the device of information on services, comprising:
Acquisition module is used for obtaining the broadcast message of carrying information on services of system's issue;
Processing module is used for extracting the information on services of described broadcast message, and resolves described information on services;
Display module is used for showing described information on services.
Preferred as technique scheme, described device also comprises:
Registering modules is used in the registration of described system for the radio receiver that receives described information on services.
Preferred as technique scheme, described processing module comprises:
Obtain the protocol type unit, be used for determining according to the sign of described information on services head the protocol type of described information on services.
Resolution unit is used for the protocol type according to described information on services, uses analytical algorithm corresponding to described protocol type to resolve described information on services.
Preferred as technique scheme, described device also comprises:
Sending module is used for sending intercept information to system, makes system stop sending described broadcast message according to described intercept information.
Preferred as technique scheme, described device also comprises:
Judge module is used for judging whether described information on services belongs to default form.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is: by obtaining the broadcast message with information on services of system's issue, and resolve and show the information on services that extracts from broadcast message, make the user of the mobile terminal that uses Android operating system can get information on services.
Description of drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, during the below will describe embodiment, the accompanying drawing of required use is done to introduce simply, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The schematic flow sheet of the method for information on services is provided in the Android system that provides in the embodiment of the present invention 1 Fig. 1;
The schematic flow sheet of the method for information on services is provided in the Android system that provides in the embodiment of the present invention 2 Fig. 2;
The structural representation of the device of information on services is provided in the Android system that provides in the embodiment of the present invention 3 Fig. 3.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, embodiment of the present invention is described further in detail below in conjunction with accompanying drawing.
Embodiment 1
Referring to Fig. 1, the embodiment of the present invention 1 has proposed to obtain in a kind of Android system the method for information on services, comprising:
Step 101: the broadcast message of carrying information on services of obtaining system's issue;
Step 102: extract the information on services in described broadcast message, and resolve described information on services;
Step 103: show described information on services.
The broadcast message with information on services that the embodiment of the present invention is issued by obtaining system, and resolve and show the information on services that extracts from broadcast message, make the user of the mobile terminal that uses Android operating system can get information on services.
Embodiment 2
Referring to Fig. 2, the embodiment of the present invention 2 has proposed to obtain in a kind of Android system the method for information on services, comprising:
Need to prove, the embodiment of the present invention is based on that the broadcast mechanism of Android system realizes, the radio receiver that receives information on services by registration obtains information on services.Broadcasting is by certain Event triggered, after triggering, system will send broadcasting corresponding to this event, registered a lot of radio receivers in system, radio receiver can judge whether the broadcasting of sending meets the registration type of oneself, operates if meet the radio receiver class that will call correspondence.For example, mobile terminal receives that a note will produce an event of receiving short message, in case Android system inside has produced this event, will broadcast this event to all radio receiver objects.
Wherein, the embodiment of the present invention is for registering the radio receiver that receives information on services, obtaining information on services, analysis service information and show that information on services describes as an example of the safe assistant of QQ example.
Step 201: registration is used for receiving the radio receiver of information on services in system.
When mobile terminal started, registration received the radio receiver of information on services in system.Concrete can for the safe assistant's software of QQ when the mobile terminal electrifying startup, automatically the loading in system, and be used for receiving the radio receiver of information on services in system registry.
Step 202: receive the broadcast message of carrying information on services of the radio receiver receiving system issue of information on services, and extract described information on services from described broadcast message.
When mobile terminal receives information on services, the broadcast message that information on services is carried in system's issue, when concrete mobile terminal receives information on services, system can issue the broadcast message of " android.provider.Telephony.WAP_PUSH_RECEIVED ", the radio receiver that receives information on services can correspondingly receive this broadcast message, and whether the information of judgement reception belongs to the form of information on services, for example the suffix of information on services is sic, judges by suffix whether the information of reception belongs to information on services.
Further, after the information of judgement reception belongs to information on services, the API (Application Programming Interface, application programming interface) that calls the Android system tackles this broadcast message get off, and makes this broadcast message not continue to send.Program for the analysis service information that has production firm oneself exploitation in some mobile terminal just can not respond like this.
Step 203: resolve the information on services that receives.
The information on services that receives is the content of a string hexadecimal format, this string content is called PDU (Protocol Data Unit, protocol Data Unit, the information on services agreement of using due to networks such as GSM, CDMA, TD, WCDMA is not quite similar, therefore the information on services agreement that each network is corresponding also is not quite similar for the definition of PDU, the information on services that needs at first judgement to receive when using analytical algorithm that information on services is resolved is to belong to information on services agreement corresponding to what network, and then the PDU analytical algorithm corresponding according to agreement resolved.
Step 203 can be specially:
Step 2031: the protocol type of determining described information on services according to the sign of described information on services head.
Byte-by-byte reads information on services, determines that by the sign of information on services head this information on services is to belong to information on services agreement corresponding to which kind of network.
Step 2032: according to the protocol type of described information on services, use analytical algorithm corresponding to described protocol type to resolve described information on services.
By using the analytical algorithm of corresponding protocol type, information on services to be resolved and become character string by code conversion, the content that wherein parses can be the information such as transmission address, content of text and the chained address of information on services.After parsing information on services, this information on services is preserved.
Step 204: show the information on services after resolving.
The result that analytical algorithm is returned is presented on the page, and the user clicks the network address that parses, and can jump to corresponding webpage by browser.
Realize scene concrete, user A sends a urgent file by mobile Fetion software to user B.The safe assistant's software of QQ has been installed in the mobile terminal of user B, and the safe assistant's software of QQ loads startup automatically after starting mobile terminal.Be the information on services agreement that adopts GSM because the file of Fetion sends, so the mobile terminal of user B can receive and see this information on services.
Wherein, the safe assistant's of QQ workflow is: when mobile terminal receives service message, the safe assistant of QQ can be by registered in advance the broadcast of carrying information on services of the issue of the radio receiver receiving system in system, resolve this message after receiving, and intercept in the safe assistant's of QQ interception record, the user can open the content that the information on services that receives can be checked in the interception record.
The broadcast message with information on services that the embodiment of the present invention is issued by obtaining system, and resolve and show the information on services that extracts from broadcast message, make the user of the mobile terminal that uses Android operating system can get information on services.
Embodiment 3
Referring to Fig. 3, the embodiment of the present invention 3 has proposed to obtain in a kind of Android system the device of information on services, comprising:
Acquisition module 301 is used for obtaining the broadcast message of carrying information on services of system's issue;
Processing module 302 is used for extracting the information on services of described broadcast message, and resolves described information on services;
Display module 303 is used for showing described information on services.
In embodiment specifically, described processing module 302 comprises:
Obtain protocol type unit 3021, be used for determining according to the sign of described information on services head the protocol type of described information on services.
Resolution unit 3022 is used for the protocol type according to described information on services, uses analytical algorithm corresponding to described protocol type to resolve described information on services.
Wherein, described device also comprises:
Registering modules 304 is used in the registration of described system for the radio receiver that receives described information on services;
Sending module 305 is used for sending intercept information to system, makes system stop sending described broadcast message according to described intercept information;
Judge module 306 is used for judging whether described information on services belongs to default form.
The broadcast message with information on services that the embodiment of the present invention is issued by obtaining system, and resolve and show the information on services that extracts from broadcast message, make the user of the mobile terminal that uses Android operating system can get information on services.
One of ordinary skill in the art will appreciate that all or part of step that realizes above-described embodiment can complete by hardware, also can come the relevant hardware of instruction to complete by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be read-only memory, disk or CD etc.
The above is only preferred embodiment of the present invention, and is in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, is equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (10)

1. obtain the method for information on services in an Android system, it is characterized in that, described method comprises:
Obtain the broadcast message of carrying information on services of system's issue;
Extract the information on services in described broadcast message, and resolve described information on services;
Show described information on services.
2. method according to claim 1, is characterized in that, before the described broadcast message of carrying information on services of obtaining system issue, described method also comprises:
Registration is used for receiving the radio receiver of described information on services in described system.
3. method according to claim 1, is characterized in that, the described information on services of described parsing comprises:
Determine the protocol type of described information on services according to the sign of described information on services head.
According to the protocol type of described information on services, use analytical algorithm corresponding to described protocol type to resolve described information on services.
4. method according to claim 1, is characterized in that, after the information on services in the described broadcast message of described extraction, described method also comprises:
Send intercept information to system, make system stop sending described broadcast message according to described intercept information.
5. method according to claim 1, is characterized in that, after the information on services in the described broadcast message of described extraction, described method also comprises:
Judge whether described information on services belongs to default form.
6. obtain the device of information on services in an Android system, it is characterized in that, described device comprises:
Acquisition module is used for obtaining the broadcast message of carrying information on services of system's issue;
Processing module is used for extracting the information on services of described broadcast message, and resolves described information on services;
Display module is used for showing described information on services.
7. device according to claim 6, is characterized in that, described device also comprises:
Registering modules is used in the registration of described system for the radio receiver that receives described information on services.
8. device according to claim 6, is characterized in that, described processing module comprises:
Obtain the protocol type unit, be used for determining according to the sign of described information on services head the protocol type of described information on services.
Resolution unit is used for the protocol type according to described information on services, uses analytical algorithm corresponding to described protocol type to resolve described information on services.
9. device according to claim 6, is characterized in that, described device also comprises:
Sending module is used for sending intercept information to system, makes system stop sending described broadcast message according to described intercept information.
10. device according to claim 6, is characterized in that, described device also comprises:
Judge module is used for judging whether described information on services belongs to default form.
CN2011104032811A 2011-12-07 2011-12-07 Method and device for obtaining service information in Android system Pending CN103152701A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011104032811A CN103152701A (en) 2011-12-07 2011-12-07 Method and device for obtaining service information in Android system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011104032811A CN103152701A (en) 2011-12-07 2011-12-07 Method and device for obtaining service information in Android system

Publications (1)

Publication Number Publication Date
CN103152701A true CN103152701A (en) 2013-06-12

Family

ID=48550524

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011104032811A Pending CN103152701A (en) 2011-12-07 2011-12-07 Method and device for obtaining service information in Android system

Country Status (1)

Country Link
CN (1) CN103152701A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103412752A (en) * 2013-08-09 2013-11-27 Tcl集团股份有限公司 Event broadcasting adaptive service method and system
CN103595547A (en) * 2013-11-15 2014-02-19 北京奇虎科技有限公司 Broadcast intercept method and device of intelligent equipment
CN106714116A (en) * 2016-06-29 2017-05-24 腾讯科技(深圳)有限公司 Message processing method and apparatus
CN107273217A (en) * 2016-03-30 2017-10-20 阿里巴巴集团控股有限公司 A kind of method for information display, device and terminal device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020155848A1 (en) * 2001-04-20 2002-10-24 Lalitha Suryanarayana World wide web content synchronization between wireless devices
CN101222660A (en) * 2007-01-10 2008-07-16 中兴通讯股份有限公司 Method and device for receiving multimedia messages
CN101262644A (en) * 2008-04-02 2008-09-10 华为技术有限公司 SMS processing method and system, SMS analysis method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020155848A1 (en) * 2001-04-20 2002-10-24 Lalitha Suryanarayana World wide web content synchronization between wireless devices
CN101222660A (en) * 2007-01-10 2008-07-16 中兴通讯股份有限公司 Method and device for receiving multimedia messages
CN101262644A (en) * 2008-04-02 2008-09-10 华为技术有限公司 SMS processing method and system, SMS analysis method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
程序人生: ""Android 中WAP PUSH的实现分析"", 《HTTP://BLOG.SINA.COM.CN/S/BLOG_777C69930100VDIL.HTML》, 12 July 2011 (2011-07-12) *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103412752A (en) * 2013-08-09 2013-11-27 Tcl集团股份有限公司 Event broadcasting adaptive service method and system
CN103412752B (en) * 2013-08-09 2017-08-25 Tcl集团股份有限公司 A kind of event broadcasts adaptation services method and system
CN103595547A (en) * 2013-11-15 2014-02-19 北京奇虎科技有限公司 Broadcast intercept method and device of intelligent equipment
CN103595547B (en) * 2013-11-15 2016-07-13 北京奇虎科技有限公司 The broadcast hold-up interception method of smart machine and device
CN107273217A (en) * 2016-03-30 2017-10-20 阿里巴巴集团控股有限公司 A kind of method for information display, device and terminal device
CN107273217B (en) * 2016-03-30 2020-12-08 阿里巴巴集团控股有限公司 Information display method and device and terminal equipment
CN106714116A (en) * 2016-06-29 2017-05-24 腾讯科技(深圳)有限公司 Message processing method and apparatus
CN106714116B (en) * 2016-06-29 2018-11-06 腾讯科技(深圳)有限公司 A kind of message treatment method and device

Similar Documents

Publication Publication Date Title
US9432507B2 (en) System and method for providing information of outgoing call
CN104935744A (en) Verification code display method, verification code display device and mobile terminal
EP3193541A1 (en) Network access method and mobile communication terminal
CN103179159B (en) A kind of method and terminal browser processing third-party application
WO2011038564A1 (en) Adaptive method and system for screen display of mobile terminal in network application
EP3197213A1 (en) Network access method and mobile communication terminal
CN102143523A (en) Service delivery platform and application testing method based on service delivery platform
CN105050063A (en) Method and device for pushing information
CN104105007A (en) Video loading method of mobile terminal, devices and system
WO2016041171A1 (en) Method and apparatus for determining terminal roaming status, terminal and server
CN101771928B (en) Method and system and proxy server for Webpage transmitting
CN103200022B (en) A kind of data download abnormality eliminating method, equipment and system
US8880108B2 (en) Short message processing method and apparatus
CN105050059A (en) Information push method and information push platform
CN103152701A (en) Method and device for obtaining service information in Android system
CN101217734B (en) BREW page layout access method and terminal with BREW_URL addresses
CN101437205A (en) System and method for reading electronic newspaper on mobile terminal
CN103246501A (en) Method and client-side for sharing application
CN102711112A (en) Method and device for intercepting short message
EP2731380A1 (en) Apparatus and method for supporting communication network in portable terminal
CN101394594A (en) Method for transmitting message and related equipment
CN103974456A (en) Communication system and method
CN105635225A (en) Method and system of using mobile terminal to access mobile internet-based server and mobile terminal
US9998585B2 (en) Content selection and delivery of complementary information
US20130040630A1 (en) Method, system and mobile terminal for configuring access point and application information

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: 20130612