Skip to content

Commit 4f226f9

Browse files
Apply suggestions from code review
Co-authored-by: Julien Richard-Foy <[email protected]>
1 parent 184b2e2 commit 4f226f9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

_overviews/tutorials/scala-on-android.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ gu install native-image
4545

4646
`gu` should be available now in your console because of `$GRAALVM_HOME/bin` in your `PATH`. Also, [read this](https://www.graalvm.org/reference-manual/native-image/#prerequisites) and install whatever you need.
4747

48-
You will need `adb` , „Android Debug Bridge”, to connect to your Android device and install the app on it. [Here you can find more on how to do it](https://www.fosslinux.com/25170/how-to-install-and-setup-adb-tools-on-linux.htm).
48+
You will need `adb`, “Android Debug Bridge”, to connect to your Android device and install the app on it. [Here you can find more on how to do it](https://www.fosslinux.com/25170/how-to-install-and-setup-adb-tools-on-linux.htm).
4949

5050
Make sure your `gcc` is at least version 6. [You can try following these steps](https://tuxamito.com/wiki/index.php/Installing_newer_GCC_versions_in_Ubuntu). On top of that, you will need some specific C libraries (like GTK) to build the native image and it varies from one computer to another, so I can’t tell you exactly what to do. But it shouldn’t be a big problem. Just follow error messages saying that you lack something and google how to install them. In my case this was the list:
5151

@@ -116,7 +116,7 @@ List of devices attached
116116

117117
Now you should be able to install the app on the connected device with `adb install <path to APK>` and a moment later you should see a new icon on your device’s main screen. When you click on the icon, it should open approximately the same screen as the desktop version of your app.
118118

119-
Installation might not work for a number of reasons, one of the most popular being that your Android simply does not allow installing apps this way. Go to Settings, find Developers options”, and there enable USB debugging” and Install via USB”.
119+
Installation might not work for a number of reasons, one of the most popular being that your Android simply does not allow installing apps this way. Go to Settings, find Developers options”, and there enable USB debugging” and Install via USB”.
120120

121121
If everything works and you see the app’s screen on your device, type `adb logcat | grep GraalCompiled` to see the log output. Now you can click the button with the magnifying glass icon on the app’s screen and you should see `"log something from Scala"` printed to the console. Of course, before you write a more complex app, please look into plugins in the IDE of your choice that can display logs from `adb logcat` in a better way.
122122

@@ -131,7 +131,7 @@ If you managed to build one of the example apps and want to code something more
131131
- Look through [Gluon’s documentation of Glisten and Attach](https://docs.gluonhq.com/) to learn how to make your app look better on a mobile device, and how to get access to your device’s features.
132132
- Download an example from [Gluon’s list of samples](https://docs.gluonhq.com/) and rewrite it to Scala. And when you do, let me know!
133133
- Look into [ScalaFX](http://www.scalafx.org/) — a more declarative, Scala-idiomatic wrapper over JavaFX.
134-
- Download some of the other examples from [the Scala on Android” repository on GitHub](https://github.com/makingthematrix/scalaonandroid). Contact me, if you write an example app of your own and want me to include it.
134+
- Download some of the other examples from [the Scala on Android” repository on GitHub](https://github.com/makingthematrix/scalaonandroid). Contact me, if you write an example app of your own and want me to include it.
135135
- Join us on the official Scala discord — we have a [#scala-android channel](https://discord.gg/UuDawpq7) there.
136-
- There is also an [#android channel](https://discord.gg/XHMt6Yq4) on the Learning Scala” discord.
136+
- There is also an [#android channel](https://discord.gg/XHMt6Yq4) on the Learning Scala” discord.
137137
- Finally, if you have any questions, [you can always find me on Twitter](https://twitter.com/makingthematrix).

0 commit comments

Comments
 (0)