I suggest you run Google Map, and turn the device, and observe what it
does. If it doesn't change, then you should go to your phone's
Settings / Sound and Display / Orientation, and check the checkbox
again (the default) and try again

You will find that your ideas about map applications and user
expectations are far off base.

I can tell you that if Google Map behaved like you say, I would be
rather pissed. I don't hold the device in some position, and then turn
my head around. If landscape mode serves better, I turn the phone --
and expect the map to stay oriented.

My recommendation is to do NOTHING. If the user wants to set a default
for his device, he can do so.

If you think your app is somehow different, you can do what I do --
offer a preference option in your application. But make the default be
ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED.

I only include the option because it solves a few problems with
interaction with other buggy apps.


On Mar 21, 9:27 am, neha <[email protected]> wrote:
> On Mar 21, 8:35 pm, TreKing <[email protected]> wrote:
>
> > On Sun, Mar 21, 2010 at 8:11 AM, neha <[email protected]> wrote:
> > > I want to write a application which should open in default orientation
> > > of the device and should not change the orientation with device
> > > rotation or slide-out keyboard opening/closing (if present).
>
> > Now I'm curious - why, exactly, do you want to lock to one orientation when
> > you apparently don't care which it is?
>
> Lets take an example of map application like Google maps. Generally a
> good map applications does not orientate with device, to allow the
> user to view map from any angle they desire.
> As this application does not want orientation to change, so we need to
> lock the orientation of the application. On any given device, this
> application should always display the same orientation irrespective of
> orientation of device at start-up. Reason for restricting the
> orientation to default orientation of device is that, it is the most
> likely position in which the user will hold the device and start the
> application. So on DROID this application would always be portrait but
> it would not be a good idea to display this application as portrait on
> tablets where device default orientation is landscape.
>
> On Mar 21, 8:35 pm, TreKing <[email protected]> wrote:
>
>
>
> > On Sun, Mar 21, 2010 at 8:11 AM, neha <[email protected]> wrote:
> > > I want to write a application which should open in default orientation
> > > of the device and should not change the orientation with device
> > > rotation or slide-out keyboard opening/closing (if present).
>
> > Now I'm curious - why, exactly, do you want to lock to one orientation when
> > you apparently don't care which it is?
>
> > --------------------------------------------------------------------------- 
> > ----------------------
> > TreKing - Chicago transit tracking app for Android-powered 
> > deviceshttp://sites.google.com/site/rezmobileapps/treking

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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to