code:

      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;
      }

This is called from an ordinary ("raw") thread.  I simulate an
incoming call with:

> telnet localhost 5554
> gsm call 1234567

result:

12-09 17:50:26.731: VERBOSE/IntentResolver(52): Resolving type null
scheme null of intent Intent { action=android.intent.action.ANSWER
flags=0x3000000c }
12-09 17:50:26.731: VERBOSE/IntentResolver(52): Action list:
[ActivityIntentInfo{433df190 com.android.phone.InCallScreen}]
12-09 17:50:26.731: VERBOSE/IntentResolver(52): Matching against
filter ActivityIntentInfo{433df190 com.android.phone.InCallScreen}
12-09 17:50:26.731: VERBOSE/IntentResolver(52):   Filter matched!
match=0x108000
12-09 17:50:26.731: WARN/IntentResolver(52): resolveIntent failed:
found match, but none with Intent.CATEGORY_DEFAULT
12-09 17:50:26.731: VERBOSE/IntentResolver(52): Final result list:
12-09 17:50:26.731: INFO/ActivityManager(52): Starting activity:
Intent { action=android.intent.action.ANSWER flags=0x3000000c }
12-09 17:50:26.741: ERROR/FTAvoiceCmdMt_call_setup3(32178): error
answering call
12-09 17:50:26.741: ERROR/FTAvoiceCmdMt_call_setup3(32178):
android.app.Instrumentation.checkStartActivityResult
(Instrumentation.java:1472)
12-09 17:50:26.741: ERROR/FTAvoiceCmdMt_call_setup3(32178):
android.app.Instrumentation.execStartActivity(Instrumentation.java:
1442)
12-09 17:50:26.741: ERROR/FTAvoiceCmdMt_call_setup3(32178):
android.app.ApplicationContext.startActivity(ApplicationContext.java:
596)
12-09 17:50:26.741: ERROR/FTAvoiceCmdMt_call_setup3(32178):
android.content.ContextWrapper.startActivity(ContextWrapper.java:236)
12-09 17:50:26.741: ERROR/FTAvoiceCmdMt_call_setup3(32178):
cta.fta.fta_voice.FTAvoiceCmdMt_call_setup.waitForResult
(FTAvoiceCmdMt_call_setup.java:610)
12-09 17:50:26.741: ERROR/FTAvoiceCmdMt_call_setup3(32178):
cta.fta.fta_voice.FTAvoiceCmdMt_call_setup.access$2
(FTAvoiceCmdMt_call_setup.java:508)
12-09 17:50:26.741: ERROR/FTAvoiceCmdMt_call_setup3(32178):
cta.fta.fta_voice.FTAvoiceCmdMt_call_setup$1.run
(FTAvoiceCmdMt_call_setup.java:496)
12-09 17:50:26.741: ERROR/FTAvoiceCmdMt_call_setup3(32178):
java.lang.Thread.run(Thread.java:935)

Can anyone see what I'm doing wrong?

Thanks so much.

dreamer

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
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