I have a Java Swing application which draws diagrams. It uses Graphics2D calls and awt objects such as Rectangle etc.
At some point I might want to port this to Andr
The main problem is that you won't be able do create classes in packages named java.awt. But except that point, basically you can rewrite a library based on awt API.
java.awt
You can also check awt-android-compat project.