我正在尝试复制标准的PDF查看器。我已经复制了源代码,但是在将它们部署到模拟器之后,当用户点击其中的'next'/'prev‘页面时,日志中会出现以下错误: Error: service request: palm://com.palm.pdf is not running
这发生在以下代码中:
executeJump: function ( numPages ) {
Mojo.Log.info("JUMPING TO THE PAGE: " + numPages);
//this.controller.serviceRequest('palm://com.palm.pdf/events', {
this.controller.serviceRequest('palm://com.palm.pdf/events', {
method: 'jumpToPage',
parameters: {
docid: this.document_id,
numPages: numPages
},
onSuccess: function(payload) {
if ((payload.errorCode !== undefined) || (payload.curPage === undefined)) {
Mojo.Log.error("executeJump failed: " + Object.toJSON( payload ) );
return;
}
this.currentpage = payload.curPage;
}.bind(this)
});
},我已经用谷歌搜索了所有的服务,但我找不到任何关于这个服务(com.palm.pdf)的文档,为什么它不是在我的应用程序中启动,而是在标准应用程序中启动?标准的应用程序名为com.palm.pdfviewer。
任何帮助都是非常感谢的。
发布于 2009-08-18 09:57:37
这里有一个可能的解决方案:http://blog.shevchuk.org/2009/08/18/webos-palm-pdf-service-error/
https://stackoverflow.com/questions/1264598
复制相似问题