Difference between revisions of "Android"

From HaskellWiki
Jump to navigation Jump to search
Line 13: Line 13:
   
 
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]; here is a demonstration of its use: [https://github.com/neurocyte/android-haskell-activity android-haskell-activity].
 
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]; here is a demonstration of its use: [https://github.com/neurocyte/android-haskell-activity android-haskell-activity].
An extension on the android-haskell-activity which includes a full cross platform build script and iOS support can be found here[https://github.com/EDeijl/CPHConsoleApp CPHConsoleApp].
+
An extension on the android-haskell-activity which includes a full cross platform build script and iOS support can be found here [https://github.com/EDeijl/CPHConsoleApp CPHConsoleApp].
   
 
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.
 
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.
   
 
There has also been some success in compiling GHC as a cross compiler. See below.
 
There has also been some success in compiling GHC as a cross compiler. See below.
 
   
 
== Discussions ==
 
== Discussions ==

Revision as of 12:24, 14 October 2015

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. An extension on the android-haskell-activity which includes a full cross platform build script and iOS support can be found here CPHConsoleApp.

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