Titanium JIRA Archive
Appcelerator Community (AC)

[AC-6478] rootActivity.finish issue (dont work every time)

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sAppcelerator Studio 4.5.0
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
Reporterlibanez
AssigneeAbir Mukherjee
Created2020-01-31T10:27:09.000+0000
Updated2020-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.

Comments

No comments

JSON Source