There are two useful tools which will generate Java code (rough but good enough) from an unknown APK file.
Use the tool to convert the APK file to JAR:
$ d2j-dex2jar.bat demo.apk
dex2jar demo.apk -> ./demo-dex2jar.jar
Once the JAR file is generated, use JD-GUI to open the JAR file. You will see the Java files.
The output will be similar to: