Skip to content

androidstudio

Joshua Cano edited this page Feb 13, 2015 · 42 revisions

Android Studio

The official IDE for Android Application development is based on IntelliJ IDEA. Additional features found in this IDE include (not limited to):

  • Gradle-based build system
  • Code Templates
  • Layout Editor that supports drag and drop theme editing
  • Pro Guard (app-signing capabilities)

Download Information

  1. Make sure your computer has the latest Java SE (JDK) installed.

  2. For Windows 8 users go to Control Panel -> System -> Advanced system settings -> Environment Variables and add JAVA_HOME as a new system variable that points to your JDK folder.

  3. Download Android Studio and install any additional packages from the SDK manager that you need.

Android Studio Tour

![Image] (http://developer.android.com/images/tools/studio-helloworld-design.png)

Android Project Structure

  • Gradle takes your Java code and XML layout and then uses the latest Android build tool to create the app package file, also known as an APK file. With Gradle you can customize your configurations to have development or production versions of the app that behave differently, or add dependencies for third-party libraries.

Your App has two main entities:

  1. What you want your app to do
  2. How you want your app to look Android Studio has a distinct way of managing these two entities. One is your JAVA files the other is your XML files.
Activities (Screens)
  • Java
    • Under the src/main/java directory
  • Resources
    • Drawable folders that hold images
    • Layout folder with XML that represents the screen designs
    • Menu folder with XML of the items that will appear on the Action Bar
    • Values folder with XML containing dimensions, strings, and styles
  • AndroidManifest.xml
    • Informs your system of the app's hardware and software requirements and contains your app's name,icon and version. Also filters the Intents coming in.
Testing
  • Can utilize a virtual device from the AVD manager
  • Actual Device

Helpful Tips

  1. Under Help->Default Keymap References, you can find all available keyboard shortcuts.
  2. To display line numbers, right click on left hand side of your code and select show line numbers

Helpful Links

Clone this wiki locally