Hello World
- Create a new project.
- Activity type: Empty Views Activity
- Name: Hello World.
This is the name of the app in the launcher.
- Package name:
Use your own domain, or edu.miami.cs.your_name.helloworld.
This is the package namespace, and also sets the package name under which the stub
Activity will be generated.
- Save location:
This is the directory that will contain the project files.
Make it somewhere sensible on your disk where you can keep all your Android projects -
make a new directory!
Don't put spaces or funky characters in this.
- Language: Java
- Minimum SDK: API 28 ("Pie"; Android 9.0)
- Build configuration language: Groovy DSL (build.gradle)
- Accept the other defaults
- Finish
Android Studio will create a stub application, with all the necessary files.
- Build and run the application on the emulator
- Ensure an emulator is running (see
Software for Android Development)
- Click the run button.
- On the emulator, back out of the app, navigate to the applications page and run it again.
- Check out the source
- Deploying onto a real phone
- Connect with USB cable.
- Set up your device for Android development (see
Software for Android Development)
- Run adb devices to see if your computer sees your phone.
- Click the run button in Android Studio and choose your device.