使用旋转木马时崩溃

时间:2012-09-06 12:04:19

标签: android

如果要显示adata,我正在使用旋转木马去另一个活动 但当点击caruosel崩溃应用程序,这里是日志猫 :

  

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):at   android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1508)   09-06 11:16:58.831:E / AndroidRuntime(624):at   android.app.Instrumentation.execStartActivity(Instrumentation.java:1384)   09-06 11:16:58.831:E / AndroidRuntime(624):at   android.app.Activity.startActivityForResult(Activity.java:3190)09-06   11:16:58.831:E / AndroidRuntime(624):at   android.app.Activity.startActivity(Activity.java:3297)09-06   11:16:58.831:E / AndroidRuntime(624):at   com.university.app.LoginActivity $ NetCommunication $ ServerCommunication $ 1.handleMessage(LoginActivity.java:797)   09-06 11:16:58.831:E / AndroidRuntime(624):at   android.os.Handler.dispatchMessage(Handler.java:99)09-06   11:16:58.831:E / AndroidRuntime(624):at   android.os.Looper.loop(Looper.java:137)09-06 11:16:58.831:   E / AndroidRuntime(624):at   android.app.ActivityThread.main(ActivityThread.java:4424)09-06   11:16:58.831:E / AndroidRuntime(624):at   java.lang.reflect.Method.invokeNative(Native Method)09-06   11:16:58.831:E / AndroidRuntime(624):at   java.lang.reflect.Method.invoke(Method.java:511)09-06 11:16:58.831:   E / AndroidRuntime(624):at   com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run(ZygoteInit.java:784)   09-06 11:16:58.831:E / AndroidRuntime(624):at   com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)09-06   11:16:58.831:E / AndroidRuntime(624):at   dalvik.system.NativeStart.main(原生方法)

这是代码:

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);

    }

1 个答案:

答案 0 :(得分:0)

添加完整的包名称,例如:com.uni.app.arabic.personalHOme