Android Training/Running Your Application: Unterschied zwischen den Versionen
ErDa (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
ErDa (Diskussion | Beiträge) (habe nicht gesehen das die Übersetzung erstmal als Diskussion gemacht wird, sorry -.-) |
||
Zeile 1: | Zeile 1: | ||
If you followed the [[Android Training/ Ein Android-Projekt erstellen|previous lesson]] to create an Android project, it includes a default set of "Hello World" source files that allow you to run the app right away. | |||
How you run your app depends on two things: whether you have a real Android-powered device and whether you’re using Eclipse. This lesson shows you how to install and run your app on a real device and on the Android emulator, and in both cases with either Eclipse or the command line tools. | |||
Before you run your app, you should be aware of a few directories and files in the Android project: | |||
; <code>AndroidManifest.xml</code> : | |||
; <code>src/</code> : | ; <code>AndroidManifest.xml</code> : This manifest file describes the fundamental characteristics of the app and defines each of its components. You'll learn about various declarations in this file as you read more training classes. | ||
; <code>res/</code> : | ; <code>src/</code> : Directory for your app's main source files. By default, it includes an <code>[http://developer.android.com/reference/android/app/Activity.html Activity]</code> class that runs when your app is launched using the app icon. | ||
:; <code>drawable-hdpi/</code> : | ; <code>res/</code> : Contains several sub-directories for app resources. Here are just a few: | ||
:; <code>layout/</code> : | :; <code>drawable-hdpi/</code> : Directory for drawable objects (such as bitmaps) that are designed for high-density (hdpi) screens. Other drawable directories contain assets designed for other screen densities. | ||
:; <code>layout/</code> : Directory for files that define your app's user interface. | |||
:; <code>values/</code> : Directory for other various XML files that contain a collection of resources, such as string and color definitions. | :; <code>values/</code> : Directory for other various XML files that contain a collection of resources, such as string and color definitions. | ||