Well if you don't mix gui stuff with non-gui stuff, then you will have to change only a small part of your application.
Java applications use Swing and Android has its own components that do similar...