The only thing that seems to work is the telnet technique:

> telnet localhost 5554
> gsm accept 1234567

On Dec 11, 5:06 pm, dreamerBoy <[email protected]> wrote:
> 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).addCategory
> (Intent.CATEGORY_DEFAULT);
>          context.startActivity(myIntent);
>       }
>       catch (Exception e)
>       {
>          cleanup();
>          return;
>       }
>
> // May need this intent-filter stanza as well
> // <intent-filter>
> // <action android:name="android.intent.action.ANSWER" />
> // <category android:name="android.intent.category.DEFAULT" />
> // </intent-filter>
>
> This is called from an ordinary ("raw") thread.  I simulate an
> incoming call with:
>
> > telnet localhost 5554
> > gsm call 1234567
>
> Phone rings and rings but Answer Activity never picks up - phone state
> never goes to OFF_HOOK.
--~--~---------~--~----~------------~-------~--~----~
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