Reputation: 6494
I created my very first app with Intel XDK, just a "Hello World" is displayed on the screen. The emulator works OK, App Preview works OK, but when I build my Android apk and send it to the device I just obtain a blank screen after the splash screen,
I've tried using "Lean" Code Base instead of "Gold" for the build as suggested, but with the same result,
This is my index.html
(the only file I have):
<!DOCTYPE html><!--HTML5 doctype-->
<html>
<head>
<title>Your New Application</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0" />
<style type="text/css">
/* Prevent copy paste for all elements except text fields */
* { -webkit-user-select:none; -webkit-tap-highlight-color:rgba(255, 255, 255, 0); }
input, textarea { -webkit-user-select:text; }
body { background-color:white; color:black }
</style>
<script src='intelxdk.js'></script>
<script type="text/javascript">
/* Intel native bridge is available */
var onDeviceReady=function(){
//hide splash screen
intel.xdk.device.hideSplashScreen();
};
document.addEventListener("intel.xdk.device.ready",onDeviceReady,false);
</script>
</head>
<body>
<!-- content goes here-->
<h1>Probando...</h1>
</body>
</html>
And here is my apk to download, any idea? Thanks
UPDATE: My Intel XDK build is 0876
UPDATE 2: Oddly the same started to happen with Intel App Preview, when now I open it I can see the splash screen and then blank.. I tried erasing data and cache, uninstalling and reinstalling but with no luck. It seems to me that some common dependency is broken..
UPDATE 3: I tried generating the build without the <script type="text/javascript">/* Intel native bridge is available */</script>
section int this APK and same result. Then removed <script src='intelxdk.js'></script>
with this APK and same result..
UPDATE 4: When I try to debug the app with Intel XDK the app is pushed to my device and popups an alert to download an update for Crosswalk. It then downloads 52 MB and shows a message "Failed to update. Try again.".
Upvotes: 1
Views: 2638
Reputation: 505
I had the same problem, just in case someone has a similar problem, this is how I dealt with it.
Ensure yo have a very good internet connection, if the connection is poor, most likely the intel XDK will have problems uploading or downloading your app completely.
You can opt to download your built app from your ITEL registered email - they always mail you a link to your built app - instead of downloading it via the XDK.
Try deleting previous app build in your ITEL XDK server, go to https://appcenter.html5tools-software.intel.com/csd/ControlPanel.aspx to see a list of your upload ITEL XDK app. After deleting do a fresh build.
Am not sure about this, but avoid editing your source code as the Intel XDK is uploading your app.
Cheers, enjoy your coding ;)
Upvotes: 0
Reputation: 500
It is due to some reasons ,either your app did not download properly on your device or the API is blocked due to Cross domain access, just add <script src="xhr.js"></script>
after your intelxdk.js
script inclusion. It will then work on device.
Upvotes: 2