Monday, February 28, 2011

[android-developers] Re: User interaction with Background applications

Thanks Justin,
This is almost what I want to do except that my application is
actively doing something in the background (mainly collecting position
data).
The user, by way of long pressing one of the buttons, would tell the
background application to sent the collected data to a server.
Maybe I could have two separate apps on working as a service which is
doing the background work and one that starts as a result of the
user's long button press and tells the service to send it's data.

On Feb 24, 12:22 am, Justin Anderson <magouyaw...@gmail.com> wrote:
> Why does it need to stay running in the background?  What is it supposed to
> do besides listen for key presses?  If that is all it is doing you could
> write a receiver that will launch your app based on that.
>
> Quick Launch is an app in the Android Market that I wrote that essentially
> does just that.  It allows you to launch any app on your phone from the
> following methods:
> - Long press search button
> - Long press camera button
> - Double press home button
> - Status bar notification
>
> But the key thing to note here is that until it receives that event it is
> not doing anything in the background...
>
> On Wed, Feb 23, 2011 at 4:02 PM, TreKing <treking...@gmail.com> wrote:
> > On Wed, Feb 23, 2011 at 4:58 PM, Greg Donald <gdon...@gmail.com> wrote:
>
> >> Even if you're developing an everlasting app?
>
> > There's no such thing.
>
> > -------------------------------------------------------------------------------------------------
> > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> > transit tracking app for Android-powered devices
>
> >  --
> > 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+unsubscribe@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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment