arekolek / simple-phone Goto Github PK
View Code? Open in Web Editor NEWBare minimum implementation of an Android Phone app
License: MIT License
Bare minimum implementation of an Android Phone app
License: MIT License
Hi, I have a query. I am new to kotlin and android. I don't know how to stop the default ringtone when I get called. How to implement this? Kindly help me to implement this. Thanks in advance.
Steps:
0. reset apps settings(if installed previously)
Huawei P10Lite, android 8; Samsung S8+;
Why is show icon from default? How to change such behaviour?
I am trying to implement a full functioning phone calling app but simple-phone is using inbuilt app.
Is their a way to implement it without using any other app ?
Describe the bug
I wanted to call from the app and when I clicked the number I want to call, I got redirected to my phone default caller.
To Reproduce
I debug the app and notice that CallService not invoking.
Device Details
There are tons of functions that are available for when you have the control here, of the during-call-UI.
Is it possible, since a developer might not implement&use all of them, to revert back to the built-in-UI ?
For example, suppose I create an app based on this sample, that only offers to answer and reject calls.
This means I didn't handle conference calls, video calls, etc...
Is there an API of some sort, that allows me to put a button on the UI, to go back to the built-in-UI ? One that has everything else covered?
Or once I replace the UI, I have to implement it all? Meaning all or nothing?
Hello,
Thanks for this little app, it is really amazing!
However, recently I receive kotlin.KotlinNullPointerException
in OngoingCall.answer
with stack trace:
com.github.arekolek.phone.OngoingCall.answer OngoingCall.kt:29
com.github.arekolek.phone.CallActivity$onStart$7.invoke CallActivity.kt:85
com.github.arekolek.phone.CallActivity$onStart$7.invoke CallActivity.kt:27
com.github.arekolek.phone.CallActivity$subscribeWithDelay$2.accept CallActivity.kt:128
io.reactivex.internal.observers.LambdaObserver.onNext LambdaObserver.java:63
io.reactivex.observers.SerializedObserver.onNext SerializedObserver.java:111
io.reactivex.internal.operators.observable.ObservableDelay$DelayObserver$OnNext.run ObservableDelay.java:114
io.reactivex.internal.schedulers.ScheduledRunnable.run ScheduledRunnable.java:66
io.reactivex.internal.schedulers.ScheduledRunnable.call ScheduledRunnable.java:57
java.util.concurrent.FutureTask.run FutureTask.java:266
The stack trace is not showing CallActivity$onStart$.onClick
because here I pickup phone automatically with delay in CallActivity
// Autopickup with delay
OngoingCall.state
.filter{ it == Call.STATE_RINGING && isAutopickup() }
.subscribeWithDelay(
Random.nextLong(pickupDelayFrom, pickupDelayTo),
"$autopickupNumber will be picked after {delay} sec"
) { OngoingCall.answer()
muteMic() }
.addTo(disposables)
I was looking through the code and I really can't see a situation when OngoingCall.call
will be null
at this step...
Maybe you have any ideas on why this could happen? So I can try to build a workaround...
Kind regards!
Max
Can it be modified to run inside my application without being default
Greate simple example - many thanks
How to answer incoming call on speaker using your example?
i try to build it and i get the error:
Unable to find method ''org.gradle.api.file.DirectoryProperty org.gradle.api.file.ProjectLayout.directoryProperty(org.gradle.api.provider.Provider)''
'org.gradle.api.file.DirectoryProperty org.gradle.api.file.ProjectLayout.directoryProperty(org.gradle.api.provider.Provider)'
Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)
The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
Stop Gradle build processes (requires restart)
Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.
In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
Hi. I am developing an app in flutter. I want to create an app like this. I don't know java or kotlin. How can I implement this in flutter. Kindly help me. Thanks in advance.
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?
This repository is nice, but the full implementation of all things in a during call UI is probably much larger.
Do you know perhaps how to clone correctly the official Phone app, or at least just the part of during the call?
I've tried here:
https://android.googlesource.com/platform/packages/apps/Dialer
But it is so messy and I don't get what to do with the folders. The IDE failed to just import it all.
However, I've found 2 repositories that have it working, though in a bit old version (Android N) of the Phone app:
How did they do it? Can you please show, step by step, how to import it all into a working project ?
Can i create a conference call with this?
Hello, I have noticed that during a call the screen doesn't turn off with the proximity sensor, I tried several codes but it was in vain. Any help would be greatly appreciated.
Hello, I really appreciate the work you have done in Kotlin. But, while integrating it to an existing Java project. Handling observers are quite confusing and leading to nullpointer or no UI update. Can you help me a little bit?
In the built in dialer, in case you are in an immersive app (playing a game or watching a video), and someone calls you, you get a notification instead of a full screen Activity asking you what to do.
Is it possible to handle it too, using the new API ?
Maybe even give the user a choice, of whether to show it as notification or a full screen Activity ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.