Gluon eclipse插件 - 如何访问android SDK [英] Gluon eclipse plugin - how to access the android SDK
问题描述
我知道我可以通过使用 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屋!