freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于android的音樂播放器_畢業(yè)論文-在線瀏覽

2024-10-30 15:36本頁面
  

【正文】 Development kit 安裝步驟如下: 第一步:安裝 Java 虛擬機 sunjava6jdk 版本 第二步:安裝 官網(wǎng) 選擇 版本(圖 ):進行安裝 圖 12 第三步:安裝 Android SDK:首先要下載 SDK,可以在這個網(wǎng)址下載 ,選擇相應(yīng)的系統(tǒng)進行安裝 圖 第四步:安裝 Android ADT 插件 運行 Eclipse,選擇 helpinstall new software 選擇 add,將會彈出一個框 圖 點擊 OK,選擇要安裝的軟件,占 next,然后選擇接受協(xié)議,直到安裝成功,重啟 Eclipse 軟件,設(shè)置 Android SDK Home, Windowrefrence 13 圖 在 SDK location 中輸入 SDK Tools 路徑: D:\android software\androidsdkwindows 點擊 OK 這樣 Android 環(huán)境就已經(jīng)搭建成功了。 SD 卡的創(chuàng)建 通過 Android 的 Tools 來創(chuàng)建 sd 卡并導(dǎo)入進來 1. 打開 dos, windows+R 鍵打開。在命令行中輸入: mksdcard 1024M E:\androidsdcard\ (這個 1024M 就是我們要創(chuàng)建的 SD 卡的大小,還是根據(jù)自己的需要來輸入,最后面的那個 E:\androidsdcard\ 就是所設(shè)置的 SD 存放路徑,這里也可以根據(jù)我們自己的需要改變路徑的,但 要注意路徑中不能有空格出現(xiàn)) 14 3. 在 Eclipse 里面創(chuàng)建模擬器,并以該 SD 開來創(chuàng)建 4. 創(chuàng)建完成之后,啟動該模擬器。 5. 同樣打開 Eclipse 的 DDMS?File— Explorer 查看 sd 卡是否安裝成功。這里和容易出現(xiàn)異常。 建議修改一下試試。如果, sd 卡是在 eclipse 里面系統(tǒng)自動創(chuàng)建的,試著重啟一下 IDE??梢孕薷摹? 15 3 音樂播放器的詳細設(shè)計 播放器主界面的設(shè)計和說明 Android 的每一個可視化界面,都有其唯一的布局配置文件,該文件里面有各種布局方式,各種資源文件如圖像,文字,顏色的引用,程序在運行時,可以通過代碼對配置文件進行讀取。 主界面布局文件內(nèi)容如下: ?xml version= encoding=utf8? AbsoluteLayout xmlns:android= android:id=+id/AbsoluteLayout01 android:layout_width=wrap_content android:layout_height=fill_parent android:background=drawable/backgrund android:sharedUserId= 此處的 ListView作用為列出歌曲 ListView android:id=id/android:list android:layout_width=fill_parent android:layout_height=fill_parent android:layout_weight=1 android:drawSelectorOnTop=false/ LinearLayout android:layout_width=fill_parent android:layout_height=wrap_content android:gravity=center android:orientation=horizontal 此處的 ImageButton用于第一曲 ImageButton android:id=+id/music_lasted android:layout_width=wrap_content android:layout_height=wrap_content android:layout_marginRight=5dp android:src=drawable/latest1 / 此處的 ImageButton用于上一曲 ImageButton 16 android:id=+id/music_rewind android:layout_width=wrap_content android:layout_height=wrap_content android:layout_marginRight=5dp android:src=drawable/rewind / 此處的 ImageButton用于播放與暫停 ImageButton android:id=+id/music_play android:layout_width=wrap_content android:layout_height=wrap_content android:layout_marginRight=5dp android:src=drawable/play1 / 此處的 ImageButton用于下一曲 ImageButton android:id=+id/music_foward android:layout_width=wrap_content android:layout_height=wrap_content android:layout_marginRight=5dp android:src=drawable/foward / 此處的 ImageButton用于最后一曲 ImageButton android:id=+id/music_next android:layout_width=wrap_content android:layout_height=wrap_content android:src=drawable/next1 / /LinearLayout 主界面為: 17 Android 媒體播放原理 Android 源程序已經(jīng)為我們封裝了一個接口類,叫 MediaPlayer。 第 二 步 : 傳 入 歌 曲 數(shù) 據(jù) 源 , 這 里 也 是 一 個 數(shù) 據(jù) 源 :(String path)。 第三步:準備播放數(shù)據(jù)源,調(diào)用 ()。播放數(shù)據(jù)源,該數(shù)據(jù)源播放后, 18 不再于程序有關(guān),需要調(diào)用 ()方法讓其停 止或()。 播放功能實現(xiàn)細節(jié) 為了實現(xiàn)音樂播放器的基本功能:音樂 播放、暫停、停止、上一首、下一首。將其設(shè)置為水平。配置文件代 碼結(jié)構(gòu)如下: LinearLayout ImageButton /ImageButton ImageButton /ImageButton Ima
點擊復(fù)制文檔內(nèi)容
法律信息相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1