資源簡介
使用OpenGL繪制視頻流,實現微信視頻聊天的界面。
代碼片段和文件信息
package?com.example.liyachao.activity;
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.assertEquals;
/**
?*?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.example.liyachao.previewcamera“?appContext.getPackageName());
????}
}
- 上一篇:OpenGL預覽攝像頭
- 下一篇:HS6200 -- RF2.4G
評論
共有 條評論