Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9225091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:29:34+00:00 2026-06-18T04:29:34+00:00

There are correct solution for task? On incoming call hide defalut answer/reject activity and

  • 0

There are correct solution for task?

On incoming call hide defalut answer/reject activity and show my activity with two buttons “Answer” (answer on call) and “Reject” (reject call)

on 2.3.3 I9001 i use

  1. Service with TelephonyManager.listen for intercept call

  2. Show my activity (with 1 second delay) with flags FLAG_ACTIVITY_NEW_TASK Intent.FLAG_ACTIVITY_REORDER_TO_FRONT

  3. On answer i use emulate KEYCODE_HEADSETHOOK

  4. On regect i use ITelephony hack

But this not work on 4.0.4.

a) my activity showed but hide by default

b) may be there are correct way for all version

?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T04:29:36+00:00Added an answer on June 18, 2026 at 4:29 am
    TelephonyManager tm = (TelephonyManager) getSystemService(TELEPHONY_SERVICE);
    Class c = Class.forName(tm.getClass().getName());
    Method m = c.getDeclaredMethod("getITelephony");
    m.setAccessible(true);
    ITelephony telephonyService;
    telephonyService = (ITelephony)m.invoke(tm);
    telephonyService.silenceRinger();
    telephonyService.answerRingingCall();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a leak in this C code? Although the answer is coming correct,
Firstly I know that there are many question and solutions to correct thread marshalling
I am wondering if there is a correct way to implement the anchor tag
in my page there are few hidden field which are filled with the correct
What do you think? Is this correct or are there memory leaks? Source: #include
There is a moment in my app, that I need to force to show
I need to equalize spaces between four buttons. Is there any way this could
Is there any way to compare two functions in Haskell? My thought is that
Here's the task: I need to lock based on a filename. There can be
Maybe there is a really simple solution for my problem, but I'm really confused

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.