Yes,  Fragments helps a lot.

I did multi tasking using activities, Asyctask, hidden layouts in a 
Relative lout,etc.

But Fragments is the best solution, I believe.Not sure about compatible 
jars of fragments that works in lower versions, but heard that it works 
equally good.

I think every knows that some  UI features still very in iPhone, we can 
easily overlay a screen on another without coding effort or less coding.
But Android certainly gives the rich ness and User friendly experience with 
fragments that are better than iPhone in some scenarios.

regards

On Wednesday, May 16, 2012 8:13:12 PM UTC+5:30, Streets Of Boston wrote:
>
> " from your talking it seems that in your mind the app needs to store 
> every user's move in database 
> and restore it in every onCreate(), hey, have you every programmed an 
> android app?  "
>
> If you write an app that allows the user to change an Activity's data and 
> state (that is not backed by input fields such as EditText, etc), you'd 
> need to persist this data when the activity (and application) is restarted. 
> However, you don't need to implement you own database/persistence/storage 
> for this. Just implement the callback method onSaveInstanceState correctly 
> (save the data/state into the provided bundle) and read the data from this 
> bundle in the onCreate. Easy peasy. Or use a (hidden) Fragment. Even more 
> easier peasier.
>
> And yes, I have programmed an Android app....
>
>
> On Wednesday, May 16, 2012 10:01:35 AM UTC-4, sblantipodi wrote:
>>
>> As the graph I posted explain the app is not restarted, but the latest 
>> activity is. 
>> If the activity is restarted, user needs to reinput the input it 
>> submitted, variables needs to be re-populated, etc. 
>>
>> from your talking it seems that in your mind the app needs to store 
>> every user's move in database 
>> and restore it in every onCreate(), hey, have you every programmed an 
>> android app? 
>>
>> On May 16, 3:51 pm, Nikolay Elenkov <[email protected]> wrote: 
>> > On Wed, May 16, 2012 at 10:43 PM, sblantipodi 
>> > 
>> > <[email protected]> wrote: 
>> > > don't try to justify a broken system, please. 
>> > 
>> > > Take a fresh new galaxy nexus, install on it three small apps, choose 
>> > > you the apps and start them, 
>> > > now open two tabs on your browser, choose you the site, now come back 
>> > > at the first apps opened, you will 
>> > > see that the activity has been restarted, now open the other two 
>> apps, 
>> > > now return to browser, the page needs a refresh on every tabs. 
>> > 
>> > Even if you are right, what is the problem with the apps being 
>> restarted? 
>> > If they have been implemented properly it shouldn't matter. If they 
>> haven't, 
>> > well, get whoever wrote them to fix them. 
>> > 
>> > 
>> > 
>> > > This is obviously a broken multitasking system. 
>> > 
>> > Really? Define a non-broken multitasking system then.
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to