我如何在屏幕方向上停止重新启动或调用create(),我想停止在屏幕方向上重新创建活动.在此先感谢请告诉我任何更好的解决方案,它真正创造了一个问题.就像在我的程序中我选择一些图片但在屏幕方向上图像消失,这就是为什么我想停止在屏幕方向上重新开始活动.
enter code here public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.mainwindow); Toast.makeText(getApplicationContext(),"a",1).show(); bitmap = (Bitmap)getLastNonConfigurationInstance(); //Toast.makeText(getApplicationContext(),"a1",1).show(); if (savedInstanceState != null) { bitmap=BitmapFactory.decodeFile(mImageCaptureUri.getPath()); Toast.makeText(getApplicationContext(),"preview have value",1).show(); preview.setVisibility(View.VISIBLE); From_Folder.setVisibility(View.GONE); From_Camera.setVisibility(View.GONE); preview.setImageBitmap(bitmap); }