Creating an apk
Hi, I'm new with Adobe Air and I got a problem with creating an apk. I use the xml and html files from the sdk tutorial (HelloWorld), yet I get an error when creating the apk:
HelloWorld-app.xml: error 304: Initial window content is invalid
What am I doing wrong?
I used the following command:
adt -package -target apk -storetype pkcs12 -keystore newselfcert.p12 HelloWorld.apk HelloWorld-app.xml HelloWorld.html
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://ns.adobe.com/air/application/2.5">
<id>examples.html.HelloWorld</id>
<versionNumber>0.1</versionNumber>
<filename>HelloWorld</filename>
<initialWindow>
<content>HelloWorld.html</content>
<visible>true</visible>
<width>400</width>
<height>200</height>
</initialWindow>
</application>
<!DOCTYPE HTML>
<html>
<head>
<title>Hello World</title>
<script type="text/javascript" src="AIRAliases.js"></script>
<script type="text/javascript">
function appLoad(){
air.trace("Hello World");
}
</script>
</head>
<body onLoad="appLoad()">
<h1>Hello World</h1>
</body>
</html>
