Those links were interesting, but again had to do with dealing with
orientation in a running activity.

The suggestions for detecting and setting the orientation were also
for a running activity.

What I'm looking for is for something that'll trigger the start of an
activity based on an orientation change.  I need to be able to handle
this, user turns phone on, user flips the screen out, the flip is
detected and Service A is automatically started without the user
having to click anything, user flips the screen back, the flips is
detected and Service A is automatically run again.

On Nov 6, 7:58 am, Michael <[EMAIL PROTECTED]> wrote:
> Or, just somewhere in your onCreate() for your activity, you can find
> out the current orientation (see
> getResources().getConfiguration().orientation ), and pick your Layout
> from there.
>
> You should also set android:screenOrientation="sensor" in your
> AndroidManifest.xml, if you want to be notified of sensor-based
> orientation changes, see onConfigurationChanged() in Activity for how
> to handle this event.
>
> - michael
--~--~---------~--~----~------------~-------~--~----~
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