[android-developers] Re: Answer automatically to Incoming Call

2011-08-29 Thread Sanjay
Was anyone able to find the solution to this.

Pl. share.

Thanks

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Answer automatically to Incoming Call

2010-03-25 Thread midoub
if you want modify source code you can use this way, that work.

packages/apps/Phone/src/com/android/phone/CallNotifier.java

267:
private void onNewRingingConnection(AsyncResult r) {
Connection c = (Connection) r.result;
if (DBG) log(onNewRingingConnection():  + c);


PhoneUtils.answerCall(mPhone);  /* answer incomming calls  */

but the problem with this solution , you should reflash, if you want
get normal mode, that why I want to develoop application.
thanks for your help.
ps: sorry for my english

On Mar 21, 10:51 am, saru sarucs...@gmail.com wrote:
 Hi Bibek,
          Is it possible by modifying code??? Are you sure
 If possible can you give some hints actually what needed to do in
 source code to answer call programatically.

 On Mar 19, 1:03 am, Kumar Bibek coomar@gmail.com wrote:



  This is simply not possible if you are not modifying the source code.
  Don't waste time.

  Thanks and Regards,
  Kumar Bibek

  On Mar 18, 11:52 am, Andreas andreas.bex...@gmail.com wrote:

   Hi,

   I have not tried this, but it seems to me that you use the
   ACTION_CALL_BUTTON in your code, rather than the ACTION_ANSWER, and
   you should probably broadcast it using Context.sendBroadcast rather
   than startActivity. Just my cents.

   Regards

   Andreas

   On Mar 18, 7:40 am, midoub elmehdi.benso...@gmail.com wrote:

hello,
I know this is not the good forum to post my question, but I need help
and I spend 3 days to try to find solution ,but no way:(.
I'm trying to develop application that can answer incoming call
automatically.
In my code I use the intent Action_Anwser  but it's seem not work.
The snippet of my code
:
        public void onCallStateChanged(int state, String 
incomingNumber) {
                        super.onCallStateChanged(state, incomingNumber);
:
 Intent intent = new Intent(Intent.ACTION_CALL_BUTTON);
                            
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                               startActivity(intent);

Maybe I had forget the permission in manifest or somthing like this!!!
Thanks for your help.
best regards,- Hide quoted text -

 - Show quoted text -

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-developers] Re: Answer automatically to Incoming Call

2010-03-21 Thread saru
Hi Bibek,
 Is it possible by modifying code??? Are you sure
If possible can you give some hints actually what needed to do in
source code to answer call programatically.

On Mar 19, 1:03 am, Kumar Bibek coomar@gmail.com wrote:
 This is simply not possible if you are not modifying the source code.
 Don't waste time.

 Thanks and Regards,
 Kumar Bibek

 On Mar 18, 11:52 am, Andreas andreas.bex...@gmail.com wrote:

  Hi,

  I have not tried this, but it seems to me that you use the
  ACTION_CALL_BUTTON in your code, rather than the ACTION_ANSWER, and
  you should probably broadcast it using Context.sendBroadcast rather
  than startActivity. Just my cents.

  Regards

  Andreas

  On Mar 18, 7:40 am, midoub elmehdi.benso...@gmail.com wrote:

   hello,
   I know this is not the good forum to post my question, but I need help
   and I spend 3 days to try to find solution ,but no way:(.
   I'm trying to develop application that can answer incoming call
   automatically.
   In my code I use the intent Action_Anwser  but it's seem not work.
   The snippet of my code
   :
           public void onCallStateChanged(int state, String incomingNumber) {
                           super.onCallStateChanged(state, incomingNumber);
   :
    Intent intent = new Intent(Intent.ACTION_CALL_BUTTON);
                               
   intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                                  startActivity(intent);
   
   Maybe I had forget the permission in manifest or somthing like this!!!
   Thanks for your help.
   best regards,



-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-developers] Re: Answer automatically to Incoming Call

2010-03-18 Thread saru
if NY ONE OUT THEIR FIND ANY CLUE PLEASE POST HERE. it is a long
desired question

On Mar 18, 6:43 am, phillip phtp...@gmail.com wrote:
 Hi,

 I got the same problem as you do. I'm trying to look atthe original
 Phone app fromgoogle, but have no clue. The app manifest doesn't have
 Action_answer.

 Phillip

 On Mar 17, 3:40 pm, midoub elmehdi.benso...@gmail.com wrote:

  hello,
  I know this is not the good forum to post my question, but I need help
  and I spend 3 days to try to find solution ,but no way:(.
  I'm trying to develop application that can answer incoming call
  automatically.
  In my code I use the intent Action_Anwser  but it's seem not work.
  The snippet of my code
  :
          public void onCallStateChanged(int state, String incomingNumber) {
                          super.onCallStateChanged(state, incomingNumber);
  :
   Intent intent = new Intent(Intent.ACTION_CALL_BUTTON);
                              intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                                 startActivity(intent);
  
  Maybe I had forget the permission in manifest or somthing like this!!!
  Thanks for your help.
  best regards,



-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Answer automatically to Incoming Call

2010-03-18 Thread Andreas
Hi,

I have not tried this, but it seems to me that you use the
ACTION_CALL_BUTTON in your code, rather than the ACTION_ANSWER, and
you should probably broadcast it using Context.sendBroadcast rather
than startActivity. Just my cents.

Regards

Andreas

On Mar 18, 7:40 am, midoub elmehdi.benso...@gmail.com wrote:
 hello,
 I know this is not the good forum to post my question, but I need help
 and I spend 3 days to try to find solution ,but no way:(.
 I'm trying to develop application that can answer incoming call
 automatically.
 In my code I use the intent Action_Anwser  but it's seem not work.
 The snippet of my code
 :
         public void onCallStateChanged(int state, String incomingNumber) {
                         super.onCallStateChanged(state, incomingNumber);
 :
  Intent intent = new Intent(Intent.ACTION_CALL_BUTTON);
                             intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                                startActivity(intent);
 
 Maybe I had forget the permission in manifest or somthing like this!!!
 Thanks for your help.
 best regards,

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Answer automatically to Incoming Call

2010-03-18 Thread Kumar Bibek
This is simply not possible if you are not modifying the source code.
Don't waste time.

Thanks and Regards,
Kumar Bibek

On Mar 18, 11:52 am, Andreas andreas.bex...@gmail.com wrote:
 Hi,

 I have not tried this, but it seems to me that you use the
 ACTION_CALL_BUTTON in your code, rather than the ACTION_ANSWER, and
 you should probably broadcast it using Context.sendBroadcast rather
 than startActivity. Just my cents.

 Regards

 Andreas

 On Mar 18, 7:40 am, midoub elmehdi.benso...@gmail.com wrote:

  hello,
  I know this is not the good forum to post my question, but I need help
  and I spend 3 days to try to find solution ,but no way:(.
  I'm trying to develop application that can answer incoming call
  automatically.
  In my code I use the intent Action_Anwser  but it's seem not work.
  The snippet of my code
  :
          public void onCallStateChanged(int state, String incomingNumber) {
                          super.onCallStateChanged(state, incomingNumber);
  :
   Intent intent = new Intent(Intent.ACTION_CALL_BUTTON);
                              intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                                 startActivity(intent);
  
  Maybe I had forget the permission in manifest or somthing like this!!!
  Thanks for your help.
  best regards,

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Answer automatically to Incoming Call

2010-03-17 Thread phillip
Hi,

I got the same problem as you do. I'm trying to look at the original
Phone app from google, but have no clue. The app manifest doesn't have
Action_answer.

Phillip

On Mar 17, 3:40 pm, midoub elmehdi.benso...@gmail.com wrote:
 hello,
 I know this is not the good forum to post my question, but I need help
 and I spend 3 days to try to find solution ,but no way:(.
 I'm trying to develop application that can answer incoming call
 automatically.
 In my code I use the intent Action_Anwser  but it's seem not work.
 The snippet of my code
 :
         public void onCallStateChanged(int state, String incomingNumber) {
                         super.onCallStateChanged(state, incomingNumber);
 :
  Intent intent = new Intent(Intent.ACTION_CALL_BUTTON);
                             intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                                startActivity(intent);
 
 Maybe I had forget the permission in manifest or somthing like this!!!
 Thanks for your help.
 best regards,

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en