Quantcast
Channel: Intel Developer Zone Articles
Viewing all articles
Browse latest Browse all 3384

Intel® XDK FAQs - General

$
0
0
 How can I get started with Intel XDK?

There are plenty of videos and articles that you can go through here to get started. You could also start with some of our demo apps that you think fits your app idea best and learn or take parts from multiple apps.

Having prior understanding of how to program using HTML, CSS and JavaScript* is crucial to using Intel XDK. Intel XDK is primarily a tool for visualizing, debugging and building an app package for distribution. 

You can do the following to access our demo apps: 

  •  Select Project tab
  •  Select "Start a New Project"
  •  Select "Samples and Demos"
  •  Create a new project from a demo 

If you have specific questions following that, please post it to our forums.

 Can I use an external editor for development in Intel XDK? [Editor] 

Yes, you can open your files and edit them in your favorite editor. However, note that you must use Brackets* to use the "Live Layout Editing" feature. Also, if you are using App Designer (the UI layout tool in Intel XDK) it will make many automatic changes to your index.html file, so it is best not to edit that file externally at the same time you have App Designer open.

Some popular editors among our users include:

  • Sublime Text* (Refer to this article for information on the Intel XDK plugin for Sublime Text*)
  • Notepad++* for a lighweight editor
  • Jetbrains* editors (Webstorm*)
  • Vim* the editor
 How do I get code refactoring capability in Brackets*, the code editor in Intel® XDK? [Editor] 

You will have to add the "Rename JavaScript* Identifier" extension and "Quick Search" extension in Brackets* to achieve some sort of refactoring capability. You can find them in Extension Manager under File menu.

 Why doesn’t my app show up in Google* play for tablets? [Device] 

It could be that your app is using all the plugins in the project tab. Only include plugins that you need to minimize required permissions. For example, the intel.xdk.device plugin includes SMS permission which then implies that you need a mobile phone feature, which most tablets do not have. 

 What is the global-settings.xdk file and how do I locate it?

global-settings.xdk is a file that contains information about all your projects in Intel XDK along with settings related to panels under each tab (Emulate, Debug etc). For example, you can set the emulator to auto-refresh or no-auto-refresh. However, users are advised to modify this at their own risk and to always keep a backup of the original.

You can locate the file at:

[Mac OSX*] ~/Library/Application Support/XDK/global-settings.xdk

[Windows*] %localappdata% (or) %localappdata%\XDK

[Linux*] ~/.config/XDK/global-settings.xdk
 When do I use the intelxdk.js, xhr.js and cordova.js libraries?

The intelxdk and xhr libraries are only needed with legacy build tiles. The Cordova* library is needed for all. When building with Cordova* tiles, intelxdk and xhr libraries are ignored and so they can be omitted.

 What is the process if I need a .keystore file? [Keystore] 

Please send an email to html5tools@intel.com specifying the email address associated with your Intel XDK account in its contents.

 How do I rename my project that is a duplicate of an existing project?

Make a copy of your existing project directory and delete the .xdk and .xdke files from them. Import it into Intel XDK using the ‘Import your HTML5 Code Base’ option and give it a new name to create a duplicate.

 How do I try to recover when Intel XDK won't start or hangs?
  • If you are running Intel XDK on Windows* it must be Windows* 7 or higher. It will not run reliably on earlier versions.   
  • Delete the "project-name.xdk" file from the project directory that Intel XDK is trying to open when it starts (it will try to open the project that was open during your last session), then try starting Intel XDK. You will have to "import" your project into Intel XDK again. Importing merely creates the "project-name.xdk" file in your project directory and adds that project to the "global-settings.xdk" file.
  • Rename the project directory Intel XDK is trying to open when it starts. Create a new project based on one of the demo apps. Test Intel XDK using that demo app. If everything works, restart Intel XDK and try it again. If it still works, rename your problem project folder back to its original name and open Intel XDK again (it should now open the sample project you previously opened). You may have to re-select your problem project (Intel XDK should have forgotten that project during the previous session).
  • Clear Intel XDK's program cache directories and files. 
    On a [Windows*] machine this can be done using the following on a standard command prompt (administrator not required) :
    > cd %AppData%\..\Local\XDK
    > del *.* /s/q
    To locate the "XDK cache" directory on [OS X*] and [Linux*] systems, do the following:
    $ sudo find / -name global-settings.xdk
    $ cd <dir found above>
    $ sudo rm -rf *
    You might want to save a copy of the "global-settings.xdk" file before you delete that cache directory and copy it back before you restart Intel XDK. Doing so will save you the effort of rebuilding your list of projects. Please refer to this question for information on how to locate the global-settings.xdk file.
  • If you save the "global-settings.xdk" file and restored it in the step above and you're still having hang troubles, try deleting the directories and files above, along with the "global-settings.xdk" file and try it again.
  • Do not store your project directories on a network share (Intel XDK currently has issues with network shares that have not yet been resolved). This includes folders shared between a Virtual machine (VM) guest and its host machine (for example, if you are running Windows* in a VM running on a Mac* host). This network share issue is a known issue with a fix request in place.

Please refer to this post for more details regarding troubles in a VM. It is possible to make this scenario work but it requires diligence and care on your part.

  • There have also been issues with running behind a corporate network proxy or firewall. To check them try running Intel XDK from your home network where, presumably, you have a simple NAT router and no proxy or firewall. If things work correctly there then your corporate firewall or proxy may be the source of the problem.
  • Issues with Intel XDK account logins can also cause Intel XDK to hang. To confirm that your login is working correctly, go to the Intel XDK App Center and confirm that you can login with your Intel XDK account. While you are there you might also try deleting the offending project(s) from the App Center.

If you can reliably reproduce the problem, please send us a copy of the "xdk.log" file that is stored in the same directory as the "global-settings.xdk" file to mailto:html5tools@intel.com.

 Is Intel XDK an open source project? How can I contribute to the Intel XDK community? 

No, It is not an open source project. However, it utilizes many open source components that are then assembled into Intel XDK. While you cannot contribute directly to the Intel XDK integration effort, you can contribute to the many open source components that make up Intel XDK.  

The following open source components are the major elements that are being used by Intel XDK: 

  •  Node-Webkit
  •  Chromium
  •  Ripple* emulator
  •  Brackets* editor
  •  Weinre* remote debugger
  •  Crosswalk*
  •  Cordova*
  •  App Framework*
 How do I configure Intel XDK to use 9 patch png for Android* apps splash screen?

Intel XDK does support the use of 9 patch png for Android* apps splash screen. You can read up more at http://developer.android.com/tools/help/draw9patch.html on how to create a 9 patch png image. We also plan to incorporate them in some of our sample apps to illustrate their use.

 How do I stop AVG from popping up the "General Behavioral Detection" window when Intel XDK is launched? [Security] 

You can try adding nw.exe as the app that needs an exception in AVG.

 What do I specify for "App ID" in Intel XDK under Build Settings?

Your app ID uniquely identifies your app. For example, it can be used to identify your app within Apple’s application services allowing you to use things like in-app purchasing and push notifications.

Here are some useful articles on how to create an App ID for your

iOS* App

Android* App

Windows* Phone 8 App

 Is it possible to modify Android* Manifest through Intel XDK? [Android*] 

You cannot modify the AndroidManifest.xml file directly with our build system, as it only exists in the cloud. However, you may do so by creating a dummy plugin that only contains a plugin.xml file which can then be add to the AndroidManifest.xml file during the build process. In essence, you need to change the plugin.xml file of the locally cloned plugin to include directives that will make those modifications to the AndroidManifext.xml file. Here is an example of a plugin that does just that:  

<?xml version="1.0" encoding="UTF-8"?><plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="com.tricaud.webintent" version="1.0.0"><name>WebIntentTricaud</name><description>Ajout dans AndroidManifest.xml</description><license>MIT</license><keywords>android, WebIntent, Intent, Activity</keywords><engines><engine name="cordova" version=">=3.0.0" /></engines><!-- android --><platform name="android"><config-file target="AndroidManifest.xml" parent="/manifest/application"><activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/app_name" android:launchMode="singleTop" android:name="testa" android:theme="@android:style/Theme.Black.NoTitleBar"><intent-filter><action android:name="android.intent.action.SEND" /><category android:name="android.intent.category.DEFAULT" /><data android:mimeType="*/*" /></intent-filter></activity></config-file></platform></plugin>

You can check the AndroidManifest.xml created in the apk, using the apktool with the command line:  

aapt l -M appli.apk >text.txt  

This adds the list of files of the apk and details of the AndroidManifest.xml to text.txt.

 How can I share my Intel XDK app build? [Build] 

You can send a link to your project via an email invite from your project settings page. However, a login to your account is required to access the file behind the link. Alternatively, you can download the build from the build page, onto your workstation, and push that built image to some location from which you can send a link to that image. 

 Why does my iOS build fail when I am able to test it successfully on a device and the emulator? [iOS*/Build] 

Common reasons include:

  • Your App ID specified in the project settings do not match the one you specified in Apple's developer portal.
  • The provisioning profile does not match the cert you uploaded. Double check with Apple's developer site that you are using the correct and current distribution cert and that the provisioning profile is still active. Download the provisioning profile again and add it to your project to confirm.
  • In Project Build Settings, your App Name is invalid. It should be modified to include only alpha, space and numbers.
 How do I add multiple domains in Domain Access? 

Here is the primary doc source for that feature.

If you need to insert multiple domain references, then you will need to add the extra references in the intelxdk.config.additions.xml file. This StackOverflow entry provides a basic idea and you can see the intelxdk.config.*.xml files that are automatically generated with each build for the <access origin="xxx" /> line that is generated based on what you provide in the "Domain Access" field of the "Build Settings" panel on the Project Tab. 

 How do I build more than one app using the same Apple developer account? [iOS*] 

On Apple developer, create a distribution certificate using the "iOS* Certificate Signing Request" key downloaded from Intel XDK Build tab only for the first app. For subsequent apps, reuse the same certificate and import this certificate into the Build tab like you usually would.

 How do I include search and spotlight icons as part of my app? [iOS*] 

Please refer to this article in Intel XDK documentation. Create an intelxdk.config.additions.xml file in your top level directory (same as the other intelxdk.*.config.xml files) and add the following lines for supporting icons in Settings and other areas in iOS*.

<platform name="ios"><!-- iOS* 7.0+ --><!-- iPhone / iPod Touch  --><icon src="res/ios/icon-60.png" width="60" height="60" /><icon src="res/ios/icon-60@2x.png" width="120" height="120" /><!-- iPad --><icon src="res/ios/icon-76.png" width="76" height="76" /><icon src="res/ios/icon-76@2x.png" width="152" height="152" /><!-- iOS* 6.1 --><!-- Spotlight Icon --><icon src="res/ios/icon-40.png" width="40" height="40" /><icon src="res/ios/icon-40@2x.png" width="80" height="80" /><!-- iPhone / iPod Touch --><icon src="res/ios/icon.png" width="57" height="57" /><icon src="res/ios/icon@2x.png" width="114" height="114" /><!-- iPad --><icon src="res/ios/icon-72.png" width="72" height="72" /><icon src="res/ios/icon-72@2x.png" width="144" height="144" /><!-- iPhone Spotlight and Settings Icon --><icon src="res/ios/icon-small.png" width="29" height="29" /><icon src="res/ios/icon-small@2x.png" width="58" height="58" /><!-- iPad Spotlight and Settings Icon --><icon src="res/ios/icon-50.png" width="50" height="50" /><icon src="res/ios/icon-50@2x.png" width="100" height="100" /></platform>

For more information related to these configurations, visit http://cordova.apache.org/docs/en/3.5.0/config_ref_images.md.html#Icons%20and%20Splash%20Screens.

For accurate information related to iOS icon sizes, visit https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/IconMatrix.html

Note: The iPhone 6 icons will only be available if iOS* 7 or 8 is the target. 

Cordova iOS* 8 support JIRA tracker: https://issues.apache.org/jira/browse/CB-7043

 Does Intel XDK support Modbus TCP communication?

No, since Modbus is a specialized protocol, you need to write either some JavaScript* or native code (in the form of a plugin) to handle the Modbus transactions and protocol.

 How do I sign an Android* app using an existing keystore? [Android*/Keystore] 

Uploading an existing keystore in Intel XDK is not currently supported but you can send an email to html5tools@intel.com with this request. We can assist you there.

 How do I build separately for different Android* versions? [Android*] 

Under the Projects Panel, you can select the Target Android* version under the Build Settings collapsible panel. You can change this value and build your application multiple times to create numerous versions of your application that are targeted for multiple versions of Android*.

 How do I display the 'Build App Now' button if my display language is not English? [Build] 

If your display language is not English and the 'Build App Now' button is proving to be troublesome, you may change your display language to English which can be downloaded by a Windows* update. Once you have installed the English language, proceed to Control Panel > Clock, Language and Region > Region and Language > Change Display Language.

Back to FAQs Main  


Viewing all articles
Browse latest Browse all 3384

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>