本文介绍了如何在Android Studio中导入现有的Intel XDK项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Android Studio中导入现有的英特尔XDK项目.

I am trying to import my existing Intel XDK Project in Android Studio.

基本上,我拥有的是带有inappbrowser和其他一些插件的html5设计.

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.

为此,我在Java类中使用了HttpUrlConnection.

For that purpose I used HttpUrlConnection in Java Class.

我有使用Java的软件,我希望我的Intel XDK Project嵌入该类,以便将用户输入发送到该类并在其中检索结果.

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.

推荐答案

由于Intel XDK构建系统位于云中,因此无法看到使用的Android Studio项目文件(实际上是Android SDK命令行项目文件)实际构建您的应用程序.

Because the Intel XDK build system is in the cloud, you cannot see the Android Studio project file (actually, Android SDK command-line project file) that is used to actually build your app.

我建议您首先将您的应用程序转换为Cordova CLI应用程序,这足以完成您想做的事情.如果这还不够,请搜索如何将Cordova应用程序转换为Android Studio项目.

I recommend that you first convert your app into a Cordova CLI app, which should be sufficient to do what you want to do. If that is not sufficient, then search for how to convert a Cordova app into an Android Studio project.

要将您的Intel XDK项目转换为Cordova CLI项目,请参见这些基本说明在XDK论坛上,并且使用此脚本从XDK项目设置中创建正确的config.xml文件,以用于Cordova CLI.

To convert your Intel XDK project into a Cordova CLI project, see these basic instructions on the XDK forum and use this script to create a proper config.xml file from your XDK project settings for use with Cordova CLI.

这篇关于如何在Android Studio中导入现有的Intel XDK项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-07 12:26