Wednesday, March 5, 2014

activity jumps problem



Currently this activity click on the Start button becomes false, the Finish button becomes true, do record the GPS coordinates automatically refresh, when the completion of the start point and then becomes true, the completion becomes false, and now I do not point the completion point return to the previous activity to do other operations, but when they come back to this activity started from the new button with service did not understand, seek guidance<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
cited landlord wy880723 reply:

Currently this activity click on the Start button becomes false, the Finish button becomes true, do record the GPS coordinates automatically refresh, when the completion of the start point and then becomes true, the completion becomes false, and now I do not point the completion point return to the previous activity to do other operations, but when they come back to this activity started from the new button with service did not understand, seek advice

Return to activity when the button has initialized. You need a flag to record the state of the button, activity onPause I save flag up, onResume do when removing judgment.
SharedPreferences recommended to do, is relatively simple.
Reply:
cited a floor tantahe reply:
Quote: references landlord wy880723 reply:


Currently this activity click on the Start button becomes false, the Finish button becomes true, do record the GPS coordinates automatically refresh, when the completion of the start point and then becomes true, the completion becomes false, and now I do not point the completion point return to the previous activity to do other operations, but when they come back to this activity started from the new button with service did not understand, seek advice

Return to activity when the button has initialized. You need a flag to record the state of the button, activity onPause I save flag up, onResume do when removing judgment.
SharedPreferences recommended to do, is relatively simple.

Novice SharedPreferences less likely to use it, can not put this activity alone background ah

Reply:
Save a logo SharedPreference in a positive solution ah floor
Reply:
reference to the third floor a394268045 reply:
saved SharedPreference in a logo, a positive solution ah floor

Confused, SharedPreference I checked did not use, there is no simple point, or individual to run this activity backstage ah
Reply:
1L said pair
Generally, you press the start button in return is needed to prompt the user, in other words, click on the start usually with a dialog box to display the progress.
So here you are in a good design logic design ...
Reply:
references, 4th Floor wy880723 reply:
Quote: references to the third floor a394268045 reply:

Save a logo SharedPreference, the first floor of positive solutions ah

Confused, SharedPreference I checked did not use, there is no simple point, or individual to run this activity backstage ah

activity is running in the background, but later switched to the front, the state has initialized. So you need to save the state, then switch to the foreground when taken out of the state.
Reply:
reference to the 6th floor tantahe reply:
Quote: references to the 4th floor wy880723 reply:

Quote: references to the third floor a394268045 reply:

Save a logo SharedPreference, the first floor of positive solutions ah

Confused, SharedPreference I checked did not use, there is no simple point, or individual to run this activity backstage ah

activity is running in the background, but later switched to the front, the state has initialized. So you need to save the state, then switch to the foreground when taken out of the state.

I direct that a global Boolean variable to save the state of the button it does not work
Reply:
reference to the 7th floor wy880723 reply:
Quote: references to the 6th floor tantahe reply:

Quote: references to the 4th floor wy880723 reply:

Quote: references to the third floor a394268045 reply:

Save a logo SharedPreference, the first floor of positive solutions ah

Confused, SharedPreference I checked did not use, there is no simple point, or individual to run this activity backstage ah

activity is running in the background, but later switched to the front, the state has initialized. So you need to save the state, then switch to the foreground when taken out of the state.

I direct that a global Boolean variable to save the state of the button does not work it

Do not fly.
You look SharedPreference it, very simple.
Reply:
reference to the 8th floor tantahe reply:
Quote: references to the 7th floor wy880723 reply:

Quote: references to the 6th floor tantahe reply:

Quote: references to the 4th floor wy880723 reply:

Quote: references to the third floor a394268045 reply:

Save a logo SharedPreference, the first floor of positive solutions ah

Confused, SharedPreference I checked did not use, there is no simple point, or individual to run this activity backstage ah

activity is running in the background, but later switched to the front, the state has initialized. So you need to save the state, then switch to the foreground when taken out of the state.

I direct that a global Boolean variable to save the state of the button does not work it

Do not fly.
You look SharedPreference it, very simple.

No really, I set a global variable, return to this activity is initialized

No comments:

Post a Comment