manoj wrote:
> Hi friends,
> 
> I have written a small example which displays the photos from the
> server.
> 
> Its working fine when the device is in one of the mode (landscape of
> potrait ).
> 
> But if I switch to landscape to potrait or potrait  to landscape while
> downloading the photos from the server,
> 
> I am getting NullPointerException, showing with
> androidRunTimeException.

Without the source code for the area where the exception is occurring,
and knowing which line is the one raising the exception, it is rather
difficult to give you a precise solution.

Bear in mind that, on a rotation like this, by default your existing
activity is destroyed and a new one created.

Here is a series of blog posts on handling rotation events that may help
you understand what is going on:

http://androidguys.com/?s=rotational+forces

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Published!

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

Reply via email to