How to import an Intellij project in android after you reinstalled your Intellij

If it happened to reinstall your Intelij and you don’t remember how to import your android projects maybe this post will help you, even a little at least. So, lets begin.

Step 1: Press CTRL+SHIFT+ALT+S and the Project Structure window will open. On the left click on the project and then press the new button like in the picture.

Step 2:  After you pressed the “new” button you will see a list. Select the JSDK option and find your JDK1.5 or 1.6 (JDK is where you installed your Java). Then press the “new” button again and choose Android SDK this time, like in the pictures below and search for the path where your android folder is on your computer. After this you will have to select the version of jdk 1.5 or 1.6 and then the android plarform (I selected android 2.1)

Step 3: At this step you must have your settings like this:

Step 4:  That’s all with the project settings. Let’s move on the next part. On the left of the window just below the Project, click on Modules. Here there’s nothing for the moment but it will be. Now you have to click on the “+” button just like in the picture below:

Step 5: After you clicked the button this window will open and you will have to do what the picture says:

Step 6: After you pressed the “…” button a windows explorer will be opened and you will have to search for your project and select the “.iml” file like in the picture:

Step 7:  Now your project is imported. If you click on the name of your project you will see on the right some options. Click on the “Paths” and be sure to check the first option like in the picture.

Step 8: Now click to “Dependencies” and press the “new” button like in the picture and select the Android SDK and then the platform for Android (2.1 in our case).

Step 9: Now your settings must be like in the picture (of course, if you made the project on another platform you will must have your platform on the Module SDK. After this press ok and that’s it. Your project is ready.

How to make a background button selector in XML?

Step 1: Create an XML in the drawable folder and name it selected_item.xml (or any another name you want but to be suggestive). The code in this xml will be:


The color=”#80000000″ is transparent black.
Step 2: Create an XML again, in the drawable folder an name it not_selected.xml. The code in this xml will be:

The color=”#80ffffff” is transparent white.
Step 3 Create an XML again 🙂 in the drawable folder and name it button_selector.xml. The code in this xml will be:

Step 4 In the xml file where you make the button put this: