uamp README

The project's README from github.com/android/uamp. As one markdown file: README.md.

Warning This sample has been deprecated and is no longer being maintained.

To find other samples that may be of interest, see https://developer.android.com/samples.

Universal Android Music Player Sample

The goal of this sample is to show how to implement an audio media app that works across multiple form factors and provides a consistent user experience on Android phones, tablets, Android Auto, Android Wear, Android TV, Google Cast devices, and with the Google Assistant.

To get started with UAMP please read the full guide.

Screenshot showing UAMP's UI for browsing albums and songs Screenshot showing UAMP's UI for playing a song

Pre-requisites

Getting Started

This sample uses the Gradle build system. To build this project, use the "gradlew build" command or use "Import Project" in Android Studio.

Support

If you've found an error in this sample, please file an issue

Patches are encouraged and may be submitted by forking this project and submitting a pull request through GitHub. Please see CONTRIBUTING.md for more details.

Audio

Music provided by the Free Music Archive.

Recordings provided by the Ambisonic Sound Library.

License

Copyright 2025 Google Inc.

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

uamp (android/uamp)

Searching Database…

13.2K ·GitHub
archived
这是什么?UAMP(Universal Android Music Player Sample)是 Google 面向 Android 的音频示例应用:一个可以真正运行的音乐播放器,用来演示如何实现一个音频媒体应用。
怎么把它跑起来?通过 'Import Project' 在 Android Studio 中打开项目,或者在命令行运行 'gradlew build'——它使用 Gradle 构建系统。
打开之前需要装些什么?列出的前置条件只有 Android Studio 3.x,剩下的都由 Gradle 构建来处理。
这个项目还在维护吗?不维护了——该示例已被弃用并归档,把它当作了解音频应用过去怎么写参考资料就好,不适合作为新播放器的起点。
我需要先懂 Android 开发才能看懂它吗?需要——它是写给 Android 开发者看的。你要阅读 Kotlin 源码和配套指南,所以默认你已经基本熟悉 Android Studio。
它实际能跑在哪些设备和平台上?只支持 Android,但覆盖多种设备形态:手机、平板、Android Auto、Android Wear、Android TV、Google Cast 设备以及 Google 助手。
我可以把这段代码用到自己的应用里吗?可以——Apache-2.0 是一种宽松的许可证:你可以复用和修改代码,包括商业用途,但需要保留署名。
开箱即用能播放什么音频?它内置了来自 Free Music Archive 的音乐——The Kyoto Connection 的《Wake Up》——还有 Watson Wu 和 Stephan Schutze 的 Ambisonic Sound Library 中的现场录音,所以一打开就有内容可以播放。
Google 为什么做一个完整的应用,而不是只写文档?一个完整、可构建的应用能端到端地展示全部机制——播放、界面,以及在 Auto、Wear、TV、Cast 和助手上的一致体验——而且 README 还配有一份完整的文字指南。
代码是用 Kotlin 还是 Java 写的?以 Kotlin 为主:Kotlin 是这个仓库的主要语言,代码库里也有一部分 Java。
项目已经弃用了——README 有没有说接下来该看什么?有——顶部的警告指向了其他可能感兴趣的 Google 示例,并列出了 FAQ 页面和 Stack Overflow 作为支持渠道。
Creator
android
Size
9 MB
Stars
13.2K
Age
11y
Commits · 90 Days