【问题标题】:Can't open another activity in android无法在android中打开另一个活动
【发布时间】:2016-02-03 15:28:55
【问题描述】:

当我试图按下按钮打开另一个活动时 首先点击它看起来,

02-03 20:48:42.489 17665-17665/? D/dalvikvm: Late-enabling CheckJNI
02-03 20:48:42.579 17665-17665/? I/PGA: Attempting to create new SOCKET connectionn pid = 17665, tid = 17665
02-03 20:48:42.619 17665-17665/? I/PGA: New SOCKET connection: com.example.balamasthang.smartattendance (pid 17665, tid 17665)
02-03 20:48:42.619 17665-17665/? W/PGA: [17665] egl: eglCreateWindowSurface (0x4a8937a0, 0x0, 0x7989bc88, 0x77603be0)
02-03 20:48:42.619 17665-17665/? W/PGA: [17665] egl: eglCreateWindowSurface (0x4a8937a0, 0x0, 0x7989bc88, 0x77603be0) returned
02-03 20:48:42.629 17665-17665/? D/OpenGLRenderer: Enabling debug mode 0

当我第二次点击时它看起来

类似 java.lang ..... 红色错误。 .但仅可见 1 秒。它消失了。 .并且看起来像是在 logcat 中的第一次点击。 请帮我解决这个问题

【问题讨论】:

  • 我认为您可以添加一些额外的细节。这是你的程序吗?如果是这样,请包含一些相关代码。如果不是您的代码,请提供一些关于它是什么的其他详细信息。

标签: android android-layout android-fragments android-intent


【解决方案1】:

您应该在 android manifest 中定义活动。你能忘记吗?

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-04-24
    • 1970-01-01
    • 2016-04-18
    • 1970-01-01
    • 2013-05-26
    • 1970-01-01
    相关资源
    最近更新 更多