Tags

, ,

This post is in continuation with the blog series “All About Android Studio“. If you haven’t read first post, I would recommend you to check it out by clicking it here.

Untitled design

The immediate question for a regular android developer comes in mind after installing Android Studio is how to migrate older android projects to newer development environment? What are the differences between older and newer development environments? What is different in terms of project directory management?

This post address all such confusions while migrating to Android Studio.


1. I have older projects in Eclipse, How Do I move it to Android Studio which has gradle build system?

You simply need to import the existing projects to android studio.Follow the steps below

Exporting from Eclipse

  • First you need to export your project from Eclipse with gradle build.
  • Right click on project or Select File menu from top, click export.export-eclipse
  • Select gradle option and proceed through the wizard.gradle-export

Importing to Android Studio.

  •   Close all active projects from android studio. You will see Welcome to Android Studio      window.
  •   Click to Import Non-Android Studio Project.
  •   Go to Project exported from eclipse and select build.gradle file and click OK.
  •   In the following dialog, leave Use gradle wrapper selected and click OK.

2. How directory Structure or project structure different in Android Studio compared to Eclipse-ADT, if any?

Yes, there are certain minor differences in project layout in Android Studio. Firstly, The entire project related folders like libs,src, res, are located under app/ folder. Secondly Android Studio also have separate directory that is created automatically for test cases.

There is No Assets folder. You will need to create by your self under app/src/main/ if needed for your project.

And Rest is almost same as that of eclipse ADT.


3. I feel sloth. I dont want to migrate to Android Studio. What I will miss?

SpeedAwesomeness  And much more.

True that! The speed with which Android Studio works is astounding. Its much much faster than Eclipse. The project automatically refreshes itself quickly if you add any file to any project folder externally. IntelliJ is much powerful than in eclipse ADT. This comes handy while getting code completion, function suggestion support. It even reports typo errors!

Hmm.. Interesting.. What more?

AND THEN you might miss Google Cloud Platform. Google Cloud Platform allows you to run server-side code using Google App Engine, along with other tasks (such as backing up your users’ data). This is a nice addition, as you probably don’t want your App to be isolated.

AND THEN you might miss Memory Monitor that shows memory usage analysis of your app.

AND THEN you might miss User Interface that is not cumbersome. Its easy to find what you need in Android Studio.

AND THEN YOU ARE STILL LIVING IN STONE AGE??.stoneage


4. What are change in Shortcut Controls that are frequently used in Eclipse?

Navigation Shortcuts

Shortcut Description Android Studio Shortcut
Go to class Ctrl + N
Go to file Ctrl + Shift + N
Navigate open tabs ALT + Left-Arrow; ALT + Right-Arrow
Lookup recent files CTRL + E
Go to line CTRL + G
Navigate to last edit location CTRL + SHIFT + BACKSPACE
Go to declaration CTRL + B
Go to implementation CTRL + ALT + B
Go to source F4
Go to super Class CTRL + U
Show Call hierarchy Ctrl + Alt + H
Search in path/project CTRL + SHIFT + F

Programming Shortcuts

Shortcut Description Android Studio Shortcut
Reformat code CTRL + ALT + L
Optimize imports CTRL + ALT + O
Code Completion CTRL + SPACE
Issue quick fix ALT + ENTER
Surround code block CTRL + ALT + T
Rename and refactor Shift + F6
Line Comment or Uncomment CTRL + /
Block Comment or Uncomment CTRL + SHIFT + /
Go to previous/next method ALT + UP/DOWN
Show parameters for method CTRL + P
Quick documentation lookup CTRL + Q

General Shortcuts

Shortcut Description Android Studio Shortcut
Delete line CTRL + Y
Safe Delete Alt + DELETE
Close Active Tab CTRL + F4
Build and run SHIFT + F10
Build CTRL + F9
All purpose (Meta)Shortcut CTRL + SHIFT + A

For complete list visit here

This is in continuation with the blog series All About Android Studio. Keep checking for updates to further posts.

Advertisements