Re: [android-developers] Re: On activity (re)usage en creation

2010-05-11 Thread TreKing
On Tue, May 11, 2010 at 1:31 AM, EnnaN wrote: > It is in this case easiest to make a separate activity for each type of > page, but this means that while 'browsing' you're making a new activity for > each click and that feels a bit redundant, expensive or.. well, something > like that? I was wond

[android-developers] Re: On activity (re)usage en creation

2010-05-10 Thread EnnaN
> > Any thoughts on how "bad" the current behaviour is? > > Not sure what you mean - but if you haven't touched anything else, the > current behavior is the default behavior, which should suffice for most > apps. My point was, you're basically doing the equivalent of browsing a site. But for each

Re: [android-developers] Re: On activity (re)usage en creation

2010-05-10 Thread TreKing
On Mon, May 10, 2010 at 1:34 PM, EnnaN wrote: > Any thoughts on how "bad" the current behaviour is? Not sure what you mean - but if you haven't touched anything else, the current behavior is the default behavior, which should suffice for most apps. -

[android-developers] Re: On activity (re)usage en creation

2010-05-10 Thread EnnaN
> > In the meanwhile, is there a standard method to ensure some sort of > > singleton effect? > > Not sure what you mean by "singleton effect", I was referring to the singleton pattern (http://en.wikipedia.org/wiki/ Singleton_pattern), but as its not completely correct in this case i obfuscaded th

Re: [android-developers] Re: On activity (re)usage en creation

2010-05-10 Thread TreKing
On Mon, May 10, 2010 at 1:18 PM, EnnaN wrote: > In the meanwhile, is there a standard method to ensure some sort of > singleton effect? > Not sure what you mean by "singleton effect", but you probably want to look at the launch mode flags when starting your activities. The singleTask flag, in pa

[android-developers] Re: On activity (re)usage en creation

2010-05-10 Thread EnnaN
Well that was easy: Entry 1->click->Comments 1->click->Entry 2. Using back works like you'd expect (that sounds good), so that would mean i'm starting a string of activities (could be bad). Anyone care to give advice about this? Is this a big memoryproblem, or could this just work? Nanne. On

[android-developers] Re: On activity (re)usage en creation

2010-05-10 Thread EnnaN
> You can test this pretty easily by doing what you described and backing out. > If it's the former, you should have 2 back presses. If it's the latter, you > should have to back out as many times as activities you started. Yes? Good point I think! That would mean that the back-button is defined