Gluon eclipse插件 - 如何访问android SDK [英] Gluon eclipse plugin - how to access the android SDK

查看:242
本文介绍了Gluon eclipse插件 - 如何访问android SDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何访问android sdk在创建的Gluon JavaFX项目的src / android文件夹中使用android特定代码。



我知道我可以通过使用 FXActivity 类获取Android上下文。
但是我不能导入Android SDK的类(例如 ActivityManager )。



我我使用Eclipse Mars和最新的Gluon Plugin和安装的Android SDK插件。

解决方案

我刚刚添加了android.jar和jfxdvk。 jar到手动的Eclipse构建路径,但这可能不是应该做的方式。至少它工作的时刻: - )


I am wondering how to access the android sdk to use android specific code in the src/android folders of the created Gluon JavaFX project.

I know that I can get the Android Context by using the FXActivity class. But I can not import that nor classes of the Android SDK (e.g. ActivityManager).

I am using Eclipse Mars with the newest Gluon Plugin and the Android SDK Plugin installed.

解决方案

I just added android.jar and jfxdvk.jar to the Eclipse build path manually but that is probably not the way it should be done. At least it works for the moment :-)

这篇关于Gluon eclipse插件 - 如何访问android SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆