命令行创建
android create project
Usage:
android [global options] create project [action options]
Global options:
-h --help : Help on a specific command.
-v --verbose : Verbose mode, shows errors, warnings and all messages.
--clear-cache: Clear the SDK Manager repository manifest cache.
-s --silent : Silent mode, shows errors only. Action "create project":
Creates a new Android project.
Options:
-n --name : Project name.
-t --target : Target ID of the new project. [required]
-p --path : The new project's directory. [required]
-k --package : Android package name for the application. [required]
-a --activity: Name of the default Activity that is created. [required]
android create project -n MyFirstApp -t 1 -p e:/AndroidTest -k com.itcookie.mf -a MainActivity
android create project --target 1 --name MyFirstApp --path e:/MyFirstApp --activity MainActivity --package com.example.myfirstapp
目录结构
bin
libs
src
res
value
layout
drawable-hdpi drawable-mdpi drawable-ldpi drawable-xhdpi
res资源文件目录说明和自动生成的R.java文件
。。。。
1、在java代码中使用资源
2、在xml中使用资源
AndroidManifest.xml安卓应用的清单文件
应用程序权限
Android应用程序基本组件介绍