[android-developers] Re: Activity Issue on G1 phone

2009-01-26 Thread Brad Gies
To: android-developers@googlegroups.com Subject: [android-developers] Re: Activity Issue on G1 phone I meant that the static variable would -hold- the current activity. Everything in your .apk runs in one process. When you declare a static variable, that is creating a global to all code in that process

[android-developers] Re: Activity Issue on G1 phone

2009-01-25 Thread Brad Gies
_ From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Dianne Hackborn Sent: Friday, January 23, 2009 3:07 PM To: android-developers@googlegroups.com Subject: [android-developers] Re: Activity Issue on G1 phone There are two reasons

[android-developers] Re: Activity Issue on G1 phone

2009-01-25 Thread Dianne Hackborn
: Activity Issue on G1 phone There are two reasons for this: 1. Both screen rotation and keyboard shown/hidden are configuration changes, which means that after the state changes the application's resources can have any arbitrary new values -- anything from specific strings (for ex

[android-developers] Re: Activity Issue on G1 phone

2009-01-23 Thread Mark Murphy
Stanley.lei wrote: Hi all, I met a very strange issue when I tested my application on G1 phone. As usual method, I started a thread in an activity, and stopped the thread in the onDestroy method. But to my surprise, when I tried to slide down the keypad, the onDestroy method was called

[android-developers] Re: Activity Issue on G1 phone

2009-01-23 Thread Stanley.lei
It's so interesting! Thanks On Jan 23, 11:21 pm, Mark Murphy mmur...@commonsware.com wrote: Stanley.lei wrote: Hi all, I met a very strange issue when I tested my application on G1 phone. As usual method, I started a thread in an activity, and stopped the thread in the onDestroy

[android-developers] Re: Activity Issue on G1 phone

2009-01-23 Thread James Patillo
I think what happens is that the activity's state is saved, the activity is destroyed, and then it is recreated with its saved state. This is the same thing that happens when the home button is pressed and the app is reopened. This just what I have come to understand, and may be wrong.

[android-developers] Re: Activity Issue on G1 phone

2009-01-23 Thread cindy
Then android's implementation has problem. For example, if my application needs to create account, of cause, the key board will open first. After user typed in user name and password, then he clickes the create button.Request sends to server in a thread. After that, he closes the keyboard, the

[android-developers] Re: Activity Issue on G1 phone

2009-01-23 Thread Stanley.lei
I rather agree with you! In fact, I could not understand why Google designs like this. The keyboard action could impact the rotation, but why changing rotation impacts the activity? In my case, the thread is destroyed, which will destroy all tasks in the thread. In worst case, the user will have

[android-developers] Re: Activity Issue on G1 phone

2009-01-23 Thread James Patillo
Yeah, threads are particularly fun to deal with in Android. -Original Message- From: Stanley.lei [mailto:xiaofeng.lei...@gmail.com] Sent: Friday, January 23, 2009 11:52 AM To: Android Developers Subject: [android-developers] Re: Activity Issue on G1 phone I rather agree with you

[android-developers] Re: Activity Issue on G1 phone

2009-01-23 Thread cindy
with in Android. -Original Message- From: Stanley.lei [mailto:xiaofeng.lei...@gmail.com] Sent: Friday, January 23, 2009 11:52 AM To: Android Developers Subject: [android-developers] Re: Activity Issue on G1 phone I rather agree with you! In fact, I could not understand why Google designs

[android-developers] Re: Activity Issue on G1 phone

2009-01-23 Thread James Patillo
, 2009 12:45 PM To: Android Developers Subject: [android-developers] Re: Activity Issue on G1 phone should this be considered as a bug for android application. Usally, when people use keyboard, they are sending some information to server. After that UI will be updated in call back. On Jan 23, 10:20

[android-developers] Re: Activity Issue on G1 phone

2009-01-23 Thread cindy
Developers Subject: [android-developers] Re: Activity Issue on G1 phone should this be considered as a bug for android application. Usally, when people use keyboard, they are sending some information to server. After that UI will be updated in call back. On Jan 23, 10:20 am, James Patillo ja

[android-developers] Re: Activity Issue on G1 phone

2009-01-23 Thread cindy
thread's state to the new one. -Original Message- From: cindy [mailto:ypu01...@yahoo.com] Sent: Friday, January 23, 2009 12:45 PM To: Android Developers Subject: [android-developers] Re: Activity Issue on G1 phone should this be considered as a bug for android application. Usally