Incoming Call

Put your problem here if it does not fit any of the other categories.

Incoming Call

Postby Manfred » Mon Mar 02, 2009 9:58 am

Hi!

When i try to recognize incoming calls, everything is ok, but i get the notification 2times!?
can anyone tell my if this is normal?

Thanks

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.  
  2.  
  3.  
  4. public class CallListener extends PhoneStateListener
  5.  
  6. {
  7.  
  8.    
  9.  
  10.     @Override
  11.  
  12.     public void onCallStateChanged(int state, String incomingNumber)
  13.  
  14.     {
  15.  
  16.         super.onCallStateChanged(state, incomingNumber);
  17.  
  18.                
  19.  
  20.         if(state == TelephonyManager.CALL_STATE_RINGING)
  21.  
  22.         {
  23.  
  24.  
  25.  
  26.           //This section is called twice per incoming call!?  
  27.  
  28.  
  29.  
  30.         }
  31.  
  32.     }
  33.  
  34.  
  35.  
  36. }
Parsed in 0.031 seconds, using GeSHi 1.0.8.4
Manfred
Junior Developer
Junior Developer
 
Posts: 10
Joined: Tue Feb 10, 2009 2:13 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot] and 20 guests