In Titanium 6.1.0, our build tools ignore the activity "android:launchMode" setting in "tiapp.xml" and log the following build warning. This was to avoid confusion over how Google's "singleTask" feature works and to favor Titanium's "intent-filter-new-task" property instead.
We should change the behavior to allow developers to set "android:launchMode" again, but keep the build warning. Some developers already know how to deal with the repercussions of the "singleTask" setting where all child activity windows are automatically closed upon app resume.
- Add the below Android xml settings to your "tiapp.xml" file.
- In the XML, change the <activity> element's "name" attribute's <ProjectName> part to the name of your Titanium project where only the 1st letter is capitalized. (Ex: "MyProject" would become "Myproject".)
- Build the application for Android.
- Note the build warning that appears regarding "android:launchMode".