Kai Hartmann

Members
  • Content Count

    12
  • Joined

  • Last visited

About Kai Hartmann

  • Rank
    Member

Contact Methods

  • Website URL
    http://kapitanh.blogspot.com

Profile Information

  • Gender
    Not Telling
  1. Nice variation of the Flappy Bird gameplay mechanic.
  2. I found the Intel XDK on the web: http://software.intel.com/de-de/html5/tools It is an integrated development environment and build service for HTML/CSS/JavaScript to native applications. I made a quick installation and test, and it has been easy. Also it looks, that it supports Intel Crosswalk out of the box, which gave me a performance boost on Android 4.4 (KitKat). The build process is handled in the cloud, so you have to register. But I am impressed how easy it is to get the first application up and running. I make some more tests this week, if anybody is interested I will share.
  3. Hi, I have a sample application running with Crosswalk. Now I would like to force a landscape orientation. Does anybody know how to do it? Usually I would just edit the AndroidManifest.xml and set screenOrientation to landscape. But when building, Crosswalk sets it always to unspecified, and I do not know where to change it. The AndroidManifest.xml in the app_src folder, which I thought to be the template, does not pass this value to the final file when I add it there, either.
  4. I agree with PhoneGap being difficult to install. Once you have it though, it is pretty simple to create and deploy an application with it. A major drawback is so far, that the WebView in Android 4.4 is buggy in terms of canvas drawing performance. Crosswalk seems to be an option for Android devices, if the Blink engine does not suffer the same bug. Update: After doing so, I realized that Crosswalk is difficult to install, as well.
  5. The meta tag did not help, but the JavaScript does. Thanks. I had hoped to do it declaratively, though. I am also not totally sure what the meta viewport tag does, cause I tried it before, and it never seems to have any effect, regardless what I sepcify in the content attribute.
  6. Hello, I have a simple HTML page, which implements just a canvas. When I show it in a browser, everything looks ok, no scrollbars at all. After deploying it with PhoneGap to my device (Sony Experia U), it is possible to scroll just a little horizontally and a little more vertically. I am sure it is because the device has a different aspect ratio and the content (1280 x 720) does not fit, but giving 100% to width (and height) of the canvas should do the trick. I do not know how to prevent the scrolling. Anybody had this problem, and/or does have a solution? This is my complete source: HTML: <!DOCTYPE html><html> <head> <link rel="stylesheet" type="text/css" href="css/index.css" /> <title>Game</title> </head> <body> <canvas id="game" width="1280" height="720" style="border:1px solid #000000;"></canvas> </body></html>CSS: html, body { margin: 0; overflow:hidden;}canvas { width: 100%; height:100%;}
  7. I tried to cover most of the aspects for getting a PhoneGap application up and running in this article: http://kapitanh.blogspot.de/2014/02/native-android-apps-with.html. Hope it helps. If something is missing, or does not work, please contact me, and I will try to update the information.
  8. Oh, I'm not blaming PhoneGap, PhoneGap is great. I think the Android WebView sucks (If I am not doing anything wrong). Actually found a topic/discussion about this issue at the chromium project: https://code.google.com/p/chromium/issues/detail?id=315111 Maybe this is a solution: https://code.google.com/p/android/issues/detail?id=35739
  9. I am facing the same issue here, using PhoneGap. I read, that the WebView on Android is not hardware accelerated, and that is the reason why it performs so badly. But I am really stumped how slow it is, I am just moving a small single sprite on a canvas, and it's like a slide show. I have to give CocoonJS a try, since their Demos from the Play Store are very fast and smooth. Probably I am doing something wrong, or CocoonJS has some magic in store.
  10. I am currently looking into Phonegap (and development using Phaser.js) as well. What I can say is, that there are a bunch of SDKs and stuff you have to install to build apps on your Windows computer. As far as I remember to build for Android you need: Apache Cordova Phonegap JDK, JRE Apache Ant NodeJS Android SDK + there are some not so obvious installation and execution steps, like modifying environmental PATHs and creating Phonegap folders and Android apks by command line. But at least everything is well documented. Btw.: Does anybody know, if I use the free cloud service of Phonegap, can I use that application commercially? And can I delete it afterwards, and use another application?
  11. Hi, thanks for the quick answer. I simply registered for CocoonJS in the meantime, and was a bit disappointed that I had no direct access to their libraries. Since I have no real project I work on, but just a few prototypes to mess around with, I did not bother to ask for the libraries. I downloaded Phonegap instead, which seems to bring everything with it out of the box. It has been quite some work to install all the components needed, though.
  12. Hello, I try to figure out the business model of cocoon.js, but with no luck so far. Does anybody know if cocoon.js is free to use for commercial products? Regards, Kai