开发者

How to create simple GUI project (Hello world) for Android on Clojure?

I'm new to Java/Netbeans but I want to try somethin开发者_JS百科g on Android. I choose Clojure but the start isn't so easy at all. I installed mode for Netbeans and clojure and can run simple swing applications.

I found https://github.com/remvee/clojurehelloandroid but I can't translate it to NetBeans solution even I don't know how to specify if for Android (Dalvik) Virtual Machine.

(ns us.riddell.TestProject
  (:gen-class
   :extends android.app.Activity
   :exposes-methods {onCreate superOnCreate}))

where are android.app.Activity from coming / how to install / add it ?

And is it the same alike working with swing for GUI on Dalvik Virtual Machine.

I really want NetBeans Clojure GUI Hello World for Android :)

Thank you.


Here you have a complete tutorial with a link to a GitHub project. In that website you have a couple of articles about working with Clojure on Android (they are even releasing a Clojure REPL for it). Nonetheless, bear in mind that working with Clojure is Android is not smooth at all, there a tons of problems with Dalvik VM and the functional aproach.

Don't know if you can work from Eclipse, given that the plugin is very basic and complains if you don't have a .java Activity, for instance. But you can do it for sure working with adb from the shell and with emacs. Being that i mentioned emacs, here's a very simple blog post on a "Hello World" with the Clojure/Android/emacs combo. As for Netbeans, trully don't know, but it is not the popular choice for Android nor for Clojure, so i don't know how well it might deal with them.


I am not sure whether Netbeans support Android developement. I think you can go for eclipse. you can install eclipse and then android AVD.

How to setup eclipse for android developement

Thanks Deepak

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜