I tried it, thanks for answer, but It doesn't do the expected result.
Here is my code what I tried to do:
public class s extends Activity{
private static final int REQUEST_CODE = 1;
ImageView secret;
public int counter;
public int counter_foe;
public
Thanks, I think that I could make it with SharedPreferences!
Thanks for help.
On aug. 8, 12:36, Zwiebel hunzwie...@gmail.com wrote:
I tried it, thanks for answer, but It doesn't do the expected result.
Here is my code what I tried to do:
public class s extends Activity{
private
On Mon, Aug 8, 2011 at 5:36 AM, Zwiebel hunzwie...@gmail.com wrote:
I tried it now. I tried with onRestoreInstanceState too, but it looked like
this. I couldn't show my counter and counter_foe content, because it's
everytime shows 0.
I didn't follow that, but what you put in the Bundle in
Yes, maybe, but I think that the problem was, that the program wasn't
destroyed only put to the background. So, I had an A activity, from it
I called B activity. A went to background, but it wasn't destroyed. So
it didn't call onRestoreInstanceState. It's my opinion, but I'm not
sure in it.
On Mon, Aug 8, 2011 at 12:40 PM, Zwiebel hunzwie...@gmail.com wrote:
So, I had an A activity, from it I called B activity. A went to background,
but it wasn't destroyed.
Right. onSaveInstanceState / onRestoreInstance state is for preserving /
restoring the state of a single Activity if and
I tried the following too:
public class s extends Activity{
private static final int REQUEST_CODE = 1;
ImageView secret;
public int counter;
public int counter_foe;
public TextView txt;
public TextView counter_txt;
ImageView pic;
So do you think, that if I'm try to do this in the s class, will it be
good?:
@Override
public void onSaveInstanceState(Bundle savedInstanceState) {
savedInstanceState.putInt(counter, counter);
savedInstanceState.putInt(counter_foe, counter_foe);
super.onSaveInstanceState(savedInstanceState);
On Sun, Aug 7, 2011 at 3:58 PM, Zwiebel hunzwie...@gmail.com wrote:
So do you think, that if I'm try to do this in the s class, will it
be good?:
That is the general idea, yes.
-
TreKing
8 matches
Mail list logo