Serious Problem.......

Common bugs/problems with the Android SDK the Emulator and the ADT-Plugin.

Serious Problem.......

Postby ashish » Thu Mar 26, 2009 9:20 am

when i click on home button of emulator,my application goes into background so,that's fine but when i resume it my whole aplication get refresh that is another instance of whole application get created.....i don't why this happening...

Any Suggestion Guys............
ashish
Experienced Developer
Experienced Developer
 
Posts: 62
Joined: Fri Feb 20, 2009 8:09 am

Top

Postby WarrenFaith » Thu Mar 26, 2009 9:43 am

WarrenFaith
Moderator
Moderator
 
Posts: 227
Joined: Fri Mar 13, 2009 10:59 am
Location: Berlin, Germany

Postby ashish » Thu Mar 26, 2009 10:35 am

thanks warren..........


according to activity lifecycle...after onstop instead of going to onrestart ,process is killed and it is calling oncreate..

why??in my application i am using GPS.
ashish
Experienced Developer
Experienced Developer
 
Posts: 62
Joined: Fri Feb 20, 2009 8:09 am

Postby ashish » Thu Mar 26, 2009 12:10 pm

this is only happening for first time when i start my application...when i restart my application...everything goes smoothly....

strange??????
ashish
Experienced Developer
Experienced Developer
 
Posts: 62
Joined: Fri Feb 20, 2009 8:09 am

Postby ashish » Thu Mar 26, 2009 12:50 pm

Actually this is happening with all application i think this is android bug or something else..


if u also want to test this...here all the steps...

1)install any new application on emulator.

2)when application start ,click on HOME button of emulator...due to this application will go into background..

3)now start the application so it will come into foreground....

4)now repeat the process from point no 2 to 3 again...(atleast 2-3 time).

5)now try to exit from the application(back button on emulator)...u can't, for that u have to click on exit button 2 to 3 time..


this thing will happen only for first time....when u restart your application....everything will be fine....


anybody know why???
ashish
Experienced Developer
Experienced Developer
 
Posts: 62
Joined: Fri Feb 20, 2009 8:09 am

Top

Return to SDK/ADT/Emulator Problems

Who is online

Users browsing this forum: No registered users and 3 guests