Difference between revisions of "Android"

From HaskellWiki
Jump to navigation Jump to search
Line 31: Line 31:
 
* [http://hackage.haskell.org/trac/ghc/wiki/Building/CrossCompiling Cross-compiling GHC]
 
* [http://hackage.haskell.org/trac/ghc/wiki/Building/CrossCompiling Cross-compiling GHC]
 
* [https://github.com/neurocyte/ghc-android ghc-android]; a build script for building ghc cross compilers targeting Android.
 
* [https://github.com/neurocyte/ghc-android ghc-android]; a build script for building ghc cross compilers targeting Android.
* [https://github.com/sseefried/docker-build-ghc-android docker-build-ghc-android]; a Dockerfile to build a GHC cross compiler targeting Android in Debian Wheezy. Based heavily on [https://github.com/neurocyte/ghc-android ghc-android].
+
* [https://github.com/sseefried/docker-build-ghc-android docker-build-ghc-android]; a Dockerfile to build a GHC 7.8.3 cross compiler targeting Android on Debian Wheezy. Based heavily on [https://github.com/neurocyte/ghc-android ghc-android].
 
* [https://github.com/conscell/hugs-android hugs-android]; a port of HUGS Haskell interpreter to Android.
 
* [https://github.com/conscell/hugs-android hugs-android]; a port of HUGS Haskell interpreter to Android.
 
* [[ARM]]
 
* [[ARM]]

Revision as of 10:03, 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; here is a demonstration of its 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