Well, OtherApp can't directly start the MapApp service, but it can
wake up MyApp, which can then start it itself.

In most cases, the ideal approach would be for OtherApp to start an
activity in MyApp, which can then provide the user-interface to inform
the user about what they've just installed, that it's starting the
service, etc. It's good to provide some non-intrusive feedback that
the operation was successful. It certainly makes it easier to be sure
it's working!

But OtherApp could also send a broadcast instead, and that could start
the service.

I do wish apps could activate on install. At the time of download is
the point where a user is (almost) guaranteed to remember what your
app is, and why she's installed it, and to introduce her to why it's
going to make her life so much better. Or simply to make sure it's
doing the task she downloaded it for.

I don't even think it would be horrible if EVERY app launched when
downloaded. As a user, that's generally what I want to do. The only
problem is, that download takes a bit of time, so I may have wandered
on to something else sometimes.

(Of course,the flip side of this is that users will usually launch you
soon after download anyway).

On Jul 25, 11:04 pm, ADman <[email protected]> wrote:
> sorry about the delayed response. I don't own the other app, but we
> need to communicate with each other...these are the requirements I
> have been given :(
>
> Its not doing anything fancy, just collecting usage data(phone calls,
> sms, etc). In order to make the data as correct as possible, I would
> like to make sure to start collection as soon as the app is installed,
> rather than until the next reboot.
>
> I figure out one way of doing this, not sure if this is very clean
> way. Since the OtherApp will always be installed before MyApp, the
> manfiest of OtherApp is modified to listen for package_add/remove/
> modify of the MyApp, and as soon as it gets this notification, it will
> start the MyApp service. It works, but i'm not sure if this is a good
> way. Any thoughts?
>
> On Jun 24, 10:07 am, TreKing <[email protected]> wrote:
>
>
>
> > On Jun 17, 6:40 pm, ADman <[email protected]> wrote:
>
> > > In my case, i have two apps- one runs as a service and collects data, the 
> > > other
> > > displays it.
>
> > Why do you have two apps?
>
> > > Any suggestions on how to achieve this?
>
> > Ask the users to start your app immediately?
> > You can't do this programmatically, for good reasons.
> > Why is your app so dependent on starting immediately? What is it doing
> > that it can't recover from?

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