You might be able to use a Service and SensorListener for this, you
will need to work out how often you would want to run the Service to
poll the accelerometer for movement, as frequent polling will drain
the battery.

I've also read that the sensors can stop returning results when the
screen goes to sleep (as a battery saving action), you might be able
to get around this by applying a PARTIAL_WAKELOCK for each poll.

Once you've detected sensor movement, a simple "startActivity(this,
YourAppActivity.class);" should kick start your application.

On Wed, Jun 9, 2010 at 4:07 PM, Abhi <abhishek.r.sha...@gmail.com> wrote:
> Can I kick start my application automatically based on accelerometer
> data from a "no app running" state? For e.g. if the phone is subjected
> to strong vibrations, the application turns on. In other words, how
> can I read accelerometer w/o really having an application do it?
>
> Thanks,
> Abhi
>
> --
> 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

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