You may want to try adding android:configChanges="orientation" to
AndroidManifest.xml and overriding onConfigurationChanged().  If a
configuration change is not specified in android:configChanges then
Android will take care of it for you, which means restarting your
app.  Without seeing code it is hard to say exactly what you should do
to handle this, but the information I listed should get you started.
I'd do a search regarding onConfigurationChanged() in the SDK
documentation.

I hope that gets you going in the right direction.


~clark

On Feb 10, 9:02 pm, manoj <[email protected]> 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.
>
> Can any one please help to solve this problem?
>
> I am using LinearLayout -> ImageView
>
> I am using threads to download the images.
>
> Thanks,
> Manoj.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to