Java code migration to Android

I have a working code, which can generate and draw some figures with lines. It has written in native Java. I would like to migrate this code to Android and give some fancy graphical desgin, beacuse it would be a game. How can I do this migration with my Java code? (I have asked this earlier, but simple “copying” is not a great solution.)