Android Question I get a strange error sometimes

tigrot

Well-Known Member
Licensed User
Longtime User
Hi everybody,
starting an activity from another i get the error in the picture I include.
If I answer to go on everything is ok...
Can anybody tell why this?

Thank you
Mauro
 

Attachments

  • Screenshot_2016-11-18-13-25-11.png
    Screenshot_2016-11-18-13-25-11.png
    49.8 KB · Views: 119
Last edited:

An Schi

Well-Known Member
Licensed User
This is just a very wild guess, cause as DonManfred said without a example project there will be no real help.

When i have simular errors i try to call the sub with 'callsubdelayed'. sometimes this helps ;)
 
Upvote 0

tigrot

Well-Known Member
Licensed User
Longtime User
Of course.. One info: I get this error SOMETIMES when I activity.Finish and startactivity(xxx) no matter which activity it is.
I cannot include the whole pjt, it's too big ...
I'll try to understand what happens...
Thank you guys!

Mauro
 
Upvote 0

tigrot

Well-Known Member
Licensed User
Longtime User
Hi everybody, just to share my error...
The activity was a camera. I wrote a sub to stoppreview and release camera, but I called a callsubdelayed(me, "termina") followed by activity.finish. Doing this the camera was never released, because the delayed call was not able to find the sub. I saw this exploring the Java source.
I changed to simple call : termina.... EVVAIIIII(translation HERE WE GOOO!) ! I did it!

Thank for
 
Upvote 0
Top