Skip to content

Instantly share code, notes, and snippets.

@Epsiloni
Last active May 25, 2017 08:17
Show Gist options
  • Save Epsiloni/da24871b7fa506a2360e to your computer and use it in GitHub Desktop.
Save Epsiloni/da24871b7fa506a2360e to your computer and use it in GitHub Desktop.
Android Studio for Experts (Android Dev Summit 2015)

Android Studio for Experts (Android Dev Summit 2015)

Code Manipulation starts here

  • log(i|d|v|e|w) --> Log.(i|d|v|e|w)(TAG, "methodName: "); (4m50s)
  • logt --> creates a TAG (5m5s)
  • logm --> logs a method being called with it's parameters (5m20s)
  • logr --> logs a method returns (5m29s)
  • tools:showIn (10m51s)
  • tools:numColumns (11m20s)
  • AdapterView: tools:src and tools:listItem (12m3s)

How to use the debugger starts here

Gradle integration starts here

  • New Module...
  • Import .JAR / .AAr Package
  • Add dependency: compile project(':MODULE_NAME')
  • Refactoring [35m55s] (Android Studio 2.0 will support enabling both test artifacts at the same time.) [Experimental]
    1. Preferences > Build, Execution, Deployment > Build Tools > Gradle > Experimental.
    2. Enable all test artifacts...

Testing in Android Studio starts here

  • Cursor on class name -> Alt+Retrun -> "Create Test".
  • ++T on Mac.
  • ++T on Mac will also prompt "Create new test".
  • On the left margin in Android Studio there is an icon for each test that let you run the test.

C++ Support starts here

@brandlee
Copy link

first of all thank you for your work, but please make it more specific, thx!

@Epsiloni
Copy link
Author

You are welcome.
I'm adding more as I progress in the video, I went back to make the beginning richer. Is that what you meant? If not than what do you mean by more specific?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment