2011-03-31 57 views
0

我是Android的新手。我已经用Android中的基本功能编写了几个小程序。我正在使用适用于Android的Eclipse插件。我现在正在与JQuery Mobile合作并创建一个移动Web应用程序。我试图研究我的答案。我所做的是:1.为我的应用程序授予Internet的用户权限。 2.用提供的网络浏览器测试仿真器,看看仿真器可以通过互联网出去。我可以击中谷歌没有问题。当我点击我的“新闻”应用程序时,错误返回,模拟器没有找到我的html页面。移动Web应用程序不会在Android模拟器中出现

/* When a page is loaded in the browser, we get the stored news 
* categories and process them on after another to create a list 
* for each news category 
*/ 

$(document).ready(function() {   
        showProgress(); 
        var storedNewsTxt = $.DSt.get(COOKIE_NAME); 

        if(storedNewsTxt != null && storedNewsTxt.length > 0){ 
         storedNewsArr = storedNewsTxt.split(COMMA); 
        }else{ 
         storedNewsArr = new Array(); 
        }  
        numNewsToRestore = storedNewsArr.length;  
        restore(); 
        }); 

有人可以提供任何建议如何调试此行为?有人可以向我解释如何调试移动Web应用程序的链接吗?建议将不胜感激。

感谢您阅读我的文章。

拉斯

+1

你是如何加载页面的? html文件在哪里? – 2011-03-31 17:17:58

+1

index.html位于asset/www /目录下。我点击模拟器窗口内的“新闻”程序。那是当我得到错误说它找不到页面。 – rray 2011-03-31 17:31:54

回答

0

为了好的团体....经验教训。当您使用教程时,请检查源代码,因为它可能与记录的版本不匹配。一旦我做到了这一点,我意识到网址没有正确形成---呃!