开发者

Mobile Web App not coming up in Android Emulator

I am a newbie to Android. I have written several small programs with just basic functionality in Android. I am using the Eclipse plugin for Android. I am now working with JQuery Mobile and creating a Mobile Web Application. I have tried researching my answer. What I have done is: 1. grant user privileges for the Internet for my application. 2. Test the emulator with the provided web browser so see that one can get out over the internet within the emulator. I can hit Google with no problem. When I click on my "News" application, the error comes back that the emulator does not find my html page.

/* 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();
                  }); 

Can someone please offer any suggestions on how one debugs this behavior? Is there a link someone can throw me explaining how to debug mobile web applications? Suggestions would be greatly appreciated.

Thanks for reading my post.

Russ


For the good of the group.... Lesson learned. When you use tutorials, check the source code as it may not match the documented version. Once I did this, I realized the URL was not formed correctly---duh!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜