Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Shrini,</p> <p>As dds stated, you will definitely need at least two <code>BroadcastReceiver</code>s. You will need one <code>BroadcastReceiver</code> for each incoming call and message that you want to respond to, and one for each outgoing one as well. A <code>BroadcastReceiver</code> may only capture one <code>BroadcastMessage</code> at a time. You will specifically need to capture the <code>Intent</code>s sent by the operating system and your <code>Application</code> will need to have the appropriate <code>Permission</code>s for each. That's just setting up the listeners.</p> <p>Once the <code>BroadcastReceiver</code> has been called you will need to start an <code>Activity</code> for you UI and possibly a <code>Service</code> to do any other processing. In the cases of single-point events (like messages) an <code>Activity</code> is often enough. Calls, however, depend largely upon what you are doing. Since a call has two distinct events, in order to tie them together, many people prefer to use a <code>Service</code> just to hold and watch the call. </p> <p>In order to best help you, I must inform you that your question is remarkably vague as to what you need to do. Does your custom UI display information about the calls? Does it allow the User to respond or change that information? What kind of messages is your app responding to? SMS? Email? IMs? These are important because each one has different considerations.</p> <p>Given that the limitation of information provided here, I would recommend researching your topic by downloading and viewing some of the open source projects stored on Google. Here is a <a href="http://code.google.com/hosting/search?q=label%3aAndroid" rel="nofollow">Here</a>.</p> <p>Fuzzical Logic</p>
 

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