0
所以我剛剛注意到我的應用在模擬器中運行時跳過了很多幀。這是我的第一個應用程序,我對這個主題做了一些閱讀,發現我可能不會正確地開始活動。但是,我的活動通過設置菜單加載,我不知道這是在我的代碼中。如果這是一個很大的問題,我們將不勝感激,如果有人能夠指出我的方向與我的特定代碼有關嗎? https://github.com/addrum/Calculate關於如何在android中修復跳幀的建議
如果需要,我可以在此發佈代碼。
編輯:這似乎跳過飛濺活動框架:
package com.main.androidcalculator;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
public class SplashActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.splash);
Thread timer = new Thread() {
public void run() {
try{
sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
} finally {
Intent openMain = new Intent("com.main.androidcalculator.MAINACTIVITY");
startActivity(openMain);
}
}
};
timer.start();
}
@Override
protected void onPause() {
// TODO Auto-generated method stub
super.onPause();
finish();
}
}
我想你應該寫一段代碼,因爲這樣的人是懶惰這是有關你的問題。 – yilmazburk
它在哪些活動中跳過了一些框架? – hichris123
你的所有活動都很好看。 – dymmeh