are you looking ways to keep orientation? (sorry i just skim thru this
thread). if so, take a look
http://groups.google.com/group/android-developers/browse_thread/thread/471e2aa7ac113683/81f85746d018f4f3

On Nov 6, 1:10 pm, songs <[EMAIL PROTECTED]> wrote:
> 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