<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-1193295309527347789.post5514572995741022221..comments</id><updated>2012-01-17T09:18:56.056+08:00</updated><category term='Screen Brightness'/><category term='Activity'/><category term='AbsoluteLayout'/><category term='Google Maps'/><category term='Picture'/><category term='reflection'/><category term='XmlPullParser'/><category term='Notification'/><category term='debugging'/><category term='RadioButton'/><category term='ListActivity'/><category term='MediaStore'/><category term='Google TV'/><category term='ACCESS_NETWORK_STATE'/><category term='Custom Adapter'/><category term='AppEngine'/><category term='Bitmap'/><category term='My Battery Status'/><category term='RadioGroup'/><category term='Announcement'/><category term='SetContentView'/><category term='Programming'/><category term='Speak Up'/><category term='BroadcastReceiver'/><category term='Environment'/><category term='Internal class'/><category term='VIBRATE'/><category term='Ubuntu 9.04'/><category term='WebView'/><category term='AlertDialog'/><category term='Default Fonts'/><category term='Drawing'/><category term='Mobile App Contests'/><category term='GestureDetector'/><category term='Shoot and Learn'/><category term='ACCESS_FINE_LOCATION'/><category term='Android'/><category term='Design Patterns'/><category term='Handler'/><category term='InputFilter'/><category term='Gallery'/><category term='SpeakUp'/><category term='Adobe Air'/><category term='Android Tool'/><category term='Intent'/><category term='TableLayout'/><category term='MediaPlayer'/><category term='TextToSpeech'/><category term='GridView'/><category term='HttpPost'/><category term='RelativeLayout'/><category term='Localization'/><category term='Log Collector'/><category term='Contacts'/><category term='Restart App'/><category term='Google'/><category term='Options Menu'/><category term='Android Video'/><category term='sdcard'/><category term='Android Future'/><category term='Canvas'/><category term='Content Provider'/><category term='App Inventor'/><category term='View Group'/><category term='View'/><category term='LinearLayout'/><category term='IntelliJ'/><category term='Layout'/><category term='RECEIVE_BOOT_COMPLETED'/><category term='StorageState'/><category term='mac'/><category term='Wifi'/><category term='Audio files'/><category term='Hardware'/><category term='EditText'/><category term='ACCESS_COARSE_LOCATION'/><category term='android x86'/><category term='Battery'/><category term='Contact'/><category term='ACCESS_WIFI_STATE'/><title type='text'>Comments on Tutorial For Android: Get Phone State When Someone is calling using Broa...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.tutorialforandroid.com/feeds/5514572995741022221/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default'/><link rel='alternate' type='text/html' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html'/><author><name>Almond Joseph Mendoza</name><uri>https://profiles.google.com/101518860229446899809</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-vu8S-gipxJo/AAAAAAAAAAI/AAAAAAABh4k/wEVj5tsyCvc/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>25</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1193295309527347789.post-2848367331187414291</id><published>2012-01-16T23:43:17.867+08:00</published><updated>2012-01-16T23:43:17.867+08:00</updated><title type='text'>How to detect phone has been connected or not?</title><content type='html'>How to detect phone has been connected or not?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/2848367331187414291'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/2848367331187414291'/><link rel='alternate' type='text/html' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html?showComment=1326728597867#c2848367331187414291' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html' ref='tag:blogger.com,1999:blog-1193295309527347789.post-5514572995741022221' source='http://www.blogger.com/feeds/1193295309527347789/posts/default/5514572995741022221' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-349620613'/></entry><entry><id>tag:blogger.com,1999:blog-1193295309527347789.post-1607721134003580560</id><published>2012-01-05T14:42:20.598+08:00</published><updated>2012-01-05T14:42:20.598+08:00</updated><title type='text'>Hi Almond,
         Thank you very much for postin...</title><content type='html'>Hi Almond,&lt;br /&gt;         Thank you very much for posting code.I am new to the android . I didn&amp;#39;t find the source code Because when i click the below links,  That links showing different path can any one help me .</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/1607721134003580560'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/1607721134003580560'/><link rel='alternate' type='text/html' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html?showComment=1325745740598#c1607721134003580560' title=''/><author><name>rohit</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html' ref='tag:blogger.com,1999:blog-1193295309527347789.post-5514572995741022221' source='http://www.blogger.com/feeds/1193295309527347789/posts/default/5514572995741022221' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-296448106'/></entry><entry><id>tag:blogger.com,1999:blog-1193295309527347789.post-2262511999092526363</id><published>2011-12-28T22:10:59.944+08:00</published><updated>2011-12-28T22:10:59.944+08:00</updated><title type='text'>Thnx for your tutorial, I am new in the Android an...</title><content type='html'>Thnx for your tutorial, I am new in the Android and i want to change the default call incoming screen.So i launch an activity from the your broadcast receiver in the ringing mode but it is giving some problem.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/2262511999092526363'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/2262511999092526363'/><link rel='alternate' type='text/html' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html?showComment=1325081459944#c2262511999092526363' title=''/><author><name>Deepak</name><uri>http://www.blogger.com/profile/04220998207552651054</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html' ref='tag:blogger.com,1999:blog-1193295309527347789.post-5514572995741022221' source='http://www.blogger.com/feeds/1193295309527347789/posts/default/5514572995741022221' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-325059396'/></entry><entry><id>tag:blogger.com,1999:blog-1193295309527347789.post-8574747063112854648</id><published>2011-11-27T19:28:15.367+08:00</published><updated>2011-11-27T19:28:15.367+08:00</updated><title type='text'>Simple and very useful to understand.... Thanks.
K...</title><content type='html'>Simple and very useful to understand.... Thanks.&lt;br /&gt;Kumar</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/8574747063112854648'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/8574747063112854648'/><link rel='alternate' type='text/html' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html?showComment=1322393295367#c8574747063112854648' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html' ref='tag:blogger.com,1999:blog-1193295309527347789.post-5514572995741022221' source='http://www.blogger.com/feeds/1193295309527347789/posts/default/5514572995741022221' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-982306094'/></entry><entry><id>tag:blogger.com,1999:blog-1193295309527347789.post-5218237191863522036</id><published>2011-10-22T07:32:20.908+08:00</published><updated>2011-10-22T07:32:20.908+08:00</updated><title type='text'>Thank you for posting this valuable code.I am thin...</title><content type='html'>Thank you for posting this valuable code.I am thinking about an android application which play some audio when a user put his/her call on hold.Any idea how to get &amp;quot;HOLD&amp;quot; state so that we can put our code during that state and play audio.Thanks in advance.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/5218237191863522036'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/5218237191863522036'/><link rel='alternate' type='text/html' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html?showComment=1319239940908#c5218237191863522036' title=''/><author><name>Imran Khan</name><uri>http://www.blogger.com/profile/05640119652780931743</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html' ref='tag:blogger.com,1999:blog-1193295309527347789.post-5514572995741022221' source='http://www.blogger.com/feeds/1193295309527347789/posts/default/5514572995741022221' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-525491382'/></entry><entry><id>tag:blogger.com,1999:blog-1193295309527347789.post-1278262130940097015</id><published>2011-08-16T16:57:47.813+08:00</published><updated>2011-08-16T16:57:47.813+08:00</updated><title type='text'>Could you help me, please!

How to show toast from...</title><content type='html'>Could you help me, please!&lt;br /&gt;&lt;br /&gt;How to show toast from listener in this example?&lt;br /&gt;&lt;br /&gt;Forexample:&lt;br /&gt; protected Context context;&lt;br /&gt; &lt;br /&gt;   public void onCallStateChanged(int state,String incomingNumber){&lt;br /&gt; &lt;br /&gt;    &lt;br /&gt;    &lt;br /&gt;   switch(state){&lt;br /&gt;     case TelephonyManager.CALL_STATE_IDLE:&lt;br /&gt;       Log.d(&amp;quot;DEBUG&amp;quot;, &amp;quot;IDLE&amp;quot;);&lt;br /&gt;       Toast.makeText(context, &amp;quot;IDLE&amp;quot;, Toast.LENGTH_LONG).show();&lt;br /&gt;       &lt;br /&gt;     break;&lt;br /&gt;&lt;br /&gt;Does&amp;#39;not work.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/1278262130940097015'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/1278262130940097015'/><link rel='alternate' type='text/html' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html?showComment=1313485067813#c1278262130940097015' title=''/><author><name>VVS</name><uri>http://www.blogger.com/profile/17201200385664900382</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html' ref='tag:blogger.com,1999:blog-1193295309527347789.post-5514572995741022221' source='http://www.blogger.com/feeds/1193295309527347789/posts/default/5514572995741022221' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1365137396'/></entry><entry><id>tag:blogger.com,1999:blog-1193295309527347789.post-3288610189292954908</id><published>2011-08-09T17:49:32.623+08:00</published><updated>2011-08-09T17:49:32.623+08:00</updated><title type='text'>hi I have a question related to Phone call state,H...</title><content type='html'>hi I have a question related to Phone call state,How i can detect pro-grammatically if a phone accept(answer) or reject a call ?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/3288610189292954908'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/3288610189292954908'/><link rel='alternate' type='text/html' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html?showComment=1312883372623#c3288610189292954908' title=''/><author><name>aftab</name><uri>http://www.blogger.com/profile/13693195390567221159</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/-GTcYCf4UvKQ/TZbb0LZHBBI/AAAAAAAAAN8/2M-6wS35hEQ/s220/Aftab.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html' ref='tag:blogger.com,1999:blog-1193295309527347789.post-5514572995741022221' source='http://www.blogger.com/feeds/1193295309527347789/posts/default/5514572995741022221' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-272794176'/></entry><entry><id>tag:blogger.com,1999:blog-1193295309527347789.post-7612565287069465530</id><published>2011-07-24T16:39:56.554+08:00</published><updated>2011-07-24T16:39:56.554+08:00</updated><title type='text'>Thanks man...Its really nice especially for a begi...</title><content type='html'>Thanks man...Its really nice especially for a beginner like me !!!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/7612565287069465530'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/7612565287069465530'/><link rel='alternate' type='text/html' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html?showComment=1311496796554#c7612565287069465530' title=''/><author><name>Sudeep</name><uri>http://www.blogger.com/profile/09708683551515494631</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_87KgbVRaS_c/S-r7OBpm3GI/AAAAAAAAANU/u6NOew4KgYo/S220/DSC01787.JPG'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html' ref='tag:blogger.com,1999:blog-1193295309527347789.post-5514572995741022221' source='http://www.blogger.com/feeds/1193295309527347789/posts/default/5514572995741022221' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-886764193'/></entry><entry><id>tag:blogger.com,1999:blog-1193295309527347789.post-4542068967965176674</id><published>2011-07-19T21:22:37.288+08:00</published><updated>2011-07-19T21:22:37.288+08:00</updated><title type='text'>Your example is not right - you are mixing up the ...</title><content type='html'>Your example is not right - you are mixing up the BroadcastReceiver and the PhoneStateListener. &lt;br /&gt;&lt;br /&gt;You can declare a PhoneStateListener in a normal activity (or a service) and then override the onCallStateChanged method. You then process changes in that method - no need for a BroadcastReceiver. &lt;br /&gt;&lt;br /&gt;Or you can use a BroadcastReceiver to listen for changes and process them yourself in the receiver.&lt;br /&gt;&lt;br /&gt;You shouldn&amp;#39;t use both of these methods together.&lt;br /&gt;&lt;br /&gt;You are adding a new listener to the telephony service every time the phone state changes. That&amp;#39;s why Michael is getting multiple logs of &amp;quot;Ringing&amp;quot; - you must only add that listener once (in an onCreate method)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/4542068967965176674'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/4542068967965176674'/><link rel='alternate' type='text/html' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html?showComment=1311081757288#c4542068967965176674' title=''/><author><name>JeffG</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html' ref='tag:blogger.com,1999:blog-1193295309527347789.post-5514572995741022221' source='http://www.blogger.com/feeds/1193295309527347789/posts/default/5514572995741022221' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-781118827'/></entry><entry><id>tag:blogger.com,1999:blog-1193295309527347789.post-131518463354284783</id><published>2011-04-02T22:40:29.003+08:00</published><updated>2011-04-02T22:40:29.003+08:00</updated><title type='text'>The most difficult thing in my opinion the most im...</title><content type='html'>The most difficult thing in my opinion the most important and also for use in smartphones android is to create a shortcut, and this tutorial is fitted with my expectations.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/131518463354284783'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/131518463354284783'/><link rel='alternate' type='text/html' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html?showComment=1301755229003#c131518463354284783' title=''/><author><name>Android Phone Tips</name><uri>http://androidphone-tips.blogspot.com/</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html' ref='tag:blogger.com,1999:blog-1193295309527347789.post-5514572995741022221' source='http://www.blogger.com/feeds/1193295309527347789/posts/default/5514572995741022221' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-137974772'/></entry><entry><id>tag:blogger.com,1999:blog-1193295309527347789.post-3848359240743678307</id><published>2011-04-02T15:47:59.072+08:00</published><updated>2011-04-02T15:47:59.072+08:00</updated><title type='text'>Hello,this tutorial was good.I am doing an android...</title><content type='html'>Hello,this tutorial was good.I am doing an android app for my mini-project.I want to give some statistics about call.This activity should come up when a phone call is made or phone call is ended.Is this possible..?If so,can u briefly explain??I would be thankful to you if you help me out.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/3848359240743678307'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/3848359240743678307'/><link rel='alternate' type='text/html' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html?showComment=1301730479072#c3848359240743678307' title=''/><author><name>sudeep</name><uri>http://www.blogger.com/profile/06308332200745784516</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_sW12Lzm9LH4/S5dlPmnn16I/AAAAAAAAA0k/vfODtypnYrc/S220/P1003070818010.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html' ref='tag:blogger.com,1999:blog-1193295309527347789.post-5514572995741022221' source='http://www.blogger.com/feeds/1193295309527347789/posts/default/5514572995741022221' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-107383173'/></entry><entry><id>tag:blogger.com,1999:blog-1193295309527347789.post-3368444877937463113</id><published>2011-01-19T03:50:23.433+08:00</published><updated>2011-01-19T03:50:23.433+08:00</updated><title type='text'>Thanks for this post. Even with this little mixtur...</title><content type='html'>Thanks for this post. Even with this little mixture between Broadcast Receiver and Service it is useful. I also think it is ok to post something and get some feedback. &lt;br /&gt;&lt;br /&gt;Perhaps you should adjust your example to use the intent data?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/3368444877937463113'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/3368444877937463113'/><link rel='alternate' type='text/html' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html?showComment=1295380223433#c3368444877937463113' title=''/><author><name>Lars Vogel</name><uri>http://www.blogger.com/profile/15780848976283335301</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://2.bp.blogspot.com/_-xpP7QC-BYo/S2u2r3RZV1I/AAAAAAAAABo/5kfURm9njok/S220/LarsVogelArticle3.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html' ref='tag:blogger.com,1999:blog-1193295309527347789.post-5514572995741022221' source='http://www.blogger.com/feeds/1193295309527347789/posts/default/5514572995741022221' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1713970841'/></entry><entry><id>tag:blogger.com,1999:blog-1193295309527347789.post-8502328991997157321</id><published>2011-01-13T21:16:14.849+08:00</published><updated>2011-01-13T21:16:14.849+08:00</updated><title type='text'>HI anonymous, thank you for your comment, when i w...</title><content type='html'>HI anonymous, thank you for your comment, when i was doing this i was implementing BroadcastReceiver via all calls and not by activity based, and i was still new to Android at that time and was willing to share what i have learned, like most tutorial online, if you want to get deep into what you want to know its not really ideal to base yourself on one post (this like) but do your own research. Thanks anyway</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/8502328991997157321'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/8502328991997157321'/><link rel='alternate' type='text/html' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html?showComment=1294924574849#c8502328991997157321' title=''/><author><name>Almond</name><uri>http://www.blogger.com/profile/02015638320884611551</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='00747598270679181512'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html' ref='tag:blogger.com,1999:blog-1193295309527347789.post-5514572995741022221' source='http://www.blogger.com/feeds/1193295309527347789/posts/default/5514572995741022221' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1560579214'/></entry><entry><id>tag:blogger.com,1999:blog-1193295309527347789.post-2641598515518925234</id><published>2011-01-13T10:09:59.117+08:00</published><updated>2011-01-13T10:09:59.117+08:00</updated><title type='text'>I am sorry but you are confusing everyone here. Yo...</title><content type='html'>I am sorry but you are confusing everyone here. You are mixing up two different ways of handling the PhoneStateChanges. If you use the BroadcastReceiver way, in the Intent is the new state information you need.&lt;br /&gt;If you use the Listener you bind it to a running context. (Activity or Service).&lt;br /&gt;The decision to use one or the other depends on what your app does. And how it does it.&lt;br /&gt;If you are coding a game and want to capture a ringing state you use a listener bound to your Activity.&lt;br /&gt;If you are trying to capture every call you use a BroadcastReceiver. Please do some research before posting misleading code.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/2641598515518925234'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/2641598515518925234'/><link rel='alternate' type='text/html' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html?showComment=1294884599117#c2641598515518925234' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html' ref='tag:blogger.com,1999:blog-1193295309527347789.post-5514572995741022221' source='http://www.blogger.com/feeds/1193295309527347789/posts/default/5514572995741022221' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-280637167'/></entry><entry><id>tag:blogger.com,1999:blog-1193295309527347789.post-3824389656435430652</id><published>2010-08-18T22:51:40.650+08:00</published><updated>2010-08-18T22:51:40.650+08:00</updated><title type='text'>@anoop you listen to a broadcast (event) like some...</title><content type='html'>@anoop you listen to a broadcast (event) like someone is calling you or something, and then you could bind that receiver code into either an activity or a service. Its event base, therefore someone has to broadcast something (you can have your own event) before you could do something :)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/3824389656435430652'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/3824389656435430652'/><link rel='alternate' type='text/html' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html?showComment=1282143100650#c3824389656435430652' title=''/><author><name>Almond</name><uri>http://www.blogger.com/profile/02015638320884611551</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='00747598270679181512'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html' ref='tag:blogger.com,1999:blog-1193295309527347789.post-5514572995741022221' source='http://www.blogger.com/feeds/1193295309527347789/posts/default/5514572995741022221' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1560579214'/></entry><entry><id>tag:blogger.com,1999:blog-1193295309527347789.post-5539627541272972721</id><published>2010-08-18T18:12:56.650+08:00</published><updated>2010-08-18T18:12:56.650+08:00</updated><title type='text'>Why are u using broadcast reciever ,  y not a serv...</title><content type='html'>Why are u using broadcast reciever ,  y not a service ... ??</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/5539627541272972721'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/5539627541272972721'/><link rel='alternate' type='text/html' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html?showComment=1282126376650#c5539627541272972721' title=''/><author><name>Anoop</name><uri>http://www.blogger.com/profile/00213250657003363605</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html' ref='tag:blogger.com,1999:blog-1193295309527347789.post-5514572995741022221' source='http://www.blogger.com/feeds/1193295309527347789/posts/default/5514572995741022221' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1394944963'/></entry><entry><id>tag:blogger.com,1999:blog-1193295309527347789.post-7435957719162308684</id><published>2010-06-05T10:53:28.472+08:00</published><updated>2010-06-05T10:53:28.472+08:00</updated><title type='text'>How do you make a user-type broadcast instead of a...</title><content type='html'>How do you make a user-type broadcast instead of a PHONE one.&lt;br /&gt;&lt;br /&gt;I have a status-bar-app trying to talk to a widget.&lt;br /&gt;&lt;br /&gt;Thanks Almond!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/7435957719162308684'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/7435957719162308684'/><link rel='alternate' type='text/html' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html?showComment=1275706408472#c7435957719162308684' title=''/><author><name>carterson2</name><uri>http://www.blogger.com/profile/03909246067560767537</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_l-H-ROKd9lU/TAm8Gw3GzLI/AAAAAAAAADQ/YQKQip9w-ts/S220/jims_face.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html' ref='tag:blogger.com,1999:blog-1193295309527347789.post-5514572995741022221' source='http://www.blogger.com/feeds/1193295309527347789/posts/default/5514572995741022221' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1979743644'/></entry><entry><id>tag:blogger.com,1999:blog-1193295309527347789.post-2582551106224342211</id><published>2010-05-19T14:01:46.422+08:00</published><updated>2010-05-19T14:01:46.422+08:00</updated><title type='text'>Hi i m new n i want to know can i change state of ...</title><content type='html'>Hi i m new n i want to know can i change state of phone....means i want to create a stoplist and if any call comes from stop list i want stop dat call&lt;br /&gt;plz explain me or give some code i m new</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/2582551106224342211'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/2582551106224342211'/><link rel='alternate' type='text/html' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html?showComment=1274248906422#c2582551106224342211' title=''/><author><name>Bh@r@t</name><uri>http://www.blogger.com/profile/08725914568631334450</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html' ref='tag:blogger.com,1999:blog-1193295309527347789.post-5514572995741022221' source='http://www.blogger.com/feeds/1193295309527347789/posts/default/5514572995741022221' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-373059551'/></entry><entry><id>tag:blogger.com,1999:blog-1193295309527347789.post-1813782081712578583</id><published>2010-05-10T17:08:01.076+08:00</published><updated>2010-05-10T17:08:01.076+08:00</updated><title type='text'>To Fr and Michael: This example has a flaw in that...</title><content type='html'>To Fr and Michael: This example has a flaw in that it adds a listener for each broadcast intent. This is wrong.&lt;br /&gt;&lt;br /&gt;You should register the listener in some context that fits (such as an activity or service) and keep the reference. If you want to use the above mentioned method (which you shouldn&amp;#39;t), you must keep a reference to a listener and only add a reference if one isn&amp;#39;t available.&lt;br /&gt;&lt;br /&gt;Some intents, such as this listener, must be executed in code for the reason that you don&amp;#39;t want 20 applications starting for no reason each time a call is received.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/1813782081712578583'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/1813782081712578583'/><link rel='alternate' type='text/html' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html?showComment=1273482481076#c1813782081712578583' title=''/><author><name>Sebastian</name><uri>http://www.blogger.com/profile/04729784458838067801</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html' ref='tag:blogger.com,1999:blog-1193295309527347789.post-5514572995741022221' source='http://www.blogger.com/feeds/1193295309527347789/posts/default/5514572995741022221' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-731441894'/></entry><entry><id>tag:blogger.com,1999:blog-1193295309527347789.post-5395532109944855072</id><published>2010-03-23T04:34:37.000+08:00</published><updated>2010-03-23T04:34:37.000+08:00</updated><title type='text'>Hi Almond,&lt;br&gt;&lt;br&gt;Thy for sharing your first steps...</title><content type='html'>Hi Almond,&lt;br&gt;&lt;br&gt;Thy for sharing your first steps in Android. I&amp;#39;m also a new developer and I have some questions after running your program.&lt;br&gt;&lt;br&gt;Is it normal that the first time I run the program in the emulator, I have only one &amp;#39;ringing&amp;#39; and the second time that i have multiples &amp;quot;ringing&amp;quot; in my logcat.&lt;br&gt;Are you sure we have to re-create the PhoneStateListener each time we receive an intent ? Or maybe it&amp;#39;s only the emulator which is crappy ?&lt;br&gt;&lt;br&gt;What I would like to know is : Is there only one ringing or multiples ? If i read the documentation, I&amp;#39;d say only one though but you know ... i&amp;#39;m not so sure : http://developer.android.com/intl/fr/reference/android/telephony/TelephonyManager.html#CALL_STATE_RINGING&lt;br&gt;&lt;br&gt;Thanks for your awesome website and for the time you will spent for answering.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/5395532109944855072'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/5395532109944855072'/><link rel='alternate' type='text/html' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html?showComment=1269290077000#c5395532109944855072' title=''/><author><name>Fr</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html' ref='tag:blogger.com,1999:blog-1193295309527347789.post-5514572995741022221' source='http://www.blogger.com/feeds/1193295309527347789/posts/default/5514572995741022221' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-449860055'/></entry><entry><id>tag:blogger.com,1999:blog-1193295309527347789.post-2359603062608614722</id><published>2010-03-13T04:45:23.000+08:00</published><updated>2010-03-13T04:45:23.000+08:00</updated><title type='text'>adb -d logcat</title><content type='html'>adb -d logcat</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/2359603062608614722'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/2359603062608614722'/><link rel='alternate' type='text/html' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html?showComment=1268426723000#c2359603062608614722' title=''/><author><name>admin</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html' ref='tag:blogger.com,1999:blog-1193295309527347789.post-5514572995741022221' source='http://www.blogger.com/feeds/1193295309527347789/posts/default/5514572995741022221' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-449860055'/></entry><entry><id>tag:blogger.com,1999:blog-1193295309527347789.post-8436278663631477275</id><published>2010-03-13T04:40:36.000+08:00</published><updated>2010-03-13T04:40:36.000+08:00</updated><title type='text'>How you used adb logcat on real device. Can you pl...</title><content type='html'>How you used adb logcat on real device. Can you please explain?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/8436278663631477275'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/8436278663631477275'/><link rel='alternate' type='text/html' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html?showComment=1268426436000#c8436278663631477275' title=''/><author><name>androidev</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html' ref='tag:blogger.com,1999:blog-1193295309527347789.post-5514572995741022221' source='http://www.blogger.com/feeds/1193295309527347789/posts/default/5514572995741022221' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-449860055'/></entry><entry><id>tag:blogger.com,1999:blog-1193295309527347789.post-1717224453359386196</id><published>2009-10-24T13:55:14.000+08:00</published><updated>2009-10-24T13:55:14.000+08:00</updated><title type='text'>I use adb logcat on real device&lt;br&gt;I call android ...</title><content type='html'>I use adb logcat on real device&lt;br&gt;I call android phone, the first time ringging, there one &amp;quot;RINGING&amp;quot; log messages&lt;br&gt;I hang up and call android again, this time there 2 &amp;quot;RINGING&amp;quot; log messages together&lt;br&gt;Everytime I call again, more RINGING messages appear. &lt;br&gt;&lt;br&gt;It seems like a lot of instance have been created but didn&amp;#39;t destroy.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/1717224453359386196'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/1717224453359386196'/><link rel='alternate' type='text/html' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html?showComment=1256363714000#c1717224453359386196' title=''/><author><name>Michael</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html' ref='tag:blogger.com,1999:blog-1193295309527347789.post-5514572995741022221' source='http://www.blogger.com/feeds/1193295309527347789/posts/default/5514572995741022221' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-449860055'/></entry><entry><id>tag:blogger.com,1999:blog-1193295309527347789.post-7518421098506993023</id><published>2009-04-11T03:20:11.000+08:00</published><updated>2009-04-11T03:20:11.000+08:00</updated><title type='text'>To explain further, from the xml there is receiver...</title><content type='html'>To explain further, from the xml there is receiver &lt;a href="http://developer.android.com/guide/topics/manifest/receiver-element.html" rel="nofollow"&gt;http://developer.android.com/guide/topics/manifest/receiver-element.html&lt;/a&gt; which would recieve an intent, which is filtered(PHONE_STATE), we then bind our receiver to the class of ServiceReceiver which would have a function called onReceive, then we listen to the the phone state. So putting them all into seperate class should work unless the current sdk had changed something, i havent tried out the code lately. Thanks</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/7518421098506993023'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/7518421098506993023'/><link rel='alternate' type='text/html' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html?showComment=1239391211000#c7518421098506993023' title=''/><author><name>admin</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html' ref='tag:blogger.com,1999:blog-1193295309527347789.post-5514572995741022221' source='http://www.blogger.com/feeds/1193295309527347789/posts/default/5514572995741022221' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-449860055'/></entry><entry><id>tag:blogger.com,1999:blog-1193295309527347789.post-7424921644475369918</id><published>2009-04-10T22:18:08.000+08:00</published><updated>2009-04-10T22:18:08.000+08:00</updated><title type='text'>Almond,&lt;br&gt;&lt;br&gt;Thank you very much for posting  yo...</title><content type='html'>Almond,&lt;br&gt;&lt;br&gt;Thank you very much for posting  your code.  I am sure the code is for a season developer.  However, I am just learning the android environment.  I wanted to get some input from you, it possible.  I&amp;#39;m trying to run your code &amp;quot;Phone state listener&amp;quot;  I have included a link &lt;br&gt;http://almondmendoza.com/2009/01/22/get-phone-state-when-someone-is-calling-using-broadcastreceiver-example/&lt;br&gt;&lt;br&gt;I don&amp;#39;t understand how to get it to run to put simply.  I create the classes, but I don&amp;#39;t understand how do I get it to run.&lt;br&gt;&lt;br&gt;Any help would be appreciated&lt;br&gt;&lt;br&gt;If you can&amp;#39;t help, no worries, I just thought I&amp;#39;d ask.&lt;br&gt;Frank</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/7424921644475369918'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5514572995741022221/comments/default/7424921644475369918'/><link rel='alternate' type='text/html' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html?showComment=1239373088000#c7424921644475369918' title=''/><author><name>Almond Mendoza</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html' ref='tag:blogger.com,1999:blog-1193295309527347789.post-5514572995741022221' source='http://www.blogger.com/feeds/1193295309527347789/posts/default/5514572995741022221' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-449860055'/></entry></feed>
