我在打开一个新活动时遇到问题。应用程序关闭并且不会向用户显示任何错误。我将 Activity 的代码放在我调用的位置、应该接收调用的 Activity、清单和日志中。我调试了应用程序并且调试没有进入其他活动。
//Here I do the call to other activity
@Override
protected void onPostExecute(String unused) {
if (pDialog != null) {
Intent i = new Intent(context, RedesActivity.class);
i.putExtra("redes", redes);
i.putExtra("token", token);
i.putExtra("iDUsuario", idUsuario);
i.putExtra("nombreUsuario", usuario);
startActivity(i);
pDialog.dismiss();
finish();
}
}
//The activity that receive the call (RedesActivity)
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Quitamos el encabezado de la app
requestWindowFeature(Window.FEATURE_NO_TITLE);
.....
最明显的
<activity
android:name="com.xxxxxx.MainActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.xxxxxxxx.RedesActivity"
android:label="@string/title_activity_redes"
android:configChanges="orientation|keyboardHidden|screenSize">
</activity>
如果我运行应用程序,应用程序退出并且不显示错误,但如果我调试我可以看到
08-14 11:23:07.145: E/SurfaceTextureClient(22338): ISurfaceTexture::setBufferCount(0) returned No such device
08-14 11:23:07.940: I/Choreographer(22338): Skipped 485 frames! The application may be doing too much work on its main thread.
08-14 11:23:08.095: E/MaliEGL(22338): void __egl_platform_dequeue_buffer(egl_surface*):1099 [EGL-ERROR] failed to dequeue buffer from native window (0x40de0ad8); err = -19, buf = 0x0
08-14 11:23:08.100: E/SurfaceTextureClient(22338): ISurfaceTexture::setBufferCount(0) returned No such device
任何人都可以帮忙吗?谢谢