3
回答
这样的Activity,你觉得在启动的时候会卡顿吗?
利用AWS快速构建适用于生产的无服务器应用程序,免费试用12个月>>>   
public class MainActivity extends Activity {
	
	public void onCreate(Bundle savedInstanceState) {
        InputStream is = getResources().openRawResource(R.drawable.wone);    
        try {
			Thread.sleep(1000 * 7);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
        Bitmap bit = BitmapFactory.decodeStream(is); 
        
        setContentView(R.layout.activity_main);
        ImageView iView = (ImageView)findViewById(R.id.imageView1);
        iView.setImageBitmap(bit);
        super.onCreate(savedInstanceState);
	}
}


举报
蜗牛TT
发帖于5年前 3回/872阅
顶部