logcat的:
04-26 16:28:20.623 6848-6848/com.example.irit.myapp D/AbsListView: Get MotionRecognitionManager
04-26 16:28:20.623 6848-6848/com.example.irit.myapp E/MotionRecognitionManager: mSContextService = android.hardware.scontext.ISContextService$Stub$Proxy@c651538
04-26 16:28:20.623 6848-6848/com.example.irit.myapp E/MotionRecognitionManager: motionService = com.samsung.android.motion.IMotionRecognitionService$Stub$Proxy@4d14911
04-26 16:28:20.623 6848-6848/com.example.irit.myapp E/MotionRecognitionManager: motionService = com.samsung.android.motion.IMotionRecognitionService$Stub$Proxy@4d14911
我不知道这是不是一个错误,但有时,当我想动态加载我的列表视图时,我的应用程序只是卡住了,屏幕变黑了。 这发生了1/10次
运行的代码: 在我的onClickListener中:
Intent intentHisto = new Intent(EnvoiMailActivity.this, HistoriqueActivity.class);
EnvoiMailActivity.this.startActivity(intentHisto);
在我的活动中:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS,
WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);
setContentView(R.layout.historique);
this.mGoogleAccount = GOOGLE_ACCOUNT_USED;
this.mMessageControlleur = new MessageControlleur(this);
if (Conf.MESSAGE_HISTORIQUE == null){
try {
listMessage = mMessageControlleur.GetMessageSameRecipient(mGoogleAccount.getmGmail(), mGoogleAccount.getmCredential().getSelectedAccountName(), Conf.EMAIL_DU_SERVICE);
Conf.MESSAGE_HISTORIQUE = listMessage;
} catch (IOException e) {
e.printStackTrace();
} catch (InterruptedException e) {
e.printStackTrace();
}
}else{
listMessage = Conf.MESSAGE_HISTORIQUE;
}
createTitle();
//this.mHistoriquePagerAdapter = new HistoriquePagerAdapter(getSupportFragmentManager());
//this.mViewPager = (ViewPager) findViewById(R.id.pager);
//this.mViewPager.setAdapter(mHistoriquePagerAdapter);
try {
this.adapter = new MyArrayAdapterMail(this, R.layout.mail_visualise, mMessageControlleur.messageToMimeMesssage(listMessage));
} catch (MessagingException e) {
e.printStackTrace();
}
this.mListView = (ListView) findViewById(R.id.listView);
mListView.setAdapter(this.adapter);
}
我认为我的应用程序在我的onCreate中被困在第一个,因为当没有任何错误时,我得到了另一个logcat:GetMessageSameRecipient()
返回