Difference between revisions of "Working with Android Studio"
Klingeswaran (talk | contribs) |
(→Week 10 (March 15 - 21)) |
||
Line 38: | Line 38: | ||
== Week 10 (March 15 - 21)== | == Week 10 (March 15 - 21)== | ||
#If you are creating your application around material design and want to ensure that you applications follows all criteria (Paddings, Margins, Etc..), you can validate it using the DSPEC Library [https://github.com/lucasr/dspec] (Krishanthan Lingeswaran 3/16/2015) | #If you are creating your application around material design and want to ensure that you applications follows all criteria (Paddings, Margins, Etc..), you can validate it using the DSPEC Library [https://github.com/lucasr/dspec] (Krishanthan Lingeswaran 3/16/2015) | ||
+ | #Workaround for Android Studio was unable to find valid JVM on Mac OS X [http://blog.liandrew.ca/android/2015/02/03/Fix-for-Android-Studio-was-unable-to-find-valid-JVM-on-Mac-OS-X/] (Andrew Li 3/17/2015) |
Revision as of 14:20, 17 March 2015
Contents
Week 3 (Jan. 25 - 31)
- Android Tutorial for Beginners: Part 1 (2014) [1] (Peter Liu 1/25/2015: easy to follow)
- You can easily add common methods to any activity or classes. Simply press ctrl + o and a "Select Methods to override/implement" window will appear. Here you will select your required methods. Some other shortcut keys are listed here. GitHub -Krishanthan Lingeswaran
- Pressing ctrl + Q while a method or class is highlighted will quickly display the documentation for it. [2](Elsi Nushaj 1/31/2015: quick documentation shortcut)
- In Android Studio, press Alt + Enter (option + return on Mac) to import missing classes (Norbert Curiciac)
Week 4 (Feb. 1-7)
- Using Github with Android Studio (2013) [3] (Tai Nguyen 2/4/2015: Simple instructions)
- Pressing Alt + Enter while typing code will auto complete the rest of the code (2014) [4] (Elsi Nushaj 2/6/2015: Shortcut for completion of code)
Week 5 (Feb. 8 - 14)
- The following shortcut can be used to change the order of lines in the IDE, Alt + Shift + Up/Down (2014) [5] (Elsi Nushaj 2/9/2015: Shortcut for moving lines of code)
- Duplicate Lines - Copy the current line and paste it below without interfering with your clipboard(2014) [6] (Tai Nguyen 2/9/2015: Copy the current line)
- The following link is for helping you to use your Android phone to debug your application on Android Studio. Taken from Google Developer website.
[7] (Sandeep, Saldanha 2/9/2015: Helping you to Debug)
Week 6 (Feb. 15 - 21)
- The following shortcut can be used to delete the currently selected line in the IDE, Ctrl + y (2014) [8] (Elsi Nushaj 2/15/2015: Shortcut for deleting a single line of code)
- The following shortcut this will show you where you are when your scope definition is out of the scrolling area, Shortcut: Ctrl+Shift+Q (2014) [9] (Tai Nguyen 2/15/2015: To get a quick look at what the current class extends or implements)
- CONTROL ALT L - this shortcut will reorganize your XML code into line by line in Android Studio (Albert Kim 2/17/2015)
- Press CTRL + F9 (Win) or CMD + F9 (Mac) to BUILD Project (Norbert Curiciac 2/20/2015)
- Press SHIFT + F10 (Win) or CTRL + R (Mac) to BUILD and RUN Project (Norbert Curiciac 2/20/2015)
Week 7 (Feb 22 - 28)
- Press CTRL + slash(/) for line comments; repeat to remove line comment (Shianne Lee 2/23/2015)
- The Switcher - Press alt+tab / cmd+tab of the IDE. It allows you to navigate to a tab or a panel. (Tai Nguyen 2/25/2015)
- Press ALT + ENTER over red line when assigning different types. It will show a dialog for casting. (Albert Kim 2/28/2015)
- Eclipse users can alter shortcuts to match that IDE by going into preferences -> keymap and then selecting eclipse from the drop down list(2014) [10] (Elsi Nushaj 2/28/2015: Eclipse shortcuts in Android Studio)
Week 8
- To look up a command press Ctrl + Shift + A (2014) [11] (Elsi Nushaj 3/1/2015: Command search)
- CONTROL CLICK on a keyword to see its source (click Class name to see the Class file) (Albert Kim 3/7/2015)
Week 9 (March 8 - 14)
- To look up a method use the following shortcut, Ctrl + Alt + l (2014) [12] (Elsi Nushaj 3/13/2015: Method search)
Week 10 (March 15 - 21)
- If you are creating your application around material design and want to ensure that you applications follows all criteria (Paddings, Margins, Etc..), you can validate it using the DSPEC Library [13] (Krishanthan Lingeswaran 3/16/2015)
- Workaround for Android Studio was unable to find valid JVM on Mac OS X [14] (Andrew Li 3/17/2015)