CN103338114B - A kind of exchange method based on android system notification message - Google Patents

A kind of exchange method based on android system notification message Download PDF

Info

Publication number
CN103338114B
CN103338114B CN201310219736.3A CN201310219736A CN103338114B CN 103338114 B CN103338114 B CN 103338114B CN 201310219736 A CN201310219736 A CN 201310219736A CN 103338114 B CN103338114 B CN 103338114B
Authority
CN
China
Prior art keywords
message
content
android system
picture
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.)
Active
Application number
CN201310219736.3A
Other languages
Chinese (zh)
Other versions
CN103338114A (en
Inventor
曾琦凌
杨金炜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric 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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN201310219736.3A priority Critical patent/CN103338114B/en
Publication of CN103338114A publication Critical patent/CN103338114A/en
Application granted granted Critical
Publication of CN103338114B publication Critical patent/CN103338114B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a kind of switching method based on android system notification message, be specially, in A, in the information heart list, when user choose wherein an information time, just launch the content choosing information, unchecked message only shows its essential information comprising title, icon; B, when information centre receives the message with picture, carry out adaptive convergent-divergent to picture according to the content view size of every bar information, the background picture being re-used as information presents; C, when information centre receives with when needing the information of voice broadcast, notice voice system carries out real-time broadcasting and transmits reporting content.This exchange method can meet comprehensively presenting of the complicated content such as picture, word, voice, and when message number is various, user also can view certain message in the very first time.

Description

A kind of exchange method based on android system notification message
Technical field
The present invention relates to a kind of switching method of notification message, particularly relate to a kind of exchange method based on android system intelligent terminal notification message.
Background technology
Android system becomes the Mainstream Platform of the intelligent terminals such as intelligent television at present, in android system, the notice center of intelligent terminal itself can simply present some message, but comprehensively presenting, especially as this abundant in content message of displaying predetermined programme of the complicated content such as picture, word, voice can not be met.When message number is various, user also not easily views certain message in the very first time.This experience being user brings great inconvenience.
Summary of the invention
The technical problem to be solved in the present invention is to provide the switching method that a kind of intelligent terminal based on android system can receive more notification message contents, be specially, in A, in the message heart list, when user choose wherein a piece of news time, just launch the content of selected message, unchecked message only shows its basic messae comprising title, icon; B, when message center receives the message with picture, carry out adaptive convergent-divergent to picture according to the content view size of every bar message, the background picture being re-used as message presents; C, when message center receives with when needing the message of voice broadcast, notice voice system carries out real-time broadcasting and transmits reporting content.This exchange method can meet comprehensively presenting of the complicated content such as picture, word, voice, and when message number is various, user also can view certain message in the very first time.
The technical solution used in the present invention is as follows: a kind of exchange method based on android system notification message, is characterized in that: concrete grammar is:
In A, in the message heart list, when user choose wherein a piece of news time, just launch the content of selected message, unchecked message only shows its basic messae comprising title, icon;
B, when message center receives the message with picture, carry out adaptive convergent-divergent to picture according to the content view size of every bar message, the background picture being re-used as message presents;
C, when message center receives with when needing the message of voice broadcast, notice voice system carries out real-time broadcasting and transmits reporting content.
As preferably, the concrete grammar step of described method A is:
A-1, customize the layout control of every bar message, comprised title, the basic messae of icon and particular content message separately, and adopt the mode be arranged above and below;
A-2, this control is set focus event logic for obtaining focus time, the visibility attribute of particular content is set to View.VISIBLE, when losing focus, is set to View.GONE;
A-3, after message center receives message, the focus according to user is selected, and the message content automatically will chosen launches, and unchecked message content closes up.
As preferably, the concrete grammar step of described method B is:
B-1, in the notification message data structure of android system, increase background member variable for preserving the picture resource ID of message background, increase setBackground call method simultaneously, the ID of background picture resource is set to the value of background variable;
B-2, in the AIDL interface of android system, increase the method for the setBackground definition in step B-1;
B-3, when it receives a message according to the background value of message, get this value by the PackageManager of android system and sending BITMAP resource object corresponding in the application program of message, then perform step B-4;
B-4, this resource is carried out convergent-divergent process by the BitmapFactory class that the BITMAP resource got is carried by android system, make its size meet the region of display.
As preferably, the concrete grammar step of described method C is:
C-1, in the notification message data structure of android system, increasing useVoice member variable for preserving the mark the need of using voice broadcast, increasing setUseVoice call method simultaneously, the value of useVoice variable is set;
C-2, in the AIDL interface of android system, increase the define method of the setUseVoice in step C-1;
C-3, definition and the broadcast communication agreement of speech engine communication, increase the detailed content field of report, in the broadcast for reporting concrete content;
The processing policy at C-4, customized messages center, passes through broadcast transmission by needing the content of text reported.
As preferably, the processing policy in described method C-4 refers to: when it receives a message according to the useVoice value of message, by the broadcast mechanism of affiliated android system standard, passes through broadcast transmission by needing the content of text reported.
Compared with prior art, the invention has the beneficial effects as follows: this exchange method can meet comprehensively presenting of the complicated content such as picture, word, voice, and when message number is various, user also can view certain message in the very first time.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with embodiment, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
All features disclosed in this specification, except the feature got rid of mutually, all can combine by any way.
Arbitrary feature disclosed in this specification (comprising any accessory claim, summary), unless specifically stated otherwise, all can be replaced by other equivalences or the alternative features with similar object.That is, unless specifically stated otherwise, each feature is an example in a series of equivalence or similar characteristics.
Based on an exchange method for android system notification message, concrete grammar is:
In A, in the message heart list, when user choose wherein a piece of news time, just launch the content of selected message, unchecked message only shows its basic messae comprising title, icon, facilitates user can browse to more message in the very first time easily and select like this;
B, when message center receives the message with picture, according to the content view size of every bar message, adaptive convergent-divergent is carried out to picture, the background picture being re-used as message presents, thus the response speed taking, accelerate system, the lifting Consumer's Experience that significantly reduce internal memory, it is not only the message comprising word that message center can be received, receiving belt can also to have powerful connections the message of picture, and provide interface to call to third party;
C, receive with when needing the message of voice broadcast when message center, by the protocol contents formulated with voice broadcasting system in advance, notice voice system carries out real-time broadcasting and transmits reporting content, allow message center can receive message with voice broadcast demand, and provide interface to call to third party.
The concrete grammar step of described method A is:
A-1, customize the layout control of every bar message, comprised title, the basic messae of icon and particular content message separately, and adopt the mode be arranged above and below;
A-2, this control is set focus event logic for obtaining focus time, the visibility attribute of particular content is set to View.VISIBLE(visible), be set to View.GONE(when losing focus invisible, and do not taken placement position);
A-3, after message center receives message, the focus according to user is selected, and the message content automatically will chosen launches, and unchecked message content closes up.
The concrete grammar step of described method B is:
B-1, in the notification message data structure of Android standard, increase background member variable for preserving the picture resource ID of message background, increase setBackground call method simultaneously, the ID of background picture resource is set to the value of background variable;
B-2, in the AIDL interface of android system, increase the method for the setBackground definition in step B-1, call for third-party application;
The processing policy at B-3, customized messages center, when it receives a message according to the background value of message, get this value BITMAP resource object corresponding in the application program sending message by the PackageManager of android system, then perform step B-4;
B-4, this resource is carried out convergent-divergent process by the BitmapFactory class that the BITMAP resource got is carried by android system, make its size meet the region of display.
In step B-1, background variate-value is an Image ID number, and third party calls setBackground method, imports Image ID number value into, then background variable is composed into Image ID number value in setBackground method.
The concrete grammar step of described method C is:
C-1, in the notification message data structure of android system, increasing useVoice member variable for preserving the mark the need of using voice broadcast, increasing setUseVoice call method simultaneously, the value of useVoice variable is set;
C-2, in the AIDL interface of android system, increase the define method of the setUseVoice in step C-1, call for third-party application;
C-3, definition and the broadcast communication agreement of speech engine communication, increase the detailed content field of report, in the broadcast for reporting concrete content;
The processing policy at C-4, customized messages center, passes through broadcast transmission by needing the content of text reported.
In step C-1, the value arranging useVoice variable arranges the mark that need not need voice broadcast, called side imports an integer into by setUseVoice method, in the method this value imported into is assigned to useVoice variable (0 expression is not reported, and non-zero expression needs to report).
In step C-3, first define what a agreement exactly with the phonetic function part of Android intelligent terminal, when sending out broadcast with the broadcast mechanism of Android standard to phonological component, it can know what these things that broadcast is sent out represent.
Processing policy in described method C-4 refers to: when it receives a message according to the useVoice value of message, by the broadcast mechanism of affiliated android system standard, passes through broadcast transmission by needing the content of text reported.
The intelligent terminal of Android system, when by sending broadcast, defines key value with phonological component, and can take out corresponding value by key value, the value of its correspondence is the content of text of concrete message.Like this, when after phonetic incepting to my broadcast, can by inquiry key, and the content of text of the message that the value(obtaining its correspondence namely sends).
For the intelligent terminal using android system, system can receive the message of more multi-form content, and enables user directly check these message in the heart in the message efficiently, and provides the multiple mode presenting message.For intelligent television, integrate each terminal message source, message is incorporated in message center, facilitates user to find the abundant in content message as displaying predetermined programme the very first time.

Claims (4)

1. based on an exchange method for android system notification message, it is characterized in that: concrete grammar is:
In A, in the message heart list, when user choose wherein a piece of news time, just launch the content of selected message, unchecked message only shows its basic messae comprising title, icon;
B, when message center receives the message with picture, carry out adaptive convergent-divergent to picture according to the content view size of every bar message, the background picture being re-used as message presents;
C, when message center receives with when needing the message of voice broadcast, notice voice system carries out real-time broadcasting and transmits reporting content;
The concrete grammar step of described method A is:
A-1, customize the layout control of every bar message, comprised title, the basic messae of icon and particular content message separately, and adopt the mode be arranged above and below;
A-2, this control is set focus event logic for obtaining focus time, the visibility attribute of particular content is set to View.VISIBLE, when losing focus, is set to View.GONE;
A-3, after message center receives message, the focus according to user is selected, and the message content automatically will chosen launches, and unchecked message content closes up.
2. method according to claim 1, is characterized in that: the concrete grammar step of described method B is:
B-1, in the notification message data structure of android system, increase background member variable for preserving the picture resource ID of message background, increase setBackground call method simultaneously, the ID of background picture resource is set to the value of background variable;
B-2, in the AIDL interface of android system, increase the method for the setBackground definition in step B-1;
B-3, when it receives a message according to the background value of message, get this value by the PackageManager of android system and sending BITMAP resource object corresponding in the application program of message, then perform step B-4;
B-4, this resource is carried out convergent-divergent process by the BitmapFactory class that the BITMAP resource got is carried by android system, make its size meet the region of display.
3. method according to claim 1, is characterized in that: the concrete grammar step of described method C is:
C-1, in the notification message data structure of android system, increasing useVoice member variable for preserving the mark the need of using voice broadcast, increasing setUseVoice call method simultaneously, the value of useVoice variable is set;
C-2, in the AIDL interface of android system, increase the define method of the setUseVoice in step C-1;
C-3, definition and the broadcast communication agreement of speech engine communication, increase the detailed content field of report, in the broadcast for reporting concrete content;
The processing policy at C-4, customized messages center, passes through broadcast transmission by needing the content of text reported.
4. method according to claim 3, it is characterized in that: the processing policy in described step C-4 refers to: when it receives a message according to the useVoice value of message, by the broadcast mechanism of affiliated android system standard, pass through broadcast transmission by needing the content of text reported.
CN201310219736.3A 2013-06-05 2013-06-05 A kind of exchange method based on android system notification message Active CN103338114B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310219736.3A CN103338114B (en) 2013-06-05 2013-06-05 A kind of exchange method based on android system notification message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310219736.3A CN103338114B (en) 2013-06-05 2013-06-05 A kind of exchange method based on android system notification message

Publications (2)

Publication Number Publication Date
CN103338114A CN103338114A (en) 2013-10-02
CN103338114B true CN103338114B (en) 2016-03-30

Family

ID=49246219

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310219736.3A Active CN103338114B (en) 2013-06-05 2013-06-05 A kind of exchange method based on android system notification message

Country Status (1)

Country Link
CN (1) CN103338114B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015176673A1 (en) * 2014-05-22 2015-11-26 北京奇虎科技有限公司 Method and device for storing status bar notification, and management handover method and device
CN104615430A (en) * 2015-01-23 2015-05-13 久邦计算机技术(广州)有限公司 Android-system-based information notification display system and implementation method of Android-system-based information notification display system
CN105898519A (en) * 2015-12-31 2016-08-24 乐视致新电子科技(天津)有限公司 WiFi list display method and device
CN105792007A (en) * 2016-05-06 2016-07-20 青岛海信电器股份有限公司 Notification message display and interaction method and device based on intelligent television
CN110908764B (en) * 2019-11-27 2021-06-22 四川长虹电器股份有限公司 Method for realizing Android message management and control
CN112052059A (en) * 2020-09-04 2020-12-08 北京达佳互联信息技术有限公司 Popup display method and device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101008994A (en) * 2006-01-24 2007-08-01 腾讯科技(深圳)有限公司 System and method for editing theme of received e-mail
CN101247548A (en) * 2007-02-15 2008-08-20 明基电通股份有限公司 Method for transferring information and communication device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8862092B2 (en) * 2010-06-25 2014-10-14 Emergensee, Inc. Emergency notification system for mobile devices

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101008994A (en) * 2006-01-24 2007-08-01 腾讯科技(深圳)有限公司 System and method for editing theme of received e-mail
CN101247548A (en) * 2007-02-15 2008-08-20 明基电通股份有限公司 Method for transferring information and communication device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
【Android】状态栏通知Notification、NotificationManager详解;feng88724;《http://blog.csdn.net/feng88724/article/details/6259071》;20110318;第1-14页 *

Also Published As

Publication number Publication date
CN103338114A (en) 2013-10-02

Similar Documents

Publication Publication Date Title
CN103338114B (en) A kind of exchange method based on android system notification message
CN104618560B (en) Incoming call prompt processing method and device for mobile terminal
CN103428377A (en) Visible IVR (Interactive Voice Response) implementation method and system
CN105472430B (en) Method, equipment and the system of mobile terminal jingle bell are controlled by smart television
CN104754536A (en) Method and system for realizing communication between different languages
CN103248757A (en) Method and device for message notification
US20140325385A1 (en) Methods and instant messaging client devices for performing im using menu option
CN106933839A (en) A kind of method for page jump and device
CN103607779A (en) Multi-screen coordination intelligent input system and realization method thereof
CN103297325A (en) Method, device and equipment for interacting with third-party application in instant messaging system
CN102769691A (en) Prompt method of new message and communication terminal
CN104202342A (en) Visualized voice communication system and communication method
US10652185B2 (en) Information sending method and information sending apparatus
CN105704106B (en) A kind of visualization IVR implementation method and mobile terminal
KR100881657B1 (en) System for providing widzet type idle-screen
CN107211274A (en) A kind of equipment correlating method and relevant device
CN105208520A (en) Method and device for automatic information sending of mobile terminal
CN104639982A (en) Method for realizing screen capture by using set top box remote controller and set top box
WO2017071242A1 (en) Method and device for disabling notification in application window
CN106470404B (en) Realize that short message receives method, signature service platform and the system of personalized signature
CN104168386B (en) Double card changing method and device
CN107659702A (en) The anti-harassment method and system of landline telephone and relevant device
EP2814211A1 (en) Method and device for displaying conversation information
CN102710989B (en) A kind of notifier processes method and device of TV applications
CN103533173A (en) Method for setting mobile phone text message

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant