Nicolás Moro Nicolás Moro - 3 months ago 7
Android Question

Program in Android Studio with Java?

I've always wanted to develop an Android app. In order to do that, I've started learning Java 2-3 months ago. When I felt I was ready, I dowloaded Android Studio. But the programming language looks very different to Java, and I don't understand even the default "Hello world". Can someone explain me how to configure Android Studio in order to use Java as the programming language? Or should I use another environment? Thank you in advantage.

Answer

Can someone explain me how to configure Android Studio in order to use Java as the programming language?

Android Studio already uses Java as the programming language. Any of the files ending in .java are Java source files.

However, an Android project will have files in other formats:

  • .gradle files for the Gradle build system
  • .xml files for the manifest and many types of resources
  • .png files for icons
  • and so on

I don't understand even the default "Hello world"

There are many educational resources available for Android development: books, videos, blogs, courses, etc. You may wish to use these to supplement your existing work on learning Java.

Or should I use another environment?

If you are aiming to build Java-based Android apps, Android Studio is a fine choice. Specialized types of apps (e.g., games) may be developed using other environments (e.g., Unity).

Comments