Re: [android-developers] Re: Stopping activity problem

2010-11-22 Thread Kostya Vasilyev
Hi, Take a look at Activity lifecycle chart: http://developer.android.com/guide/topics/fundamentals.html#actlife (scroll down a bit to see the chart) You may need to override onStart or onRestart, and fetch data there. If you still need to change how your activities behave, take a look at va

[android-developers] Re: Stopping activity problem

2010-11-22 Thread umakantpatil
Thanks paul. That is the solution currently i have with me. But i dont want that because: Each activity fetches valued from db and renders them. So when i move within the activities. Each time it doesn't fetch data from and and re-render it. It just brings the activity to the front. But If i keep

Re: [android-developers] Re: Stopping activity problem

2010-11-22 Thread paulb
Can you close the activities after you activate the next one? Then, you will only ever have open one activity. On Tue, Nov 23, 2010 at 12:50 AM, umakantpatil wrote: > In short, > question is how to close B activity from activity A. ? > > On Nov 22, 6:34 pm, umakantpatil wrote: >> I have app whic

[android-developers] Re: Stopping activity problem

2010-11-22 Thread umakantpatil
In short, question is how to close B activity from activity A. ? On Nov 22, 6:34 pm, umakantpatil wrote: > I have app which has around 5 activities. > > When App is loaded I open Activity A and IF user opens then menu and > click on button 2 then Activity B is opened, If users clicks button 3 > f