如果有要显示的数据,我正在使用轮播进行另一个活动,但是当单击轮播时,应用程序会崩溃,这是日志 cat :
9-06 11:16:58.831: E/AndroidRuntime(624): android.content.ActivityNotFoundException: 找不到明确的活动类 {com.university.app/com.university.app.arabic.personalHome}; 您是否在 AndroidManifest.xml 中声明了此活动?09-06 11:16:58.831: E/AndroidRuntime(624): 在 android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1508) 09-06 11:16:58.831: E/AndroidRuntime(624): 在 android. app.Instrumentation.execStartActivity(Instrumentation.java:1384) 09-06 11:16:58.831: E/AndroidRuntime(624): 在 android.app.Activity.startActivityForResult(Activity.java:3190) 09-06 11:16: 58.831: E/AndroidRuntime(624): 在 android.app.Activity.startActivity(Activity.java:3297) 09-06 11:16:58.831: E/AndroidRuntime(624): 在 com.university.app.LoginActivity$NetCommunication $服务器通讯$1。
这是代码:
private void performBottomBarButtonFunction() {
ImageButton infoButton = (ImageButton) findViewById(R.id.info_button);
infoButton.setOnClickListener(new OnClickListener() {
public void onClick(View view) {
Intent intent = new Intent(mContext, HomeActivity.class);
startActivity(intent);
}
});
ImageButton academicButton = (ImageButton) findViewById(R.id.academic_button);
academicButton.setOnClickListener(new OnClickListener() {
public void onClick(View view) {
Intent intent = new Intent(mContext, AcademicHomeActivity.class);
startActivity(intent);
}
});
ImageButton eTransactionButton = (ImageButton) findViewById(R.id.etransaction_button);
eTransactionButton.setOnClickListener(new OnClickListener() {
public void onClick(View view) {
Intent intent = new Intent(mContext,
E_RegistrationHomeActivity.class);
startActivity(intent);
}
});
ImageButton personalButton = (ImageButton) findViewById(R.id.personal_button);
personalButton.setImageResource(R.drawable.sper);
}