ADK 4.0后使用Eclipse新建工程后的工程文件。

.project

项目文件,项目的结构都在其中定义。

<?xml version="1.0" encoding="UTF-8"?><projectDescription><name>XAlbum</name><comment></comment><projects></projects><buildSpec><buildCommand><name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name><arguments></arguments></buildCommand><buildCommand><name>com.android.ide.eclipse.adt.PreCompilerBuilder</name><arguments></arguments></buildCommand><buildCommand><name>org.eclipse.jdt.core.javabuilder</name><arguments></arguments></buildCommand><buildCommand><name>com.android.ide.eclipse.adt.ApkBuilder</name><arguments></arguments></buildCommand></buildSpec><natures><nature>com.android.ide.eclipse.adt.AndroidNature</nature><nature>org.eclipse.jdt.core.javanature</nature></natures></projectDescription>

1.工程名字<name></name>

2.工程注释描述<comment></comment>

3.运行时需要的额外的Eclipse插件<natures></natures>,以及其具体的加载方式<buildSpec></buildSpec>  

.classpath

定义工程项目在编译时使用的$CLASSPATH

<?xml version="1.0" encoding="UTF-8"?><classpath><classpathentry kind="src" path="src"/><classpathentry kind="src" path="gen"/><classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/><classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/><classpathentry kind="output" path="bin/classes"/></classpath>

1.源文件(.java)的具体位置(kind="src")

2.工程运行的系统环境(kind="con")

3.项目的输出目录(kind="output")

AndroidManifest.xml

<manifest xmlns:android="http://schemas.android.com/apk/res/android"    package="com.arcsoft.xalbum"    android:versionCode="1"    android:versionName="1.0" >    <uses-sdk        android:minSdkVersion="8"        android:targetSdkVersion="15" />    <application        android:icon="@drawable/ic_launcher"        android:label="@string/app_name"        android:theme="@style/AppTheme" >        <activity            android:name=".MainActivity"            android:label="@string/title_activity_main" >            <intent-filter>                <action android:name="android.intent.action.MAIN" />                <category android:name="android.intent.category.LAUNCHER" />            </intent-filter>        </activity>    </application></manifest>

描述项目的版本以及所使用的ADK信息,说明activity,service,provider的信息,已经定义应用的权限。

proguard-project.txt

# To enable ProGuard in your project, edit project.properties# to define the proguard.config property as described in that file.## Add project specific ProGuard rules here.# By default, the flags in this file are appended to flags specified# in ${sdk.dir}/tools/proguard/proguard-android.txt# You can edit the include path and order by changing the ProGuard# include property in project.properties.## For more details, see#   http://developer.android.com/guide/developing/tools/proguard.html# Add any project specific keep options here:# If your project uses WebView with JS, uncomment the following# and specify the fully qualified class name to the JavaScript interface# class:#-keepclassmembers class fqcn.of.javascript.interface.for.webview {#   public *;#}

Android提供的防止应用apk被逆向工程的机制,通过对代码进行扰乱压缩实现,即防止破解。(只在Release启动)

具体参见http://developer.android.com/guide/developing/tools/proguard.html

project.properties

# This file is automatically generated by Android Tools.# Do not modify this file -- YOUR CHANGES WILL BE ERASED!## This file must be checked in Version Control Systems.## To customize properties used by the Ant build system edit# "ant.properties", and override values to adapt the script to your# project structure.## To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt# Project target.target=android-16

另外,在4.0后的工程中增加了一个\libs\android-support-v4.jar文件,这个文件的作用是,当工程中使用了后面新版本的ADK中提供的类的时候,而需要在旧版本的系统上运行的时候,就可以派上用场。因为这个jar中包含了这些新类的定义和声明,所以就可以通过额外库的方式在旧版本系统被应用程序加载而使用。具体参见http://developer.android.com/tools/extras/support-library.html

更多相关文章

  1. 一款常用的 Squid 日志分析工具
  2. GitHub 标星 8K+!一款开源替代 ls 的工具你值得拥有!
  3. RHEL 6 下 DHCP+TFTP+FTP+PXE+Kickstart 实现无人值守安装
  4. Linux 环境下实战 Rsync 备份工具及配置 rsync+inotify 实时同步
  5. Ant 打包 Android(安卓)应用
  6. Android基础学习【历史流程重走】 ---- Android入门基础(二)
  7. 初学Android,使用菜单资源(十九) .
  8. Android(安卓)之AnimationDrawable
  9. android获取当前正在运行的栈顶的应用包名

随机推荐

  1. Android中的Activity四种启动模式(launch
  2. Android(安卓)WIFI扫描时延
  3. Android(安卓)中关于Environment类的总结
  4. android setTag (int key, Object tag)使
  5. ButterKnife 8.8.1版本在AndroidStudio中
  6. android 中如何在androidmanifest.xml设
  7. android下的异步任务
  8. 简单的网页源码查看器
  9. (血的经验!!)Android(安卓)Studio 如何导入别
  10. 修改apk调用蓝牙无明确提示