Android Studio - First Impressions
For an app we are developing for the android platform, I wanted to prototype a camera with some custom controls and an overlay instructing the user what to do. Instead of using Eclipse I decided to give Android Studio a try.
First for some keyboard shortcuts (OSX):
ctrl-r — to run the application.
ctrl-d — to debug the application. Thankfully you don’t have to switch perspectives.
shift-cmd-F9 — to compile the application.
Some things that I like over Eclipse…
You don’t have to remember which methods to override or go to a separate view to see the methods to override. Say for instance you want to override the onResume() method in your activity. Just start typing “onRes…” and you will see
Press enter and you are done:
Suppose you are missing an import for a namespace, you can hit option-enter to quickly add it without having to lift your hand to use the trackpad. And for someone who wants to do more with the keyboard, this feature is really handy.
Something even better is the awareness that Android Studio has about its context. So, if my goal is to get the camera parameters, Android Studio will actually show me the appropriate method to call at the top of the list.
Yet another awesomeness is the ability to just use Ctrl-R to run the app from a layout file. In Eclipse, I always had to chose the activity if I was in a layout file.