Giter VIP home page Giter VIP logo

android_dialer_replacement's Introduction

GitHub license

Dialer replacement sample

A sample project about how to implement a working dialer replacement app for Android and companion repo of a Medium post.

In this project we'll have a simple app that:

  • Requests the user to be selected as default phone app.
  • Once selected, captures call states and displays a UI showing info about the call and allowing to answer, reject and cancel calls.

Images

Dialer request dialog Incoming call

Author

Follow me on Twitter

android_dialer_replacement's People

Contributors

mbarrben avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

android_dialer_replacement's Issues

compile errors

I am trying to compile your app with fresh android studio installation.

First I need to update kotlin to 1.3.21 and then I need to change the link from jre to jdk.

After I run that it still doesnt work.

Can you help the noob :D

How to speak the name of the caller?

I have read the complete article. I followed it an created an app. The main issue I'm facing is that when app is destroyed the InCallService doesn't launch the CallActivity that was created to handle the calls on some devices. I'm using Infinix device with Android version 11. I'm trying to launch my custom CallActivity when a new call is added to the device. it work fine if the application is in foreground or in background but it stop working when the app is destroyed. If the app is destroyed the default call activity is launched instead of the custom CallActivity that I created. Also on some devices even if the app is destroyed the custom CallActivity is launched but the TextToSpeech api doesn't work.

Does not work when screen is off

I managed to write a code to replace default phone app as explained in this repository. It is working only when screen is turned on. If screen is turned off, I can only hear ring tone, screen does not turn on. If I turn on screen manually, I can't see any call interface (not mine or not system default phone app. So I can't handle answer that call). How can I turn on screen when phone rings? I've tried several solutions about how to turn on screen, but no one is working in this case.

Any suggestions?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.