'Import Java classes into Android Studio

I have a folder with a few Java files (translated into Java by CS2J) that I want to use to my Android project. How can I import them to my project without adding those classes manually to my project?



Solution 1:[1]

Just copy all of those Java files and paste them in the desired package in android under src folder. If those Java files do not have compile time error then you program will run.

In case you have to access them, just make the object and put your cursor to the ClassName then hit Alt + Enter. Paste those classes inside package inside the Java folder directly from Android Studio.

enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 halfer