nikunjkacha / openintents

Automatically exported from code.google.com/p/openintents
0 stars 0 forks source link

OI Safe activity stack gets confused by Task Manager #399

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Good Operation:
1. Start OI safe
2. enter master password
3. from "category view" select an existing category
4. menu->add
5. enter description "xxx"
6. short press phone's HOME key
7. Start OI safe (it's still unlocked) --> takes me back to partially-entered, 
but not saved, new entry named "xxx"

Bad operation (1)
1. Start OI safe
2. enter master password
3. from "category view" select an existing category
4. menu->add
5. enter description "yyy"
6. short press phone's HOME key
6a. (optionally do something in some other app)
7. long press on phone's home key --> brings up task manager
8. from task manager, select OI Safe --> takes me to Category view **I expected 
to go back to partially-entered, but not saved, new entry named "yyy"**
9. [press BACK key --> takes me back to partially-entered, but not saved, new 
entry named "yyy"].

Bad operation (2)
1. Start OI safe
2. enter master password
3. from "category view" select an existing category
4. menu->add
5. enter description "yyy"
6. long press on phone's home key --> brings up task manager
7. from task manager, select OI Safe --> takes me to Category view **I expected 
to go back to partially-entered, but not saved, new entry named "yyy" **
8. [press BACK key --> takes me back to partially-entered, but not saved, new 
entry named "yyy"]

Bad operation (3)
1. Start OI safe
2. enter master password
3. from "category view" select an existing category to see the list of 
passwords for that category
6. long press on phone's HOME key --> brings up task manager
7. from task manager, select OI Safe --> takes me to Category view **I expected 
to go back to the same screen I was on before I long-pressed the HOME key**
8. press BACK key --> takes me back to the list of passwords that was visible 
in step 3.

"Bad operation (2)" and "(3)" are just perverse user action, but "Bad operation 
(1)" is what I find myself doing repeatedly as I transfer entries one-by-one 
from another password app that has fallen from favour with me.

By repeatedly long-pushing on HOME from different OI Safe activities and 
restarting OI Safe you can build up a wierd and wonderful activity stack, then 
press the BACK key and step all the way back until the app exits as expected.

When I try similar tricks with the task manager on other apps. they work as I 
expect:

- if I am in the app and switch back to it, I remain on the screen (activity) I 
was on before I lonng-press the HOME key.
- if I am in app A and use the task manager to switch to app B, I go back to 
the screen (activity) I was last using in app B.

This leads me to suspect a bug in OI Safe rather than in the OS.

What version of the product are you using? On what operating system?
0I safe 1.2.9 on Samsung Galaxy S, Android 2.3.3 GINGERBREAD

Please provide any additional information below.

Great app, and thanks for all your hard work and your generosity in 
open-sourcing it.

regards,

Neal

Original issue reported on code.google.com by foofoobe...@gmail.com on 14 Nov 2011 at 11:13

GoogleCodeExporter commented 8 years ago
Another example of bad interaction with the task manager.

Bad operation (4)
1. Start OI safe
2. enter master password, get to "category view"
3. long press on phone's HOME key --> brings up task manager
4. from task manager, select OI Safe --> takes me to Category view
5. press BACK key --> takes me to Category view (again) **I expected the app to 
exit**
6. press BACK key --> app exits

If, in step 4, you delete a category from the category view, the deleted 
category reappears in step 5 (after you pressed BACK) suggesting that step 5 is 
showing an "older" instance of the category view.. if you try selecting the 
deleted category the app will (quite reasonably!) terminate with an unexpected 
stop.

regards,

Neal.

Original comment by foofoobe...@gmail.com on 15 Nov 2011 at 12:59

GoogleCodeExporter commented 8 years ago

Original comment by peli0...@googlemail.com on 27 Nov 2011 at 10:44