I am using android.intent.action.ANSWER for receiving my call
(android_OS). below i m giving code segment i used:

in android manifest file i wrote
 <intent-filter>
        <action  android:name="android.intent.action.ANSWER" />
        <category  android:name="android.intent.category.DEFAULT" />
  </intent-filter>

in activity class i wrote

 try
       {
          // answer the phone
          Intent myIntent = new Intent(Intent.ACTION_ANSWER);
          myIntent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP
                | Intent.FLAG_DEBUG_LOG_RESOLUTION
                | Intent.FLAG_FROM_BACKGROUND
                | Intent.FLAG_ACTIVITY_NEW_TASK);
          ftaContext.startActivity(myIntent);
       }
       catch (Exception e)
       {
          cleanup();
          return;
       }

But i did not get any result. Please see my code and give me a
feedback asap.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to