Difference between revisions of "Android"

From HaskellWiki
Jump to navigation Jump to search
m (Added information about hugs-android)
Line 8: Line 8:
 
== How to develop Android software in Haskell ==
 
== How to develop Android software in Haskell ==
   
  +
There are two main approaches to writing Android applications. You can either use
Use the [http://en.wikipedia.org/wiki/Java_Native_Interface JNI] to Haskell binding library [https://github.com/neurocyte/foreign-jni foreign-jni]; demonstration of the use: [https://github.com/neurocyte/android-haskell-activity android-haskell-activity].
 
  +
the Java Native Interface ([http://en.wikipedia.org/wiki/Java_Native_Interface JNI])
  +
or the Native Development Kit ([https://developer.android.com/tools/sdk/ndk/index.html NDK]).
  +
 
If you'd like to go down the path of using the JNI there is a Haskell binding library [https://github.com/neurocyte/foreign-jni foreign-jni]; demonstration of the use: [https://github.com/neurocyte/android-haskell-activity android-haskell-activity].
   
 
Another option is, to use Thrift, as described in the blog article [http://mortenib.wordpress.com/2009/10/29/thrift-and-haskell/ Thrift and Haskell]
 
Another option is, to use Thrift, as described in the blog article [http://mortenib.wordpress.com/2009/10/29/thrift-and-haskell/ Thrift and Haskell]
   
  +
You can also create applications using the NDK. See the [https://github.com/ajhc/demo-android-ndk NativeActivity demo application] using the [http://ajhc.metasepi.org/ Ajhc Haskell compiler] for example.
See also the
 
[https://github.com/ajhc/demo-android-ndk NativeActivity demo application]
 
using the [http://ajhc.metasepi.org/ Ajhc Haskell compiler].
 
   
  +
There has also been some success in compiling GHC as a cross compiler. See below.
   
 
== Discussions ==
 
== Discussions ==

Revision as of 09:32, 23 November 2014

This article is a stub. You can help by expanding it.

Introduction

Android is an operating system for mobile devices, based on Linux; software development is mainly done in Java. See the Wikipedia article for more information.


How to develop Android software in Haskell

There are two main approaches to writing Android applications. You can either use the Java Native Interface (JNI) or the Native Development Kit (NDK).

If you'd like to go down the path of using the JNI there is a Haskell binding library foreign-jni; demonstration of the use: android-haskell-activity.

Another option is, to use Thrift, as described in the blog article Thrift and Haskell

You can also create applications using the NDK. See the NativeActivity demo application using the Ajhc Haskell compiler for example.

There has also been some success in compiling GHC as a cross compiler. See below.

Discussions


Related