我的应用程序只是在启动模式,但没有完全加载 Logcat 消息是: “跳过 33 帧!应用程序可能在其主线程上做了太多工作。” 请帮助我..
最佳答案
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Log.d("in on create", "before thread");
new handler().start();
}
private class handler extends Thread {
@Override
public synchronized void start() {
super.start();
Log.d("in handler ", "inside start");
}
}
}
关于Android 应用程序未正确加载到 AVD 中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17761933/