1

私はこれが初めてです...

インテル XDK を使用しています

PHP でデフォルトのページを作成しましたが、アップロードすると次のようになりました。

404: Intel XDK can't find your app アプリケーション ディレクトリに index.html がありますか?

次のようにphpにリダイレクトするhtmlページを試しました:

http://www.jassimrahma.com/yalla.bahrain/index.php" />

Androidでは空白のページとして表示されます。

ホットにもページをアップロードしましたが、問題はありませんでした。これはURLです

http://www.jassimrahma.com/yalla.bahrain/index.html

どうすればこれを解決できますか..

4

2 に答える 2

0

Web ページのコンテンツをアプリに表示するだけの場合は、空のプロジェクトを作成して次のように設定できます。

window.location = "http://www.jassimrahma.com/yalla.bahrain/index.php"; 

以下は index.html ファイル全体です。これは XDK で動作し、Android アプリをビルドできます。

<!DOCTYPE html>
<html>
<head>
    <title>XDK</title>
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0;" />
    <script src="intelxdk.js"></script>
    <script>
        window.location = "http://www.jassimrahma.com/yalla.bahrain/index.php";        
        document.addEventListener("intel.xdk.device.ready", onDeviceReady, false);               
        function onDeviceReady(){
            intel.xdk.device.hideSplashScreen();   
        }
    </script>            
</head>
<body> 
</body>
</html>
于 2014-04-01T18:28:54.393 に答える