You cant solve this problem without understanding it. There is no magic bullet.
Just take a while, relax, clear your mind and think about it. Dont go on the internet search spree when you cannot understand what they are saying. Chill.
Now, let me tell you, there is no real solution to this problem. There is no magic one line of java code or a stack overflow answer that will solve all your problems. This is not one problem, this is 10 problems. You have to work at them one after the other. And there is no 'good' or 'elegant' solution. There is only 'workarounds'.
If you want to be a problem solver, you need to think about how to solve problems, not how to find solutions.
Firstly, you should stop posting EZCamera code for two reasons:
- It doesnt work
- You are not allowed to post some elses decompiled code
Secondly, to do the check above I already linked you to this thread:
https://www.b4x.com/android/forum/threads/using-startactivityforresult-with-javaobject.40374/
This checks the result code.
But this will not solve your problem again because no intent is raised.
That is why I told you initially to use activity_resume and a flag.