CN101552836A - Mobile Widget engine realizing method applied in cell phone - Google Patents
Mobile Widget engine realizing method applied in cell phone Download PDFInfo
- Publication number
- CN101552836A CN101552836A CNA200910098640XA CN200910098640A CN101552836A CN 101552836 A CN101552836 A CN 101552836A CN A200910098640X A CNA200910098640X A CN A200910098640XA CN 200910098640 A CN200910098640 A CN 200910098640A CN 101552836 A CN101552836 A CN 101552836A
- Authority
- CN
- China
- Prior art keywords
- widget
- data
- mobile
- adopt
- support
- 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
Links
Images
Abstract
The invention discloses a mobile Widget engine realizing method applied in cell phone. The method in the invention effectively realizes the Widget engine applied in cell phone by fully utilizing the desktop Widget system characteristics and the software and hardware functions in the cell phone itself. The invention adopts a technical scheme accordance with W3C Widget standard, expanded aiming to the cell phone characteristics; follows the desktop Widget basic framework system, supports safety and off-line mechanism, can realize complex animation effects and call the local function of the cell phone, can be used in the cell phones with different performances.
Description
Technical field
The present invention relates to the application and development field of mobile terminal device, particularly relate to a kind of implementation method that is applied to mobile Widget engine in the mobile phone.
Background technology
Widget can regard as and utilizes the Internet programming mode to wait the little application that realizes by XML and JavaScript.But Widget originates from an engine Konfabulator who supports fairly simple little application of relatively dazzling who realized in 2004 on MacOS, Konfabulator is transplanted to it in Windows system after being purchased by Yahoo, and this individual system has formed the technical system of desktop widget.Popular desktop widget system comprises Yahoo Widget, Apple Dashboard, Microsoft Gadgets etc. at present.Yahoo Widget is the free also multipad platform of being released by Yahoo of open source code.It is made up of Widget engine and Widget instrument two parts, can greatly convenience networks operate and improve desktop application.The Widget engine provides an Ajax application platform, can use under the operating system environment of Windows and Mac OS X.After being installed, engine just can on this platform, move Widget instrument miscellaneous.
Web Widget is any one section code that can be embedded into the web page, indication is very extensive, all is Web Widget from early stage Applet to Flash to banner towing Facebook Widget finally, Web Widget is a kind of little plug-in unit that can help the user to enjoy various application programs and network service better, and can be added on Web Community's homepage, blog or the desktop of oneself by the netizen, the application in network more and more widely.Web Widget need can work based on the running environment of browser.
Widget uses a kind of little application of rising as on the internet, prevailed on the internet Widget notion in 2007, show in November, 2007 according to data and to have used Widget with regard to the user near 600,000,000 is arranged, in ensuing 1 year, the form of the little application of Widget that adopt very great website has obtained pursuing of user and developer, and this has also brought rich profit for each big website.At present popular Widget uses Yahoo Widget, Windows Vista sidebar, Netvibes, iGoogle, blog sidebar (blogspot), grab shrimp Widget etc.
The notion that produces Widget at other-end equipment in such as mobile phone and TV proposed since 2007 second half year, and common idea is that some characteristics with desktop widget on the Internet and Web Widget are introduced into fields such as mobile phone and TV.It mainly is that cell-phone customer terminal is used at present that mobile Internet in the mobile phone is used.Through development in a few years, the cell-phone customer terminal that some occurred is used, and comprises mobile phone games, e-book, mobile phone magazine, cell phone map, mobile phone mailbox etc., and these application have obtained cellphone subscriber's welcome to a certain degree.But use for cell-phone customer terminal, subject matter has three: first, the adaptive problem of mobile phone, almost each client application all faces the adaptive workload to different mobile phones, cause third party development company energy can't be poured into the diversity application innovation fully, a often application is seized state power; The second, do not support technical problems such as dynamic application download, cause the cellphone subscriber to obtain the direct channel disappearance of application; The 3rd, the threshold that exists client application to develop can't be realized mass participation.These all cause cell-phone customer terminal to be used can't realize the surge of quality and quantity in essence, can't satisfy the mobile phone content application demand of user individual.This little application form of Widget is under this hardware condition that limitation relatively arranged of mobile phone terminal, differs and function differs by the form of expression, is that of the user that requires of increasing now pursuing individuality mobile phone well selects.
W3C sets up a work group since in October, 2006, prepare to formulate a unified Widget standard.Issued a series of standard since in April, 2008, up-to-date Widget interface and incident standard are in February, 2009 issues.These standard many places are in the preparatory stage, and main all at the desktop widget system, and also do not have actual progress at present at the standard of mobile Widget.
Summary of the invention
The object of the present invention is to provide a kind of implementation method that is applied to mobile Widget engine in the mobile phone.
The technical scheme that the present invention solves its technical problem employing is as follows:
1) adopt the AJAX programming framework of the Internet Widget, follow the basic framework of desktop widget:
Programming mode in mobile Widget is: adopt XML/CSS to carry out content and present; Undertaken by DOM that dynamic content represents and data interactive; Carry out exchanges data by XML or JSON; The function that the asynchronous data communication of XMLHttpRequest is arranged; By JavaScript or Java programming language content and data combination are in the same place;
2) adopt security module, support security mechanism, guarantee interface safety, application safety, personal data safety and network security:
Adopt the application interface of certificate verification, digital signature, layering to call the security mechanism assurance interface safety and the application safety of control; Adopt the mechanism of data encryption, network management to guarantee personal data safety and network security;
3) adopt cache module, support the offline mechanism of using:
Mobile Widget engine is at the characteristic binding data management of mobile Internet and the mechanism of metadata cache, realize offline mechanism, automatically the data that are buffered in when data do not need to upgrade in the local storage just can be used, and do not need to connect and the data process of downloading by data;
4) adopt animation, support animation effect:
Use the particularity of the form of expression based on Widget, usually pay attention to very much the quality and the animation effect of picture, the special treatment mechanism of strengthening for figure of mobile Widget engine, by<animator 〉,<animatorgroup〉can allow that all displaying contents do some animation effects, also support nonlinear animation effect and cartoon track;
5) adopt the local function calling module, support the local function of mobile phone to call:
Support the local function of mobile phone to call, comprise phone, note, multimedia message, phone directory, camera, mobile phone location, mobile TV, multimedia, bluetooth, inductor and local data base, by the JavaScript object, adversary's machine local function encapsulates.
Compare with background technology, the invention has the beneficial effects as follows:
(1) high efficiency.The present invention has realized a kind of mobile Widget engine that is applied in the mobile phone, use than present cell-phone customer terminal, the Widget application and development is simpler, more help popularizing rapidly, the geometric growth of number of applications often also can expedite the emergence of the appearance of the excellent popular application of numerous quality, and the diversity application that meets The long tail more presents the individual sexual demand that satisfies the user.
(2) reliability.The present invention carries out careful analysis by characteristics and mobile Widget product demand that present cell-phone customer terminal is used, has carefully designed the software configuration that is applied to mobile Widget engine in the mobile phone, has guaranteed that the Widget application can normally operation in mobile phone.
(3) practicality.A kind of implementation method that is applied to mobile Widget engine in the mobile phone that the present invention proposes can be used in the mobile phone of various different performances.
Description of drawings
Accompanying drawing is the development process figure of mobile Widget engine.
Embodiment
Mobile Widget engine is made of jointly basis operation module and card module, basis operation module wherein is the kernel that belongs to engine, thereby and card module is to carry out the integrated effect that reaches expansion Widget professional ability of third-party plug-in unit under the interface condition that the engine kernel is provided.The development process of mobile Widget engine as shown in drawings.
The technical characterstic of mobile Widget engine has:
1) adopt the AJAX programming framework of the Internet Widget, follow the basic framework of desktop widget:
The present invention has adopted the AJAX programming framework of the Internet Widget as shown in drawings, and has further adopted the abundanter RIA of expressive force (Rich Internet Application) rich internet application programming system.RIA has that rich content presents and the application development framework of strong interactivity.Typical R IA system comprises Adobe Flex, OpenLaszlo and Microsoft Silverlight, and the present invention develops and independently finishes the expansion of mobile phone end and technology extension on the basis of open source software OpenLaszlo.
Programming system of the present invention has some unique technique characteristics:
(1) support the Object-Oriented XML markup language, can generate a new label from a label, in the example below, the user can declare oneself a class, and this class is carried out instantiation:
<canvas width=″500″height=″80″> <class name=″MyClass″width=″80″height=″25″bgcolor=″#CFD9AB″> <text align=″center″valign=″middle″>Hello,World!</text> </class> <MyClass name=″myFirstInstance″/> </canvas> |
The object based programming of support of the present invention can also be supported the succession of class.Be an example that simple class is inherited below:
<canvas width=″500″height=″80″> <class name=″SpecialButton″extends=″button″onclick=″changeLabel()″> <method name=″changeLabel″> this.setAttribute(′text′,′Clicked!′); </method> </class> <SpecialButton>Not clicked</SpecialButton> </canvas> |
(2) support data binding easily by XPath, avoid the place of some inconveniences that XMLHttpRequest brought, such as declaring a data set:
<dataset name=″myData″> <myXML> <person show=″simpsons″> <firstName>Homer</firstName> <lastName>Simpson</lastName> </person> <person show=″simpsons″> <firstName>Marge</firstName> <lastName>Simpson</lastName> </person> <person show=″simpsons″> <firstName>Montgomery</firstName> <lastName>Burns</lastName> </person> </myXML> </dataset> |
When needs obtained the name of Marge, the literary style below adopting was just passable:
<text datapath=″myData:/myXML/person[2]/firstName/text()″/> |
Data source can obtain with three kinds of modes, is respectively Embedded, and Included and HTTP download.Can simple declaration by following form:
Mode | For example |
Embedded | <dataset name=”myData”> <myXML>...</myXML> </dataset> |
Included | <dataset name=”myData”src=”myXMLDoc.xml”/> |
HTTP downloads | <dataset name=”myData”request=”true” type=”http”src=”myXMLDoc.xml”/> |
(3) carry out dynamic content by DOM and show, and can compare complicated program easily, support mobile phone games
Because programming system of the present invention and Flash are more approaching, mobile Widget can be supported the programming of more complicated among the present invention, especially supports the mobile phone games programming.Common on the internet Flash recreation should realize on the mobile Widget in the present invention.
2) adopt security module, support security mechanism, guarantee interface safety, application safety, personal data safety and network security:
The present invention supports Widget to call local interface and local resource, must carry out security control to these interfaces and resource.Security module can guarantee interface safety, personal data safety, network security and application safety as shown in drawings.Following security model is here arranged:
(1) each Widget may have digital signature, does not have the Widget of digital signature to have only least privilege;
(2) the Widget engine has digital certificate, and digital certificate is provided and authenticated by certificate agency; The mechanism and the certificate mechanism on the Internet of certificate are duplicate, also can directly adopt the certificate on the Internet, such as the certificate of VeriSign;
(3) adopt Policy to declare using the interface that needs to authorize, docking port adopts layered authorization; Operator, cell phone manufacturer, the application and development commercial city that is authorized to have different authorities;
(4) personal data are encrypting storing, need password and can read relevant content;
(5) adopt copyright protection (DRM) technology that authorized content is protected;
(6) systems such as charging are carried out secure package, anti-swindle.
3) adopt cache module, support the offline mechanism of using:
Mobile Widget engine among the present invention comprises cache module as shown in drawings, provides easily offline mechanism to use to application developer.By following simple statement, data will be buffered in the local storage automatically, just can not use at once when data do not need to upgrade, and not need to connect and the data process of downloading by data:
<dataset src=″http://hostname/path″cachable=″true″/> |
Offline mechanism is one of most important technology of mobile Widget engine, and is convenient for users to use to a great extent, and saved data traffic.
4) adopt animation, support animation effect:
Mobile Widget engine among the present invention comprises animation as shown in drawings, supports the animation effect of more complicated.By<animator 〉,<animatorgroup〉can allow that all displaying contents do some animation effects, also can support nonlinear animation effect and cartoon track.Such as following simple code is exactly an example of following non-linear animation:
<canvas height=″50″> <view width=″30″height=″30″bgcolor=″red″x=″${225-(this.sqrtx* this.sqrtx)}″> <attribute name=″sqrtx″value=″-15″/> <animator attribute=″sqrtx″from=″-15″to=″15″duration=″3000″ repeat=″Infinity″/> </view> </canvas> |
5) adopt the local function calling module, support the local function of mobile phone to call: the mobile Widget engine among the present invention comprises the local function calling module as shown in drawings, the local function of mobile phone comprise make a phone call, note, multimedia message, phone directory, camera, mobile phone location, mobile TV, multimedia, bluetooth, inductor, local data base etc.
By the JavaScript object, adversary's machine local function encapsulates.Following Example is the interface function that obtains mobile phone location:
interface Position { long timestamp; Coordinates coords; } |
Claims (1)
1. implementation method that is applied to mobile Widget engine in the mobile phone is characterized in that:
1) adopt the AJAX programming framework of the Internet Widget, follow the basic framework of desktop widget:
Programming mode in mobile Widget is: adopt XML/CSS to carry out content and present; Undertaken by DOM that dynamic content represents and data interactive; Carry out exchanges data by XML or JSON; The function that the asynchronous data communication of XMLHttpRequest is arranged; By JavaScript or Java programming language content and data combination are in the same place;
2) adopt security module, support security mechanism, guarantee interface safety, application safety, personal data safety and network security:
Adopt the application interface of certificate verification, digital signature, layering to call the security mechanism assurance interface safety and the application safety of control; Adopt the mechanism of data encryption, network management to guarantee personal data safety and network security;
3) adopt cache module, support the offline mechanism of using:
Mobile Widget engine is at the characteristic binding data management of mobile Internet and the mechanism of metadata cache, realize offline mechanism, automatically the data that are buffered in when data do not need to upgrade in the local storage just can be used, and do not need to connect and the data process of downloading by data;
4) adopt animation, support animation effect:
Use the particularity of the form of expression based on Widget, usually pay attention to very much the quality and the animation effect of picture, the special treatment mechanism of strengthening for figure of mobile Widget engine, by<animator 〉,<animatorgroup〉can allow that all displaying contents do some animation effects, also support nonlinear animation effect and cartoon track;
5) adopt the local function calling module, support the local function of mobile phone to call:
Support the local function of mobile phone to call, comprise phone, note, multimedia message, phone directory, camera, mobile phone location, mobile TV, multimedia, bluetooth, inductor and local data base, by the JavaScript object, adversary's machine local function encapsulates.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA200910098640XA CN101552836A (en) | 2009-05-18 | 2009-05-18 | Mobile Widget engine realizing method applied in cell phone |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA200910098640XA CN101552836A (en) | 2009-05-18 | 2009-05-18 | Mobile Widget engine realizing method applied in cell phone |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101552836A true CN101552836A (en) | 2009-10-07 |
Family
ID=41156809
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA200910098640XA Pending CN101552836A (en) | 2009-05-18 | 2009-05-18 | Mobile Widget engine realizing method applied in cell phone |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101552836A (en) |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101799766A (en) * | 2010-03-26 | 2010-08-11 | 青岛海信电器股份有限公司 | Method and device for analyzing script file by using third engine in Widget engine |
CN101807172A (en) * | 2010-03-15 | 2010-08-18 | 青岛海信电器股份有限公司 | Function presentation method and device |
CN101814030A (en) * | 2010-04-22 | 2010-08-25 | 四川长虹电器股份有限公司 | Menu updating method in Widget |
CN101930366A (en) * | 2010-08-27 | 2010-12-29 | 武汉天喻信息产业股份有限公司 | Browser-based mobile phone middleware |
CN101951605A (en) * | 2010-09-14 | 2011-01-19 | 浙江大学 | Digital signature method of movable Widget |
CN101977230A (en) * | 2010-10-21 | 2011-02-16 | 中兴通讯股份有限公司 | Security protection method and system for widget application |
WO2011069377A1 (en) * | 2009-12-10 | 2011-06-16 | 华为技术有限公司 | Method and apparatus for generating widget |
CN102129386A (en) * | 2011-01-04 | 2011-07-20 | 中兴通讯股份有限公司 | Mobile widget and method for realizing terminal transplantation for same |
CN102143267A (en) * | 2011-03-31 | 2011-08-03 | 中兴通讯股份有限公司 | Wireless communication device and working method thereof |
WO2011120421A1 (en) * | 2010-03-31 | 2011-10-06 | 北京飞天诚信科技有限公司 | Method for implementing encryption engine |
CN102314659A (en) * | 2010-06-29 | 2012-01-11 | 微软公司 | Advertisement and use between mutual |
CN101742007B (en) * | 2009-12-16 | 2012-11-14 | 中国电信股份有限公司 | Method and system for opening voice conference by utilizing Widget technology |
CN103064662A (en) * | 2012-08-28 | 2013-04-24 | 华南理工大学 | Phone Gap cross-platform media expansion frame based on Android platform |
WO2013075465A1 (en) * | 2011-11-24 | 2013-05-30 | 中兴通讯股份有限公司 | Method and client for offline running of widget |
CN103176602A (en) * | 2011-12-23 | 2013-06-26 | Qnx软件系统有限公司 | Method of presenting digital data on an electronic device operating under different environmental conditions |
CN101727358B (en) * | 2009-12-15 | 2013-11-20 | 中国电信股份有限公司 | Method and system for realizing inter-Widget-application communication |
CN110780951A (en) * | 2018-07-30 | 2020-02-11 | 西安中兴新软件有限责任公司 | Alignment display method and device of display area, terminal and storage medium |
-
2009
- 2009-05-18 CN CNA200910098640XA patent/CN101552836A/en active Pending
Cited By (23)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2011069377A1 (en) * | 2009-12-10 | 2011-06-16 | 华为技术有限公司 | Method and apparatus for generating widget |
CN101727358B (en) * | 2009-12-15 | 2013-11-20 | 中国电信股份有限公司 | Method and system for realizing inter-Widget-application communication |
CN101742007B (en) * | 2009-12-16 | 2012-11-14 | 中国电信股份有限公司 | Method and system for opening voice conference by utilizing Widget technology |
CN101807172A (en) * | 2010-03-15 | 2010-08-18 | 青岛海信电器股份有限公司 | Function presentation method and device |
CN101799766A (en) * | 2010-03-26 | 2010-08-11 | 青岛海信电器股份有限公司 | Method and device for analyzing script file by using third engine in Widget engine |
CN101799766B (en) * | 2010-03-26 | 2013-03-20 | 青岛海信电器股份有限公司 | Method and device for analyzing script file by using third engine in Widget engine |
WO2011120421A1 (en) * | 2010-03-31 | 2011-10-06 | 北京飞天诚信科技有限公司 | Method for implementing encryption engine |
CN101814030A (en) * | 2010-04-22 | 2010-08-25 | 四川长虹电器股份有限公司 | Menu updating method in Widget |
CN102314659A (en) * | 2010-06-29 | 2012-01-11 | 微软公司 | Advertisement and use between mutual |
CN101930366A (en) * | 2010-08-27 | 2010-12-29 | 武汉天喻信息产业股份有限公司 | Browser-based mobile phone middleware |
CN101930366B (en) * | 2010-08-27 | 2013-04-17 | 武汉天喻信息产业股份有限公司 | Browser-based mobile phone run time system |
CN101951605A (en) * | 2010-09-14 | 2011-01-19 | 浙江大学 | Digital signature method of movable Widget |
CN101977230A (en) * | 2010-10-21 | 2011-02-16 | 中兴通讯股份有限公司 | Security protection method and system for widget application |
WO2012051821A1 (en) * | 2010-10-21 | 2012-04-26 | 中兴通讯股份有限公司 | Method and system for protecting widget application security |
CN101977230B (en) * | 2010-10-21 | 2015-10-21 | 中兴通讯股份有限公司 | A kind of widget application safety guard method and system |
CN102129386A (en) * | 2011-01-04 | 2011-07-20 | 中兴通讯股份有限公司 | Mobile widget and method for realizing terminal transplantation for same |
CN102129386B (en) * | 2011-01-04 | 2015-10-21 | 中兴通讯股份有限公司 | A kind of mobile widgets and realize terminal transplant method |
CN102143267A (en) * | 2011-03-31 | 2011-08-03 | 中兴通讯股份有限公司 | Wireless communication device and working method thereof |
WO2013075465A1 (en) * | 2011-11-24 | 2013-05-30 | 中兴通讯股份有限公司 | Method and client for offline running of widget |
CN103176602A (en) * | 2011-12-23 | 2013-06-26 | Qnx软件系统有限公司 | Method of presenting digital data on an electronic device operating under different environmental conditions |
CN103064662A (en) * | 2012-08-28 | 2013-04-24 | 华南理工大学 | Phone Gap cross-platform media expansion frame based on Android platform |
CN110780951A (en) * | 2018-07-30 | 2020-02-11 | 西安中兴新软件有限责任公司 | Alignment display method and device of display area, terminal and storage medium |
CN110780951B (en) * | 2018-07-30 | 2022-08-23 | 西安中兴新软件有限责任公司 | Alignment display method and device of display area, terminal and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101552836A (en) | Mobile Widget engine realizing method applied in cell phone | |
US11252252B2 (en) | Installable web applications | |
US9130932B2 (en) | Hybrid network application architecture | |
CN105391840B (en) | Automatically create destination application | |
US10572685B1 (en) | Protecting sensitive data | |
CN103136034B (en) | A kind of method of process information and browser | |
CN106372465A (en) | Safety management method and system for dynamic link library and electronic equipment | |
EP2000926A3 (en) | Web application configuration method and system | |
CN105101147B (en) | A kind of method and system of orientation flow that realizing mobile app | |
US9760929B2 (en) | Managing rights for installed software applications and items purchased therewith | |
CN102769578A (en) | System and method for integrating microblog management systems in multiple platforms | |
CN105099796B (en) | A kind of multimedia content change detection method, device and resource broadcasting system | |
EP2823411A1 (en) | A method and system of application development for multiple device client platforms | |
CN105701198B (en) | Page verification method and device | |
CN102156650B (en) | Method and device capable of implementing automatic analysis of patch | |
US20190320044A1 (en) | Coordinating services across multiple providers | |
CN105138399A (en) | Cross-platform mobile Web application runtime engine | |
CN109918876A (en) | Permission filter method and permission filter device | |
CN109862399A (en) | It shows the method for rich media information, handle method, computer installation and the computer readable storage medium of rich media information | |
CN102298521A (en) | Mobile internet application system based on cross-platform browsing technology | |
CN102158542A (en) | CBAE platform | |
CN107122446A (en) | The synchronisation control means and system of subscriber phone number between a kind of bank's multisystem | |
CN103780637B (en) | Information sharing apparatus and method | |
CN107967088A (en) | A kind of message display method, device, terminal and readable storage medium storing program for executing | |
Pavlovski | A multi-channel system architecture for banking |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Open date: 20091007 |