Three assumptions in this process are:
I just started writing an RSS Reader application using JavaFX and Scala, and I thought I’d post the initial code here. This code shows several advanced Scala techniques that Scala developers might need to use when writing Scala code to interact with Java, and in this case, JavaFX.
As a quick note to self, this source code from the online version of Learn You a Haskell shows how to read command line arguments in Haskell:
I’m currently doing something completely different, and writing a little custom web browser using JavaFX and its
WebView component. I’m using it so I can easily look at stock quotes and charts. I just started on it, and the current UI looks like this:
In some ways Scrivener is a bit of a klunky, older-looking Mac OS X application, but I started using it two days ago, and it has helped me organize my ideas, so for that I give it credit. It’s intended to be used by writers who want to write books, and as I said, it does help with the organization aspect, and that is helpful. It’s better than a pile of files in a directory that you manually try to keep in order, that’s for sure.
This is an excerpt from the Scala Cookbook (partially modified for the internet). This is Recipe 6.4, “How to launch a Scala application with an object.”
You want to start an application with a main method, or provide the entry point for a script.
There are two ways to create a launching point for your application: define an
object that extends the
App trait, or define an object with a properly defined
This is a list of some of the applications I (Alvin Alexander) have written. I’ve included links to places where you can find more information about each app or application.
Just Be is a mindfulness reminder application for Android. Being an Android app, I wrote it in Java. You can learn more about it at JustBe.cc.
If you ever need to get the root data directory of your Android application (app) from within your Java code, I can confirm that this approach works:
File rootDataDir = getActivity().getFilesDir();
When I log that directory like this:
it prints this output for my application:
where com.alvinalexander.mynewapp is the package name for my new Android app.