我是一个初学者 android 程序员,我似乎有一个问题:我打开新活动,用
Intent newGameIntent = new Intent(actionName);
startActivity(newGameIntent);
Run Code Online (Sandbox Code Playgroud)
一切正常,活动打开。但是当我调用 finish() 时,它不会进入 previus 活动,它只是关闭应用程序(没有错误或其他日志消息)
有谁知道为什么会这样?谢谢你的时间!
根据要求,这里有更多代码(我可能完全搞砸的东西):第一个活动:
@Override
protected void onStop() {
super.onStop();
SplashScreen.sounds.releasSounds();
finish();
}
@Override
protected void onPause() {
super.onPause();
pauseActivity();
}
@Override
protected void onResume() {
// TODO Auto-generated method stub
super.onResume();
gameLoop.resumeThread();
SplashScreen.sounds.resumeSounds();
}
private void pauseActivity() {
gameLoop.pauseThread();
SplashScreen.sounds.pauseBck();
}
Run Code Online (Sandbox Code Playgroud)
和调用秒活动的第一个活动
Intent newGameIntent = new Intent("com.YuvalApps.menus.NEWGAMEMENU");
startActivity(newGameIntent);
Run Code Online (Sandbox Code Playgroud)
和秒活动
@Override
protected void onPause() {
// TODO Auto-generated method stub
super.onPause();
finish();
}
Run Code Online (Sandbox Code Playgroud) 我正在制作一个360度的统一观察者,观看一张360度的照片,我曾经将一个立方体贴图连接到天空盒,而且效果很好.但是立方体贴图的重量迫使我切换到纹理.
所有360观察器教程都说要在其上放置一个带着色器的球体,然后将相机放入其中.当我这样做时,它不能很好地工作,因为当我看到顶部或底部时,我看到图像像这样弯曲:(椅子被假定看起来正常)

当我使用天空盒时,它没有发生.
有人知道为什么会这样吗?
非常感谢你!
shader textures unity-game-engine photosphere google-cardboard