-
大小: 4.06MB文件類型: .gz金幣: 1下載: 0 次發布日期: 2023-10-28
- 語言: Java
- 標簽: Android??MusicPlayer??VideoPlayer??
資源簡介
一個簡單的Android 音樂播放器+視頻播放器開發源碼(包含說明文檔),供Android移動開發的初學者們借鑒與參考。開發環境 : AndroidStuido+Ubuntu
代碼片段和文件信息
package?com.world.my.mymusicplayer;
import?android.content.Context;
import?android.support.test.InstrumentationRegistry;
import?android.support.test.runner.AndroidJUnit4;
import?org.junit.Test;
import?org.junit.runner.RunWith;
import?static?org.junit.Assert.*;
/**
?*?Instrumentation?test?which?will?execute?on?an?Android?device.
?*
?*?@see?Testing?documentation
?*/
@RunWith(AndroidJUnit4.class)
public?class?ExampleInstrumentedTest?{
????@Test
????public?void?useAppContext()?throws?Exception?{
????????//?Context?of?the?app?under?test.
????????Context?appContext?=?InstrumentationRegistry.getTargetContext();
????????assertEquals(“com.world.my.mymusicplayer“?appContext.getPackageName());
????}
}
評論
共有 條評論