Android Studio

Articles, Solutions, Tools

Android Studio / IntelliJ IDEA productivity guide

Android Studio and productivity One interesting feature that Android Studio and IntelliJ IDEA have is the Productivity Guide panel. It helps you see how much of the productivity tools that are available and you are using. You can see here a quick screenshot with the one I have, on one of the computers I am […]

, ,
Did You Know?, Solutions, Tools, Tutorials

Android Studio Tip #6 – Multiple Cursors

I have heard before about this “ability” of Android Studio of having multiple cursors active at the same time, but I haven’t found it very useful until today. You can see what I am talking about in the gif below: Press ALT + SHIFT and left click on the mouse and select the position of

, , ,
Uncategorized

Android Studio Tip #4 – Automatic Negation

Sometimes, (in fact, many times :P) you have to negate boolean expressions, and in order to do that, you write the expression and after that you go back to the beginning to add “!”, am I right? :D Well, you can avoid doing this, by pressing the “!” instead of Enter when you use autocomplete. Just

, , , ,
Uncategorized

Android Studio Tip #3 – Open Class At Specific Line

Did you know that you can open a class at a specific line? This is very useful if you do code reviews and you want to open a specific class to a specific line. Well, Android Studio let us to achieve this by using: To search for a file press: CTRL + SHIFT + N (

, , ,
Uncategorized

Android Studio Tip #2 – Extract Instance Variable

You might need to “convert” a local variable into an instance variable. Well, you can do this very easy with Android Studio. So, in order to extract an instance variable (field) you can do this by using the following shortcut: CTRL + ALT + F (on Windows) or Cmd + ALT + F (on Mac OS)

, , , ,
Uncategorized

Android Studio Tip #1 – Extract Constants

If you have hardcoded strings that should be extracted into constants, you can do that in at least 2 ways: the hard way the EASY way The hard way  is to write yourself the constant and then replace it in the entire code where the string is used. And the EASY way  is to use the power

, , , ,
Snippets, Solutions

Errors after update to Android Studio 0.8

I have just updated my Android Studio to Android Studio 0.8.2. But, after the update I kept getting these 3 errors while I was trying to run my project: 1.  First error Error:Execution failed for task > java.io.FileNotFoundException: C:\Program Files (x86)\Android\android-studio\sdk\tools\proguard\proguard-android-optimize.txt (The system cannot find the path specified) 2. Second error (this happened only after the

, ,
Tools

Android Studio / IntelliJ IDEA code regions

If you ever worked with Xcode then you must know the power of “#pragma mark” macro. You could just define regions of code using that and sometimes it helps when you have classes that can get a bit big or if you just want to have a nice structure of your class. Well you can do

, , ,
Solutions

Android Studio: Cannot install from SDK Manager:”Access is denied.”

On Android Studio I noticed that if I try to install the android sdk files I get an error like in the image below: (I have Windows 8 on my computer) So I found out that the solution is to open the Android Studio as Administrator from where it is installed. In my case Android

,
Solutions

Android Studio Gradle 0.9 error: Unable to load class ‘com.android.builder.testing.api.DeviceProvider’

I had to re-install my windows, therefore I had to re-install all my programs too, including Android Studio :) So, after I had re-installed Android Studio, I kept getting a Gradle error: ” Unable to load class ‘com.android.builder.testing.api.DeviceProvider’”. After I googled it I found the solution here. It seems that we have to delete gradle’s cache.

,
Info

Android Studio – TestFlight upload plugin

As you well know the new IDE for Android is Android Studio and it is using the power of Intellij IDEA IDE which is great.If you work with TestFlight to distribute your builds to your testing teams or customers, you will surely like my new plugin that helps you upload the builds more faster and

, , , , , ,
Scroll to Top