Migrating Android Dev’s IDE from Eclipse to IntelliJ(2)

In the previous article, I described the installation and basic configuration of IntelliJ IDEA. Android development is ready now. Then I will describe how to use it actually.

Creating a New Project

When you click “Create New Project” in Welcome screen, “New Project” window opens. Select “Application Module” in “Android” section, and specify “Project name” and “Project Location”, then press “Next”.


Enter “Application name”, “Package name” and other requried matters. Then press “Finish”.
Wait for a while, after the Tip of the Day, the project will start.

Importing an Existing Project

If you want to import an existing project, by “Import Project”, specify the folder that contains the source project and ther matters required settings. (If Eclipse project and there is “.project” file, by “Open Project”, you can import it by sepecifying the “.project” file. However, “Import Project” is more useful because you can specify the matters in detail. )

Setting “.gitignore”

If you want to manage the project in Git, you need to place “.gitignore” appropriate for your development environment. You can use gitignore/Android.gitignore at master · github/gitignore · GitHub. You can also refer to Log folder of Proguard and .gitignore on IntelliJ | DeVlog.

Open Project Folder

You can click the “Project” in the upper left to open the project folder.
From here you will be able to open the source files, such as.folder_compressed

Use SDK/AVD Manager

From the “Tools” menu, you can call “Android SDK Manager” or “AVD Manager”.

Run Application

From the “Run” menu, you can run the application.

Export Signed APK

To exprot signed APK, from the “Build” menu, click “Generate Signed APK …”.

Specify or create the path of keystore, password, and key alias.

I think you got a clue if you know above. At first, there may be a confusion. Please developing with reference also Getting Help .

[Reference Articles]

Migrating Android Development Environment from Eclipse to IntelliJ(1)

IntelliJ is Light

The standard IDE for development of Android is Eclipse. However, when you use IntelliJ that is another IDE for Android development, it is comfortable with moving lightly and easy-to-understanding menu structure. You can use the Community Edition (Open Source) for free to develop Android Application.
In this article, I describe the tasks required who have been using the Eclipse for Android development ever to migrate to IntelliJ.

Installation of IntelliJ

Summary of the installation is as follows.

  1. Installation of JDK
  2. Installation of Android SDK
  3. Installation and Configuration of IntelliJ

You need a plugin called ADT to Eclipse. But It is not necessary for IntelliJ. I think if people who have already been developing in Eclipse, installing JDK and Android SDK is already done. (Or if on Ubuntu, see JDK and Android SDK Installation on Ubuntu | DeVlog.) Therefor, you can start developing as soon as install and configure IntelliJ. I will show the insallation instructions for IntelliJ below.

  1. Download a file for your platform from IntelliJ IDEA :: Download Latest Version of IntelliJ IDEA. You can use the Community Editon (free) for Android development without limitation. The case of Windows, so just follow the instructions of the installer, it is not particularly difficult to install the software. The case of Ubuntu, you can install from the software center. I think you can easily install on other platforms. Please follow the instructions on the site.
  2. After installation, the following dialog box will open with the first start, if you install the first time, press OK to select the “I do not…”.
    Welcome screen opens.

    Configuration of IntelliJ

    After opening Welcome screen, keep the basic settings.

    Project Defaults

    Before dealing with the actual project, you need to let IntelliJ to recognize JDK and Android SDK. To do so, you may set the project defaults.
    Configure > Project Defaultes > Project Structure, in “Project SDK” select New > JDK.
    After opening folder selection, select the folder JDK installed.
    Click “New” again and select “Android SDK” to set directory.
    JDK and SDK is set.

    Change Theme

    Try to set the theme easy to see. I recommend “Darcula”.
    Select from Configure > Settings > Appearance > UI Options. After apply, you are prompted to restart.

    At this point, you are ready for developing Android. Next time, I will expain how to use IntelliJ.

    [Relative Sites]

Split view of one file in Sublime Text2

How to split one file into two views in Sublime Text2

You will often be coding while comparing the two places of the same file. Of course, Sublime Text2 can display vertical or horizontal split view of one file.
However, it is a little hard to understand how to do it. So, I will explain it. (In the following description, the key assignment is assumed to Windows.)

  1. Split window by View > Layout (alt + shift + num)
    Each view divided here is recognized as each “group”.
  2. Make file clone by File > “New View into File”
    Another tab of the file is made in the same group.
  3. Move to another tab by dragging & dropping the tab made in 2, or View > “Move File To Group” (Ctrl + num).

At least, you can display the same file into two groups.

To Make Shortcut for “New View into File”

By default, any shortcut is not assigned in the menu “New View into File”. If you want to assign it to “alt + shift + c”, open the definition file by Preferences > “Key Bindings – User” and add the following definition between [ ].

If you already have other definitions, add “,” after the last definition and the definition above. I think it will be as follows.

Use “SimpleClone”

Even if you define the shortcut in this way, it is cumbersome to take 3 steps: Split View > Clone File > Move Clone to Another Group. At such times, you may use a plug-in called “SimpleClone”.

If you already installed “Package Control”, you can install by Tools > “Command Palette…” > “Package Control: Install Package” > SimpleClone.

There are menu in View > SimpleClone and shortcut is as follows.
Ctrl + Shift + right: Split to right
Ctrl + Shift + down: Split down
Ctrl + Alt + Shift + n: Make clone in new window

[Reference Sites]