Hi Sebastian,

also check out the Scala Days app by 47 Degrees
<https://github.com/47deg/scala-days-android> which is done in Scala and
uses Macroid <http://macroid.github.io/>.

On Tue, Jun 16, 2015 at 9:18 AM, Adam Mackler <[email protected]> wrote:

> On Sat, Jun 13, 2015 at 8:11 PM, Sebastian M Cheung <
> [email protected]> wrote:
>
>> Hi Adam,
>>
>> I just saw your post, and I am also keen on building more Scala based
>> Android apps but I couldn't find any good tutorials.
>>
>> So from your experience it was worth the effort that you managed to use
>> Scala in Android?
>>
>
> Hi  Sebastian:
>
> Was it worth the effort?  Is that a trick question?  Writing an Android
> app in Scala must be *less* effort than using Java.  Actually I am
> unsure, because I've never written an Android app in Java.  Android apps
> require competent handling of concurrency, and trying to do that without
> Akka must be more difficult, no?
>
> The main thing is that native Android provides its own mechanism to
> accomplish the equivalent of telling an Akka message,   See here
> <https://developer.android.com/training/multiple-threads/communicate-ui.html>.
> You need to understand and integrate that with Akka's message passing when
> updating the UI.  Other than that, why hurt yourself on Java's concurrency?
>
> It has been a while since I've done any Android programming, but I did
> release one app you might look at.  It's a simple metronome for musicians.
> The app is on Play
> <https://play.google.com/store/apps/details?id=org.mackler.metronome>,
> and the source code is on bitbucket
> <https://bitbucket.org/mackler/safe-metronome>.  Note also that there are
> Scala+Android facilities I've never used and I'm sure there is much that's
> possible beyond what I have tasted.  Here are some promising links you
> might already know about:
>
>    - Scaloid <https://github.com/pocorall/scaloid/blob/master/README.md>
>    - An article about using Scaloid
>    
> <http://www.drdobbs.com/mobile/developing-android-apps-with-scala-and-s/240161584>
>    - You probably already know about SBT-Android
>    <http://fxthomas.github.io/android-plugin/>, which I believe is
>    superseded by
>    - The Android SDK Plugin for SBT
>    <https://github.com/pfn/android-sdk-plugin/blob/master/README.md>,
>    which is currently maintained
>    - The scala-on-android Google Group
>    <https://groups.google.com/forum/#!forum/scala-on-android>
>
> Those are just from my notes of a few years ago.  I'm sure the
> state-of-the-art has progressed since then.
>
> Happy coding,
> --
> Adam Mackler
>
>  --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ:
> http://doc.akka.io/docs/akka/current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Martynas Mickevičius
Typesafe <http://typesafe.com/> – Reactive
<http://www.reactivemanifesto.org/> Apps on the JVM

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to