-
Notifications
You must be signed in to change notification settings - Fork 102
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
Force close (NullPointerException) when changing orientation #4
Comments
Ok, I think this might be fixed. Could you pull and double check? |
I did a pull and cleaned my projects and tried again. Still got the same result. Once I was 3 levels deep, changing the orientation still causes a force close. Thank you very much for getting back to me so quickly!!! Below you will find the relevant portions of the log: 02-26 13:52:41.941: D/HostsFragment(2021): Fragment loaded and now setting up UI. |
This could be related to how AndroidAnnotations handles portioning work between the foreground and the background. It may be trying to use a widget before the activity/fragment is fully resumed/created. |
Cool, I'll check this out this weekend. I'm a little bit swamped until then :P |
No worries... Thanks for all of the help! On Wed, Feb 27, 2013 at 10:56 PM, cricklet [email protected] wrote:
|
Hey! Sorry this took forever for me to get around to this. With the most recent version of the library, I tried importing your project. I added a non-sense key in the first screen. Then, from the side-menu, I clicked Domains (loading up an initial content fragment), then the '+' button (which adds a new fragment on top of it). Seems to work fine to me. |
I'll give it a shot as soon as I can. Thanks! Deven
|
When all that is being displayed fits on a single screen (in my case the menu and a first-level listview), changes in orientation have no problems. I get a NPE and forced close when I add a subsequent fragment and it would cause the panels to have more than a single screen's worth of fragments. The NPE is thrown when the "off screen" fragment tries to do anything on the UI thread.
This problem occurs on both a phone (Galaxy Nexus 4.1.2) and a tablet (HP TouchPad 4.0.4)
App code can be found at: https://github.com/dnsdotcom/DNSDroid
The text was updated successfully, but these errors were encountered: