0
I have the following problem , I have a list view in act1 q depends on a variable to be loaded, when I finish my act2 or go back by the back button of android (bottom button) the value of the variable is maintained, however when I return using the back button of the application the value of the variable is reset
note: my list view is being loaded by the onResume method.
1 - Can you explain better what would be the "back button of the application"? Is it a common Button that kills act2 when clicked? 2 - can better explain "list view in act1 q depends on a variable to load"?
– Mr_Anderson
when you place a parentActivityName in the manifest, it generates a button to return to the previous Activity at the top left of the application, the information that will filter the query when I do select this saved in a String variable, in my select have a Where using the value of this variable, for the first time it does everything right, however when I return using this upper left button I lose the value of this variable String, thus losing the information necessary to complete my select
– Vitor Hugo
i created a Static variable and it is no longer losing values ! ex: Static String value;
– Vitor Hugo