資源簡介
簡單的Android視頻播放器,實現本地播放和url播放,實現全屏播放和下載功能
代碼片段和文件信息
package?com.example.piapai.videoplayer;
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.*;
/**
?*?Instrumented?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.example.piapai.videoplayer“?appContext.getPackageName());
????}
}
- 上一篇:java課程設計報告小學數學教輔軟件.doc
- 下一篇:基于java的學生選課系統
評論
共有 條評論