neurocyte / ghc-android

Build scripts for building ghc cross compilers targeting Android
182 stars 29 forks source link

NDK example #6

Closed joeyh closed 11 years ago

joeyh commented 11 years ago

It would be great if this included a directory with everything needed to build an Andoid apk package, that contains a Haskell hello world example that somehow gets run. This would be a good starting point for haskell users to start doing Android app development.

It might be possible to use the FFI to build the haskell code into a shared library, and then use the NDK to make the Android app's java code call into it.

neurocyte commented 11 years ago

That’s exactly what I’m working on right now. :-D Hopefully I’ll get something working and in a presentable state this weekend.

mcandre commented 11 years ago

Yeah, that would be killer!

neurocyte commented 11 years ago

I have uploaded a very basic example of an Android Activity written in Haskell. It is called android-haskell-activity. You will also need my other module foreign-jni.

Have fun!