android.intent.action.ANSWER

Tutorials with advanced 'difficulty' and more Lines of Code.

android.intent.action.ANSWER

Postby saru » Wed Feb 03, 2010 5:45 am

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.
saru
Junior Developer
Junior Developer
 
Posts: 16
Joined: Tue Feb 02, 2010 6:45 am

Top

Return to Advanced Tutorials

Who is online

Users browsing this forum: No registered users and 2 guests