<p dir="ltr">yes, right, the NPE is now referring to the activity that is supposed to be set by the fragment's onAttach method (and not the view I referenced before.)</p>
<p dir="ltr">leads me to believe that because onDestroy is called, the fragments are not reinitialized in time before the fragment tries to access the assets owned by the main activity (which were previously set by onAttach)</p>

<p dir="ltr">i might have another trick up my sleeve if this is indeed the problem, but any help is much appreciated!</p>
<p dir="ltr">thanks,<br>
harlo</p>
<div class="gmail_quote">On Feb 20, 2013 6:53 PM, "Dev Random" <<a href="mailto:c1.devrandom@niftybox.net">c1.devrandom@niftybox.net</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The NPE in the pastebin seems to be at a different location.<br>
<br>
Yeah, it definitely seems like the activity got destroyed once you<br>
passed control to the camera, and didn't get created before the<br>
onActivityResult.  This is probably because of different memory pressure<br>
on the devices.<br>
<br>
However, looking at the docs for onActivityResult, it should be called<br>
just before onResume, so you should have gotten onCreate first.  Strange.<br>
<br>
You can probably work around it by checking if isDestroyed() is true,<br>
and squirreling the result in a field for onResume to pick up.<br>
<br>
On 13-02-20 12:21 PM, Harlo Holmes wrote:<br>
> (Moving thread to Dev.)<br>
><br>
> Here are some logs: <a href="http://pastebin.com/FJPExaJD" target="_blank">http://pastebin.com/FJPExaJD</a><br>
><br>
> the debug comment "The View in question is android.widget.LinearLayout"<br>
> refers to where I simply test that I can "see" that variable.<br>
>  Similarly, "for some reason, options_holder is null?" is that same<br>
> test, with failed results.<br>
><br>
> ++++++++++++++++++++++++++<br>
> Research Fellow, Head of Metadata<br>
> The Guardian Project <<a href="https://guardianproject.info" target="_blank">https://guardianproject.info</a>><br>
><br>
> pgp: 0xA4469630<br>
> twitter: @harlo<br>
><br>
><br>
> On Wed, Feb 20, 2013 at 2:34 PM, Harlo Holmes<br>
> <<a href="mailto:harlo@guardianproject.info">harlo@guardianproject.info</a> <mailto:<a href="mailto:harlo@guardianproject.info">harlo@guardianproject.info</a>>> wrote:<br>
><br>
>     Miron, I think you are putting me on the right track.  The order in<br>
>     which onCreate gets called determines this.  That particular build<br>
>     must do it in a different order than what I'm expecting...<br>
><br>
>     Cannot give you logs, because the only Samsung Galaxy S3 just walked<br>
>     out the door (with Mark), but I'll post again if I'm not making headway.<br>
><br>
>     Thanks!<br>
>     Harlo<br>
><br>
>     ++++++++++++++++++++++++++<br>
>     Research Fellow, Head of Metadata<br>
>     The Guardian Project <<a href="https://guardianproject.info" target="_blank">https://guardianproject.info</a>><br>
><br>
>     pgp: 0xA4469630<br>
>     twitter: @harlo<br>
><br>
><br>
>     On Wed, Feb 20, 2013 at 1:30 PM, Miron <<a href="mailto:miron@hyper.to">miron@hyper.to</a><br>
>     <mailto:<a href="mailto:miron@hyper.to">miron@hyper.to</a>>> wrote:<br>
><br>
>         Logs or it didn't happen.<br>
><br>
>         Log in onCreate, onDestroy and onActivityResult.<br>
><br>
>         Are you sure that onActivityResult is guaranteed to happen between<br>
>         onCreate and onDestroy?  Are you sure that findViewById is returning<br>
>         non-null?<br>
><br>
>         On 13-02-20 10:19 AM, Harlo Holmes wrote:<br>
>         > Samsung-specific question. Any pointers?<br>
>         ><br>
>         ><br>
>         <a href="http://stackoverflow.com/questions/14986839/nullpointerexception-when-accessing-a-view-when-returning-from-camera-intent-onl" target="_blank">http://stackoverflow.com/questions/14986839/nullpointerexception-when-accessing-a-view-when-returning-from-camera-intent-onl</a><br>

>         ><br>
>         > thanks!<br>
>         > Harlo<br>
>         ><br>
>         ><br>
>         ><br>
>         > _______________________________________________<br>
>         > Guardian-internal mailing list<br>
>         ><br>
>         > Post: <a href="mailto:Guardian-internal@lists.mayfirst.org">Guardian-internal@lists.mayfirst.org</a><br>
>         <mailto:<a href="mailto:Guardian-internal@lists.mayfirst.org">Guardian-internal@lists.mayfirst.org</a>><br>
>         > List info:<br>
>         <a href="https://lists.mayfirst.org/mailman/listinfo/guardian-internal" target="_blank">https://lists.mayfirst.org/mailman/listinfo/guardian-internal</a><br>
>         ><br>
>         > To Unsubscribe<br>
>         >         Send email to:<br>
>          <a href="mailto:Guardian-internal-unsubscribe@lists.mayfirst.org">Guardian-internal-unsubscribe@lists.mayfirst.org</a><br>
>         <mailto:<a href="mailto:Guardian-internal-unsubscribe@lists.mayfirst.org">Guardian-internal-unsubscribe@lists.mayfirst.org</a>><br>
>         >         Or visit: %(user_optionsurl)s<br>
>         ><br>
>         > You are subscribed as: %(user_address)s<br>
>         ><br>
><br>
><br>
><br>
<br>
</blockquote></div>