Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Duplicate finish requests #3

Closed
stonier opened this issue Jun 13, 2013 · 5 comments
Closed

Duplicate finish requests #3

stonier opened this issue Jun 13, 2013 · 5 comments
Assignees
Labels

Comments

@stonier
Copy link
Contributor

stonier commented Jun 13, 2013

Listener getting duplicate requests for both the listener and robot remocon.

Duplicate finish request for ActivityRecord...com.github.robotics_in_concert.rocon_android.robot_remocon/.RobotRemocon
@ghost ghost assigned stonier Jun 13, 2013
@stonier
Copy link
Contributor Author

stonier commented Jun 14, 2013

Was also occuring for standalone Listener.

Apps were calling onDestroy() directly, resulting in two calls to onDestroy() and two calls to stop app on the app manager.

Should never call onDestroy() explicitly. Use finish() instead.

rosjava/android_remocons@e54e904

@stonier
Copy link
Contributor Author

stonier commented Jun 15, 2013

Still there.

@stonier
Copy link
Contributor Author

stonier commented Jun 15, 2013

Caused by RosActivity itself - threw in a check to see if it is finishing.

https://github.com/ros-java/android_core/commit/ba9c15d33336ba79abfb077d0ff83ed1134f3c80

@stonier stonier closed this as completed Jun 15, 2013
@Y-JH
Copy link

Y-JH commented Sep 8, 2017

Duplicate finish request for ActivityRecord...
出现这种错误的原因是,你在操作关闭当前activity的时候 finish 了两次获更多次。检查一下你的关闭当前页面的代码有没有重复的 finish 。我遇到这个问题了,是因为我不小心在Activity中重写finish方法中 又调用了一次finish方法...

@adamantivm
Copy link
Contributor

@Y-JH could you explain a little more what exactly were you trying to do when you had this problem? Which of the android_apps are you trying to use, which version, and what are the steps to produce this problem?

你写简单汉语的话,可能我可以懂你的问题。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants