美文网首页java学习
不重复打开多个界面

不重复打开多个界面

作者: 票务系统曾坪 | 来源:发表于2018-11-26 14:00 被阅读0次

               Intent intent = new Intent();

                intent.setClass(MainActivity.this, OtherAcitivity.class); 

//              intent.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT); //不重复打开多个界面 

                startActivity(intent); 

                overridePendingTransition(R.anim.move_left_in, R.anim.move_right_out);

相关文章

网友评论

    本文标题:不重复打开多个界面

    本文链接:https://www.haomeiwen.com/subject/pmkbqqtx.html