Issue Solved by myself..
On Wed, Dec 7, 2011 at 4:56 PM, Mukesh Srivastav <[email protected]>wrote: > 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 > -- Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. -- 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

