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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 [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
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.