[AC-6478] rootActivity.finish issue (dont work every time)
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Open |
| Resolution | Unresolved |
| Affected Version/s | Appcelerator Studio 4.5.0 |
| Fix Version/s | n/a |
| Components | Titanium SDK & CLI |
| Labels | n/a |
| Reporter | libanez |
| Assignee | Abir Mukherjee |
| Created | 2020-01-31T10:27:09.000+0000 |
| Updated | 2020-01-31T10:27:09.000+0000 |
Description
I'm trying to call my appcelerator application from another Android application via startActivityForResult().
At the end i want to close my appcelerator app to come back to my initial app, for that i set an intent result to my root activity and close it with :
Ti.Android.rootActivity.setResult(Ti.Android.RESULT_OK, myIntent)
Ti.Android.rootActivity.finish()
The problem is that sometimes (not every times) the app dont exit and i have to manually exit it by taping on back button.
I have a line of code after the Ti.Android.rootActivity.finish() instruction, that assign an empty value to a variable, that i suspect of making struggles. I guess if finish() is not quick enough, the next instruction prevents app from exiting.
I will try to remove that line and give you a feedback in case anybody else encouter same issue.
No comments