OK for one Service to bind to another?

by goosedroid » Tue, 01 Mar 2011 03:37:07 GMT

Sponsored Links
 I have a service (ServiceA) which is used by activities by binding to

I would like to kick off one operation on ServiceA, on occasion, via
AlarmManager. I thought the following chain of components would be
appropriate: AlarmManager -> BroadcastReceiver -> ServiceB ->

In my example, Service B would bind to Service A in
ServiceB.onCreate(), call functions via the bind interface, and unBind
in ServiceB.onDestroy().

The obvious solution is just to have Service A expose this operation
via an Intent, and then have the AlarmManager (via the
BroadcastReceiver) fire off this Intent  to ServiceA. However, for
reason I won't go into, this isn't very feasible for my situation.



Other Threads

1. Where is the code of portable version of the dalvik interpreter

I'm planning to port dalvik to a new platform, and I think the
portable version of interpreter may be a good start. But I'm not very
clear of the source code structure. Could anyone help me? Thanks!
unsubscribe: android-porting+unsubscr...@googlegroups.com

2. LinearLayout cuts off parts of my views! (MeasuredHeight problem?)

Hello, I'm trying to construct a layout comprised of several
linearLayouts (parents with multiple children-some vertical and some
horizontal to format things the way I want). While this may not
actually be the way I should go about this problem (I'm going to look
into using a tableLayout soon), I'm a bit curious as to why I'm
encountering this issue either way.

I encased the entire layout in a scrollview because it will ultimately
take up a bit more screen real-estate than is available when I have
things padded correctly. When I start trying to space things out (I've
tried padding and margins), it seems like the linearlayouts still
'take up' the space even though the actual visible part of the view is
shifted downwards. I did some reading about how Android draws views,
and this seems to me to be a discrepancy between my Height and my
MeasuredHeight on these layouts.

What is the correct approach to this problem? I'll probably try other
solutions regardless, but I am curious as to how spacing can be done
in LinearLayout without ending up with layouts covering one another.
Thanks in advance for any suggestions!

3. How to use jdb? "Deferring breakpoint ... It will be set after the class is loaded."

4. ATITC graphics format

5. Telling another activity which item was clicked.

6. How to simulate a TrackBall Event in emulator?

7. Instrumentation on the virtual keyboard.