Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
RossM
on Jan 17, 2013
|
parent
|
context
|
favorite
| on:
Show HN: My first Android app - Hacker News reader
Rotation issues are usually to do with the activity being recreated (i.e. onCreate is called again) as the screen size has changed. There is a config to disable this however:
http://developer.android.com/guide/topics/resources/runtime-...
yock
on Jan 17, 2013
|
next
[–]
It's usually better to implement onSaveInstanceState and onRestoreInstanceState.
http://stackoverflow.com/questions/3542333/how-to-prevent-cu...
veeti
on Jan 17, 2013
|
prev
[–]
If you mean configChanges, I would strongly recommend against it because it is a bad practice and it probably wouldn't work in this case anyway (no activity recreation = no multi-panel layout on a 7-inch landscape screen).
RossM
on Jan 18, 2013
|
parent
[–]
Ah, sorry I haven't done Android dev in a while; would a better way be yock's onSaveInstanceState/onRestoreInstanceState then?
veeti
on Jan 18, 2013
|
root
|
parent
[–]
Yes, something like that in combination with carrying over the existing list data with an retained fragment.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: