(thinking out loud)
If nim was to be used for android development (calling the Android JDK)
Then your nim program calls the nimAndroidJDK to handle user input/display, and does any calculations etc in nim code.
Is there more to this than my musings?