Hi All,

I have a question on Gallery Intent. After taking a pic, I am calling
the*Gallery Intent
* which shows all the pics. I am able to select the pic from the
Galleryview and taking it to a next activity everything works fine.    But
the real problem is, if i change the Gallery Intent to *Landscape Mode*, *and
try selecting an image, it is getting forceclose.*

is there any way to restrict the Gallery Intent to portrait mode only ?

Note: I had tried the below solutions, but none of them are working.
 1. I had already tried with setting Activity i portrait mode in
android.manifest file.
 2. I had also tried
with setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); in
my activity ,but it is also failing.
3.Tried writing onConfigurationChanged(Configuration newConfig) Method, but
tat is also failing.
4. I tried Calling
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
Method in onActivtyResult, but fails.

Need Help on this.

Regards,
Mukesh

-- 
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