intel-xdk

How to alert input value

隐身守侯 提交于 2020-01-02 09:22:29
问题 So I recently decided to try learning app development with Intel XDK, and as of now I know only little bit of HTML. I'm trying to create a basic test app that allows the user to type a message in a text box, and then click the submit button which gives an alert that displays the inputted text. This is what I have: Message: <br> <input type="text" id="message" value=""> <br> <button type="button" value="document.getElementByID(message)" onclick=alert(message)>Generate Text</button> But when I

How to alert input value

你说的曾经没有我的故事 提交于 2020-01-02 09:22:26
问题 So I recently decided to try learning app development with Intel XDK, and as of now I know only little bit of HTML. I'm trying to create a basic test app that allows the user to type a message in a text box, and then click the submit button which gives an alert that displays the inputted text. This is what I have: Message: <br> <input type="text" id="message" value=""> <br> <button type="button" value="document.getElementByID(message)" onclick=alert(message)>Generate Text</button> But when I

Intel Edison MRAA module not working

本小妞迷上赌 提交于 2019-12-30 18:23:07
问题 I recently downloaded the Intel XDK IOT version and used the LED pin 13 Blink sample. I then uploaded the program onto the Edison, but it came up with a few errors; One of them being that it could not find the MRAA module. The sample code that came with it was: main.js: var mraa = new require("mraa"); //require mraa console.log('MRAA Version: ' + mraa.getVersion()); //write the mraa version to the Intel XDK console var myOnboardLed = new mraa.Gpio(13); //LED hooked up to digital pin 13 (or

How to import An Existing Intel XDK Project in Android Studio

守給你的承諾、 提交于 2019-12-26 09:59:13
问题 I am trying to import my existing Intel XDK Project in Android Studio. Basically what I have is a html5 design with inappbrowser and some other plugins. I wanted post data to external server using my app like logging in the user. For that purpose I used HttpUrlConnection in Java Class. I have working Java I want my Intel XDK Project to embed that class send user inputs to the class and retrieve the result in it. 回答1: Because the Intel XDK build system is in the cloud, you cannot see the

Intel XDK not working on Centos 7 64bits (vmware virtual machine)

妖精的绣舞 提交于 2019-12-25 12:08:10
问题 I'm trying to work with Intel XDK (Inside Centos 7 64 bits vmware machine). I've executed the install with sudo. Everything seems OK after finishing the installation. Then I've tried to run the application, but nothing shows up. Also I've tried reinstalling over again all as root, but still nothing. Any hint? 回答1: Follow these steps to be able to start the latest version of Intel XDK and get it working On CentOS Linux 7.2 or 7.3 (7.2.1511 , 7.3.1611) STEP 1: Download the latest release https:

vertical scrolling blocked by Hammer.js

天涯浪子 提交于 2019-12-25 09:09:14
问题 i am trying to make an app with Intel XDK (build 2727) and right now my problem is that i can't scroll vertical when i have a list which exceeds the screen size. i tracked the problem down to Hammer.js. This plug-in seems to be used for the sidebar. So i tried to comment the source out and voila, it is working. But I need the sidebar and therefore Hammer.js. After research it turned out that others are having the same issue and the most common solution for this seems to be overflow-y: scroll;

Javascript geolocation - GPS settings - FINE vs COARSE

南笙酒味 提交于 2019-12-25 03:57:07
问题 I am creating a geolocation app with Intel XDK (iPhone and Android) and have 2 questions: How can I display the geolocation settings of the device if the GPS is not active on the phone? How do I know if the latitude and longitude values returned are from the GPS or from the wifi/data coords? I figured that wifi/data returns a short value (eg: 43.475748) and GPS returns a longer value (eg: 43.47573849384) Am I correct in thinking this? 回答1: 1.) Most devices will cache the last known geo

jquery mobile not passing event down correctly

▼魔方 西西 提交于 2019-12-25 00:43:10
问题 I seem to have a weird problem with intelxdk and jquery mobile. If I select an element, the scrolling works fine. If nothing is selected, then the touch event is registered properly. This is best explained through the attached two images. How do I get it to focus properly? .focus() doesn't work. Please see the attached to pictures for clarity. Here the scrolling doesn't work. Here the scrolling works. It's almost as if the event is not propogated down all the way. Edit As requested by Tasos,

Including resources folder in apk

感情迁移 提交于 2019-12-24 14:37:58
问题 I'm writing a hybrid application in Cordova using Intel XDK. I've found and installed plugin for displaying native notifications on device, but got stuck with problem concerning icons customization. I am supposed to use Local resource for native resources relative to the res/drawable/ (Android) or Resources/ (iOS) folder . And here comes the problem, because I can not make Intel XDK to add anything into the res folder inside .apk. I've found out that I should create appropriate folder

Mobile app using Intel XDK and cordova plugin for Firebase notifications

浪子不回头ぞ 提交于 2019-12-24 10:50:43
问题 I'm using Intel XDK to create a mobile app. I need my application to receive push notifications using Google Firebase. I tried to use the cordova-plugin-firebase plugin, but it does not work in XDK because it has gradle scripts ... I tried removing these scripts, without success. I also tried using the cordova-plugin-fcm plugin; I was able to remove its gradle scripts and build the app. It runs on the emulator, but neither starts on the device.Can anyone send me some tip about why is my app