Android developers using android studio may find it is similar to eclipse + ADT, personal android studio after found that android studio in addition to the interface is more cool outside, there is not much advantage. And the majority of users criticized the memory usage is also a big problem There is no solution: I found that android studio is more memory than eclipse when developing Android. However, android studio in the file - new menu, you can quickly create a new Activity function is quite practical, as shown in Figure: android studio's new activity function do not have to let us very troublesome to build a java class and then inherit the Activity, Activity Several necessary methods are automatically declared for us. In fact, eclipse also has this feature: Eclipse Android use activity template to quickly create a new activity Eclipse new menu inside actually has a quick new Activity function, but not on the eye-catching position: rapid new activity several methods: 1 respectively open the menu FILE - NEW - other - Android - Activity; 2Ctrl + N- - Android - Activity; can also use the new activity method can quickly create new Android image resource file
First, how can I modify the default path of the eclipse new project (Use default location)? You find that your project can only be placed in a fixed folder (Workspace). Changing the default storage path will cause the project creation to fail. The following method can change the default path.Select File-->Switch Workspace-->Other..., then click Browse to change the default path. Second, how to run applet program? If you run the application program for the first time, then when you click Run, it will only show the previous project name.Select DebugConfiguration, and then in the Name, Project, Applet three edit boxes to fill in the appropriate name.Click on the triangle next to Run and the corresponding name you wrote in the Name box will appear. Click it to run.
After the android development environment is set up, create a new android project, you can see the following directory structure: Src: store source code Gen:edu.xidian is the name of the package that was entered when the android project was created. R.java is a class that is automatically generated by the development tool. It is automatically modified according to the contents of the res file and does not require us to edit it. Assets: Places where the resource files needed by the application are stored (eg images, animations, etc.) Res: is also the place to store application resource files. Unlike assets, all resource files stored in this folder are automatically generated with IDs in the R.java file. When we use them in programs, we don't need to write paths. Just call the variable in R.java.This should be a standardized development method provided by ADT. Res/drawable-hdpi Res/drawable-ldpi Res/drawable-mdpi These three folders are for storing pictures, the difference lies in the resolution, in order to adapt to the different screen resolutions of different mobile phones. Res/layout storage layout of the Activity file Res/values stored in the text displayed in the Activity, can be called in R.java, to facilitate the development of multi-language version