In this post we will create our first listing in Android, but first we need to create another folder c: which for convenience we will call workspace. Open a window
Emergency DOS Command and Android use the command specifying some information in the command string (using dos commands find again in the Tools folder and launch the following command strinda, remember that the command used dos and CD to move the folders)
android created project - package helloandroid - activity HelloAndroid - a target - pach. / HelloAndroid
analyze in detail the string
- created project -> allows you to create a new project, where our application is written in Java.
- package -> classes I belong in the project.
- activity -> indicate the name of the class without the package, is usually associated with a graphical interface that allows interaction between application and user.
- target -> allows you to specify the version of Android that your application will be compatible.
Scan My HelloAndroid
- src -> contains the sources of our application for the moment only the file HelloAndroid.java
- res -> will contain the resources of our application, we will be in phase dibuilding file *. apk ( Android Application Package) under the directory res find the directory layout that contains a document called main.xml to describe the graphical user interface that our application will use. (Which we will learn to use and manage below).
launching the target function that will show the version of Android Saà compatible with which, using the following command (again from the tools directory)
Android list targets
in this If only I put in this string but it is actually much longer if you have downloaded all the versions of Android that will be compatible with the project.
for the moment we stop here next time!
Sharky wish you a Merry Christmas!
for the moment we stop here next time!
Sharky wish you a Merry Christmas!