Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/196.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 错误---未知错误-6_Android_Eclipse_Jquery Mobile_Cordova - Fatal编程技术网

Android 错误---未知错误-6

Android 错误---未知错误-6,android,eclipse,jquery-mobile,cordova,Android,Eclipse,Jquery Mobile,Cordova,我正在使用phonegap和jquery mobile为android构建一个应用程序。我犯了一个错误 未知错误-6 我没有得到错误的确切来源- 但是我在执行下面的代码时出错了 getList.js $(document).ready( function() { $('#getList').css({ 'color' : 'red' }); $("#getList").live('tap',function() { $.ajax ({

我正在使用phonegap和jquery mobile为android构建一个应用程序。我犯了一个错误 未知错误-6

我没有得到错误的确切来源- 但是我在执行下面的代码时出错了

getList.js

$(document).ready(
function() {
    $('#getList').css({ 'color' : 'red' });

    $("#getList").live('tap',function() {
        $.ajax
        ({
        url:'/home/rads-infi/workspace/jsonobject.json',

            type : 'GET',
            data : {'category' : 'bollywood'},
            success : function(jsonObj) {
                    alert("success");
                    alert(jsonObj);
                    var sony_result = $.parseJSON(jsonObj);
                     alert(sony_result);

                      // $('#content-list').html(sony_result[0].active_at_date);
            /*$('#content-list ul').append(
                '<li id="' + sony_result[0].title
                    + '">"' + sony_result[0].title
                + '"</li>');
                               */
                            },
            error : function() {
                 alert("error");
                }
            });

        });
    });
$(文档)。准备好了吗(
函数(){
$('#getList').css({'color':'red'});
$(“#getList”).live('tap',function()){
$.ajax
({
url:“/home/rads infi/workspace/jsonobject.json”,
键入:“GET”,
数据:{'category':'bollywood'},
成功:函数(jsonObj){
警惕(“成功”);
警报(jsonObj);
var sony_result=$.parseJSON(jsonObj);
警报(sony_结果);
//$(“#内容列表”).html(索尼#u结果[0]。在#u日期处于活动状态);
/*$('#内容列表ul')。追加(
“
  • ”+sony_结果[0]。标题 +“
  • ”); */ }, 错误:函数(){ 警报(“错误”); } }); }); });
    getList1.html

     <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"                  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    
      <html xmlns="http://www.w3.org/1999/xhtml">
           <head>
               <title>demo</title>
                <meta http-equiv="Content-Type"
                    content=" application/xhtml+xml; charset=UTF-8" />
    
                <meta name="viewport" content="width=screen.width; user-scalable=no" />
                <meta http-equiv="Content-type" content="text/html; />
    
                 <link rel=" 
                stylesheet" href="android-asset/www/media.css" type="text/css" />
    
                <link rel="stylesheet" href="jquery.mobile/jquery.mobile-1.0.1.min.css" />
              <script src="jquery.mobile/jquery-1.7.2.min"></script>
            <script src="jquery.mobile/jquery.mobile-1.0.1.min.js"></script>
                <script type="text/javascript" src="cordova-1.9.0.js"></script>
              <script type="text/javascript" src="getplaylist.js"></script>
           </head>
           <body>
    
    <div data-role="page" id="page-home" class="ui-page">
        <div data-role="header" data-nobackbtn="true" class="ui-header"
            data-theme="c">
            <img alt="logo" src="/android_asset/top_logo.png" height="36"
                class="align-right"> <img alt="logo"
                src="/android_asset/sony_music.png" class="align-left"> 
        </div>
        <!-- /header -->
    
        <div data-role="content" id="content-manual" data-theme="a">
        <!--    <div data-role="navbar">
                <ul>
                    <li><a data-icon="home">Home</a>
                        <li><a data-icon="search">Contacts</a>
                            <li><a data-icon="info">Events</a>
                                <li><a data-icon="grid">News</a>
                </ul>
            </div> -->
            <div>
                <div data-role="button" id="getList">Get List</div>
    
            </div>
    
    
    
            <!-- /grid-a -->
    
        </div>
    
        <div data-role="content" id="content-list" data-theme="a">
            <ul>
            </ul>
        </div>
    
    
        <!-- /content-manual -->
    </div>
    <!-- /page -->
    
    
    演示
    
    请确保并记住一件事=>无论何时询问StackOverflow问题,都需要完整的详细信息。请添加导致此错误的代码。