[TIMOB-4941] Android: More graceful workaround for Android Bug 2373 & 5277
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-03-12T10:08:28.000+0000 |
Affected Version/s | Release 1.7.2 |
Fix Version/s | Release 2.0.0, Sprint 2012-06 |
Components | Android |
Labels | module_package, qe-testadded |
Reporter | Pedro Enrique |
Assignee | Neeraj Gupta |
Created | 2011-08-08T14:54:14.000+0000 |
Updated | 2019-01-11T03:28:50.000+0000 |
I hope you will give this high priority. I've got a client that complains about this. And I've seen it mentioned in reviews of apps as a negative.
Pull Request: https://github.com/appcelerator/titanium_mobile/pull/541 Additional configuration options were added. The values shown below are the defaults.
if
disableDetection
is true, then the workaround is disabled and it will be possible for the app to be launched multiple times if opened first via install then opened from Home.restartDelay
is the number of milliseconds to wait before launching the app again with the corrected Intent settings.finishDelay
is the number of milliseconds to wait before telling the original Activity with the incorrect Intent settings to wait before finishing itself (i.e. exit) ifskipAlert
is true, then the AlertDialog will not be displayed and an Android Toast will be displayed with the contents ofti.android.bug2373.message
. If the message is set to an empty string, then the Toast will not be displayed.Testing Notes. See TIMOB-1559 for the general test instructions. The cases that should be tested are minimally. 1) No tiapp.xml settings. Should exhibit current TIMOB-1559 behavior. 2)
disableDetection
= true. Should exhibit 2373 and 5277 behavior, basically launch multiple times. 3)skipAlert
= true. Should see Toast withmessage
4) Verify "Old Settings" modify dialog and background 5) Verifymessage
change works whenskipAlert
= true 6) Try differentrestartDelay
andfinishDelay
settings to prove they change 7) Verify emptymessage
andskipAlert
= true does not display a Toast Message.QE - update packaging test plan with these test steps
closing and tagging for future port
De-escalating it.
We implement the suggested workarounds already, and have further recently fixed this for Kindle Fire and 3.x devices
Closing bug. Verified fix on: SDK build: 2.0.0.v20120315070246 Runtime: v8, rhino Titanium Studio, build: 2.0.0.201203142055 Devices: Droid 1 (2.2.3), Xoom (3.2.1), Kindle Fire
This alert is now appearing whenever the app is fired from the market, regardless of whether it was launched from the homescreen first. Android 2.3.3
also, this is particularly hazardous when the user first installs the app. If they try to launch from the notification bar, a common thing to do. The first thing they see is that the application needs to be restarted. using SDK 2.0.1.GA2
also, this is particularly hazardous when the user first installs the app. If they try to launch from the notification bar, a common thing to do. The first thing they see is that the application needs to be restarted. using SDK 2.0.1.GA2
@Paul - Please open a new ticket with the exact scenario. This ticket already has several different use cases.
A similar thing happens when launching an app from the lock screen. You need to set the lock screen to slide mode, and put your app as one of the shortcuts. Now kill the app if it's running, lock the phone and slide to your app. Then lock again and slide again - a second instance will run. Now if you lock again and slide to your app, it will bring the second instance into focus.
This issue has been resolved in Titanium 8.0.0. Please see: [TIMOB-26075]