- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
this is our first application using Intel XDK. my script is a login page with html5 and javascript.
When I try to test with TEST TAB it was failed to enter 'main-page' from login-page (user, password is correct) But when I try to use Run My App (Run On USB Connected Device) in DEVELOP TAB, the script was running well. I try to build in Android platform, install and running on device, it still failed.
May anyone help me ?
this is my script :
var selectUserPass = "SELECT count(*) as ada FROM user2 where user=? and pass=?";
function masuk()
{ var user1 = $('#user-login').val(); var pass1 = $('#pass-login').val(); db.transaction(function (tx) { tx.executeSql(selectUserPass, [user1,pass1], function (tx, result) { dataset = result.rows; item = dataset.item(0); if (item['ada']>0) location.href="periksa.html"; }); }); }
- Tags:
- HTML5
- Intel® XDK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I suspect that your device is an ARM device, not an x86 device. You can confirm by downloading and installing CPU-Z from the Google Play store and it will tell you. If the SOC tab says "Intel" in the logo, you have an x86 device, otherwise you have an ARM device. I don't believe any x86 devices were ever released publicly that ran Android 4.0.
There is a version code issue that can confuse trying to install one Crosswalk build over the other. To make sure you install the ARM version onto your ARM device, please uninstall any previous version of the app first from your device. Then install the ARM version onto your device. A previous install may be preventing the ARM version from being installed onto your device.
If you are successful with the Debug tab you should be able to build and install Crosswalk -- that is what you are using with the Debug tab. Please try the suggestion above to be sure whatever you installed is removed and then install the ARM version you built.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When you use "Run My App" you are running on Android-Crosswalk, which is a replacement webview for Android that works much better than the native Android webview. We HIGHLY RECOMMEND that you build with Android-Crosswalk for all Android devices. When you use App Preview you are using the native webview. When you use the Debug tab you are using the Android-Crosswalk webview. See these docs for additional details:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Paul Fischer, Thank you for your suggest.
I then try to build at crosswalk, after build I have 2 files, for ARM failed when I try to install, but X86 was success.
but after install this apk to my device (android 4.0.4), application could not start, with alert "unfortunately, E-RM2 has stopped!".
I try to restart device, and run again, it's still the same.
Then I try build again (in crosswalk too), but after installation, it still could not run.
I try using Run My App and Debug Tab, both of them no problem in my application to running (after login can go to target page)
I'm stuck now, I don't know, because I didn't find any answer this problem in stackoverflow or another sites.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I suspect that your device is an ARM device, not an x86 device. You can confirm by downloading and installing CPU-Z from the Google Play store and it will tell you. If the SOC tab says "Intel" in the logo, you have an x86 device, otherwise you have an ARM device. I don't believe any x86 devices were ever released publicly that ran Android 4.0.
There is a version code issue that can confuse trying to install one Crosswalk build over the other. To make sure you install the ARM version onto your ARM device, please uninstall any previous version of the app first from your device. Then install the ARM version onto your device. A previous install may be preventing the ARM version from being installed onto your device.
If you are successful with the Debug tab you should be able to build and install Crosswalk -- that is what you are using with the Debug tab. Please try the suggestion above to be sure whatever you installed is removed and then install the ARM version you built.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hehehe...
thank you very much for your answer, my first app now running success :D
thanks again for all intel XDK team, great team, great tool, great support :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Paul Fischer,
If this question is not bother you, I would like to know about this:
1. my application is running well in my devices. but if compare with android build, corsswalk build have bigger file (from android build only 1,7MB, but from crosswalk build has 20MB). is it normal? is there any suggestion ?
2. if I install this apk with avast antivirus installed on device, this apk detected as a virus, I don't know why, because at this application, only HTML, CSS and javascript file and sqlite access connection. may you have suggestion...
Thank you very much for your help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I might have the solution to your first question:
If your app has been built with Crosswalk, it will be a minimum of 15-18MB in size because it includes a complete web browser to use instead of the built-in webview on the device. Despite the size, this is the preferred solution for Android, because the built-in webviews on the majority of Android devices are inconsistent.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for your answer, I understand.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@syamsul -- not sure why you are getting the issue with the second, my guess is because it is detecting native binary code libraries in the app, which is unusual for most apps. I'll bring this to the attention of the Crosswalk project, that is not a good thing. They may need to work with Avast to be sure the Crosswalk library is not flagged as a potential virus.
Could you create a blank project using the blank HTML5+Cordova template and build it as a Crosswalk app and install that on your device with the Avast software installed and let me know if Avast still alerts the Crosswalk-built app as a virus? I want to determine if this is due to Crosswalk or one of the plugins you've added to your app.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
One of our engineers confirmed that the SQLite plugin is the source of the Avast notification, it is not due to the Crosswalk binaries in the APK. I have filed an issue with the plugin developer.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page