Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <blockquote> <p>Can anyone tell me where am i going wrong</p> </blockquote> <p>Well, you asked...</p> <ul> <li><p>It is very unlikely that you need two services, even less likely that you need one service to communicate with another, and even less likely that you need one service to bind to another.</p></li> <li><p>It is very unlikely that you need AIDL.</p></li> <li><p>It is very unlikely that you really need a service that "is always running behind and never stops once started".</p></li> <li><p>Do not use the <code>type</code> property of an <code>Intent</code> for anything but a MIME type. Use an <code>Intent</code> extra for other data you wish to attach to an <code>Intent</code>.</p></li> <li><p>Do not compare strings with <code>=</code>, as you are in your third <code>if()</code> statement above.</p></li> <li><p>Do not paste code into a StackOverflow question with obvious typos, such as the <code>=</code> one above, or missing the <code>()</code> in calls to <code>getType()</code> as you have in the first two <code>if()</code> statements. If it will not compile, it is not a good sample to demonstrate your understanding of the situation.</p></li> </ul> <p>Your actual problem most likely comes from code not shown here. You are probably trying to call methods on your <code>Binder</code> objects before the connection has been bound (e.g., before <code>onServiceConnected()</code> is called). Or, possibly, you just have bugs in the implementations of your <code>Binder</code> methods, which you also do not show here.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload