AACDecoder-Android 项目使用教程

AACDecoder-Android 项目使用教程

aacdecoder-androidAutomatically exported from code.google.com/p/aacdecoder-android项目地址:https://gitcode.com/gh_mirrors/aa/aacdecoder-android

1. 项目的目录结构及介绍

AACDecoder-Android 项目的目录结构如下:




aacdecoder-android/


├── decoder/


│   ├── src/


│   ├── res/


│   ├── AndroidManifest.xml


├── player/


│   ├── src/


│   ├── res/


│   ├── AndroidManifest.xml


├── COPYING


├── COPYING.LESSER


├── README


├── VERSION


├── build.xml


├── default.properties


├── makectags


├── pom.xml


├── sample-ant.properties

目录介绍

decoder/: 包含解码器的主要代码和资源文件。

src/: 解码器的源代码。res/: 解码器的资源文件。AndroidManifest.xml: 解码器的配置文件。

player/: 包含播放器的主要代码和资源文件。

src/: 播放器的源代码。res/: 播放器的资源文件。AndroidManifest.xml: 播放器的配置文件。

COPYING: GPL-3.0 许可证文件。

COPYING.LESSER: LGPL-3.0 许可证文件。

README: 项目说明文件。

VERSION: 版本信息文件。

build.xml: Ant 构建文件。

default.properties: 默认配置文件。

makectags: 用于生成 ctags 的脚本。

pom.xml: Maven 项目对象模型文件。

sample-ant.properties: 示例 Ant 配置文件。

2. 项目的启动文件介绍

项目的启动文件主要位于 decoder/player/ 目录下的 AndroidManifest.xml 文件中。

decoder/AndroidManifest.xml




<manifest xmlns:android="http://schemas.android.com/apk/res/android"


    package="com.spoledge.aacdecoder">


    <application>


        <activity android:name=".DecoderActivity">


            <intent-filter>


                <action android:name="android.intent.action.MAIN" />


                <category android:name="android.intent.category.LAUNCHER" />


            </intent-filter>


        </activity>


    </application>


</manifest>

player/AndroidManifest.xml




<manifest xmlns:android="http://schemas.android.com/apk/res/android"


    package="com.spoledge.aacdecoder.player">


    <application>


        <activity android:name=".PlayerActivity">


            <intent-filter>


                <action android:name="android.intent.action.MAIN" />


                <category android:name="android.intent.category.LAUNCHER" />


            </intent-filter>


        </activity>


    </application>


</manifest>

3. 项目的配置文件介绍

项目的配置文件主要包括 default.propertiessample-ant.properties

default.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 use,


# "build.properties", and override values to adapt the script to your


# project structure.


 


# Project target.


target=android-16

sample-ant.properties




# This file is used to override default values used by the Ant build system.


#


# This file must be checked in Version Control Systems, as it is


# integral to the build system of your project.


 


# This file is only used by the Ant script.


 


# Indicates whether an apk should be generated for each density.


split.density=false


 


# Application name


app.name=AACDecoder


 


# Package name


app.package=com.spoledge.aacdecoder


 


# SDK directory


sdk.dir=/path/to/android-sdk

以上是 AACDecoder-Android 项目的基本使用教程,涵盖了项目的目录结构、启动文件和配置文件的介绍。希望对您有所帮助!

aacdecoder-androidAutomatically exported from code.google.com/p/aacdecoder-android项目地址:https://gitcode.com/gh_mirrors/aa/aacdecoder-android

© 版权声明

相关文章

暂无评论

您必须登录才能参与评论!
立即登录
暂无评论...