Local Service - How to actually invoke methods

by Paul Townsend » Tue, 10 Nov 2009 02:08:14 GMT


Sponsored Links
 Hi I have looked at the Api's demo for local service but it doesn't
show how to invoke methods on the service or activity. I got a service
that will start and stop a timer but it also laps so I want to send
the lap times back to the activity so it can be displayed in a custom
view graph. This is just a small part of the program I to write hence
the reason its in a service atm, I just want to understand how to call
methods from service to activity and vice versa.

--



Other Threads

1. Location of launcher icons on Android home screen

Is there any way to get the location or (x,y) coordinates of the
launcher icons on home screen.
I want my android application to get the launcher icons location or
(x,y) coordinates at runtime.
kindly suggest some ideas.

-- 

2. Not calling OnStop when an incoming call is received



I would think this is a good thing, at least from the user's standpoint.


Around what?

Your activity is going to be stopped, because it is losing the
foreground. That will be true if a call comes in, or the user presses
HOME, or the user presses BACK, or the user slides down the notification
drawer, or...


While this should work, I seriously question whether it is the right
thing by users. What you are saying is that you want total control over
their ringer volume for an indeterminate period of time. After all, if
they press HOME, they may not come back to your activity for *weeks*,
yet it might hang out in memory that long, if the user has a device with
a lot of RAM and doesn't use a lot of apps.

What gives you the right to say their phone shouldn't ring for weeks?

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_Beginning Android 2_ from Apress Now Available!

-- 

3. How to query information of my APP?

4. can change the search/query key behavior?

5. long HOME KEY press in android 1.6

6. Boot Animation for Samsung Galaxy

7. OOT: Nomor telpon om Hoesin