Friday, May 28, 2010

Let's make a call


Now we know when we're close to our friends, what are we likely to want to do when we're close? Drop in! But we're polite so we'll call them first. Let's change our list item click function to call the friend we've clicked. We can do this by firing a DIAL_ACTION intent.
    Intent i = new Intent(); i.setAction(DIAL_ACTION); i.setData(new ContentURI(numbers.get(position))); startActivity(i);
The phone dialer has registered an IntentReceiver filtered onDIAL_ACTION so it will react to this.

1 comment:

  1. hello vishal....
    im new in android programming...
    plz tell me what is the logic behind the "WhatsApp"???
    i want to do a chat application like WhatsApp...
    plz tell me where i get the sources for that???
    if u have any source code for that plz share ...
    plz reply...
    em waiting for ur reply...!!!

    ReplyDelete