Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extension of activities #4

Open
jjhesk opened this issue Feb 26, 2015 · 1 comment
Open

extension of activities #4

jjhesk opened this issue Feb 26, 2015 · 1 comment

Comments

@jjhesk
Copy link

jjhesk commented Feb 26, 2015

I have looked at the extension org.dmfs.android.retentionmagic.Activity with the

@Retain
 private Bundle mBundle1;

Does it means that the item Bundle has to use mBundle1 from the above layer class so for each Retain annotation has to use Bundle or some sort to put all the valuables into mBundle1 ?

@dmfs
Copy link
Owner

dmfs commented Feb 27, 2015

Not sure what exactly you mean.

@Retain
 private Bundle mBundle1;

Means that the Bundle mBundle1 is restored after a destroy/create cycle when the instance state is kept, i.e. the activity is only "temporarily" destroyed.

This is merely an example that shows that it also works with Bundles, not only with primitive types or Strings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants