Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
dhiru1602
Old
(Last edited by dhiru1602; 13th August 2011 at 07:09 AM.)
#1  
dhiru1602's Avatar
Recognized Contributor / Recognized Developer - OP
Thanks Meter 6844
Posts: 1,238
Join Date: Aug 2010

 
DONATE TO ME
Default [MOD][JVQ][JVR] Incoming Call Ringtone Flip to Mute and Hold to Silence

Incoming Call Ringtone Flip to Mute and Hold to Silence

My friend has been showing me the so called Flip to Mute and Hold to Silence features of his New HTC phone which he has purchased recently. He was quite exaggerating on the fact that his phone had those features while my Galaxy S lacked them. So, I started working on a port for the same and finally managed to integrate them into the stock Dialer.

Flip to Mute
When you are receving a call, you could simply MUTE the call Ringtone by flipping the phone with the screen facing the table surface.

Hold to Silence
When you receive a call, if you hold the phone in your hand with the screen angled towards your face, the Ringtone volume decreases until you lift the call.

Note: I have configured the sensor settings to be effective only when the phone is resting on a flat surface with the screen upwards. I have found that this type of configuration is required to prevent issues with phone going mute accidentally when its in your pocket and you receive a call. Unfortunately, I don't receive many calls to practically test it for accuracy. Hope it serves the purpose.



Installation Instructions
Download the attached file and flash with CWM3.

IMPORTANT PLEASE READ!
This is just a MOD which is intended to work properly, but there might be chances of the MOD misbehaving. I am totally not responsible if a girl next door calls you up and you get a Force close on the Phone app. There might be some issues, hence install it only if you know how to rollback in case of any issues. Post them in the forum so that I could look into them. A logcat would be usefull.

Download - DEODEXED ROM ONLY!
Please check the attachment. There are 2 versions uploaded.
1. Flip and Hold
2. Flip Only

JVR Version by Brotuck : http://forum.xda-developers.com/show...6&postcount=72

The Phone.apk is based on JVQ release and it is based on the stock APK. There are no additional mods like disable increasing ringtone or fixing the FC with this app after a phone call.

Versions for the other firmwares will be released soon.

Sensor Usage
You might notice some Sensor Usage for Phone app. This is quite normal because the Sensors are used to check the Orientation of the phone. This would last only for the duration of the Call Ring. I have checked to see if the sensors are being stopped and It seems to work fine. Let me know if there are any issues, because if there is any issue with the sensors, it might lead to a battery drain.

You are free to use my work but please give me a Credit, Hit the Thanks Button and also consider a donation.
Samsung Galaxy S3 I9300
Samsung Galaxy S I9000
Samsung Galaxy SL I9003

My Work!
CM9 for Galaxy SL I9003
CM10 for Galaxy SL I9003
Galaxy S II ICS Firmware ported to Galaxy S

My Sources!
https://github.com/dhiru1602

The Following 22 Users Say Thank You to dhiru1602 For This Useful Post: [ Click to Expand ]
 
dhiru1602
Old
(Last edited by dhiru1602; 20th July 2011 at 10:34 AM.)
#2  
dhiru1602's Avatar
Recognized Contributor / Recognized Developer - OP
Thanks Meter 6844
Posts: 1,238
Join Date: Aug 2010

 
DONATE TO ME
Source code here!
Attached Files
File Type: rar [Phone.apk]Ring_Flip_Pickup_Source.rar - [Click for QR Code] (20.7 KB, 280 views)
Samsung Galaxy S3 I9300
Samsung Galaxy S I9000
Samsung Galaxy SL I9003

My Work!
CM9 for Galaxy SL I9003
CM10 for Galaxy SL I9003
Galaxy S II ICS Firmware ported to Galaxy S

My Sources!
https://github.com/dhiru1602

The Following 2 Users Say Thank You to dhiru1602 For This Useful Post: [ Click to Expand ]
 
D@niel0s
Old
#3  
D@niel0s's Avatar
Senior Member
Thanks Meter 9
Posts: 294
Join Date: Nov 2010
Location: Rzeszów
It's working great when someone calls you. But there is one issue. After a call I get a FC with a phone.app... :/ Didn't happen to me before.
 
dhiru1602
Old
#4  
dhiru1602's Avatar
Recognized Contributor / Recognized Developer - OP
Thanks Meter 6844
Posts: 1,238
Join Date: Aug 2010

 
DONATE TO ME
Quote:
Originally Posted by D@niel0s View Post
It's working great when someone calls you. But there is one issue. After a call I get a FC with a phone.app... :/ Didn't happen to me before.
Does it happen for all the calls? I have rechecked with a call and everything seems to be find on my device. I am unable to replicate any such FC.
Samsung Galaxy S3 I9300
Samsung Galaxy S I9000
Samsung Galaxy SL I9003

My Work!
CM9 for Galaxy SL I9003
CM10 for Galaxy SL I9003
Galaxy S II ICS Firmware ported to Galaxy S

My Sources!
https://github.com/dhiru1602

 
D@niel0s
Old
#5  
D@niel0s's Avatar
Senior Member
Thanks Meter 9
Posts: 294
Join Date: Nov 2010
Location: Rzeszów
It happened once, after I called one of my friends. I'll keep you informed if anything like this happens again.
 
j-a-c-k
Old
#6  
j-a-c-k's Avatar
Member
Thanks Meter 1
Posts: 62
Join Date: Oct 2007
Location: Kiev
To avoid FC, please, use Phone.apk from 2.3.3 ROM, not from 2.3.4
Device: Samsung GT-N7100 16Gb; ROM: My MOD; Storage: MicroSDXC Sandisk 64GB; Sound: MEElectronics M6P
 
$omator
Old
#7  
Account currently disabled
Thanks Meter 942
Posts: 3,812
Join Date: Dec 2010
Location: tri(p) city

 
DONATE TO ME
great concept! amazing one!

tested it on few calls with phone at different positions, no problems whatsoever

donate this guy so he will not stop to develop!

ive merged it with autorotating phone/dialer and made cwm packs -> http://forum.xda-developers.com/show...3#post15821413
 
jelle2503
Old
#8  
Senior Member
Thanks Meter 184
Posts: 495
Join Date: Mar 2011
"flipping" brilliant!
 
sefuleo
Old
#9  
Senior Member
Thanks Meter 28
Posts: 267
Join Date: Oct 2010
Location: Bucharest
you are the man!
great work!
thank you for this
 
Brotuck
Old
#10  
Brotuck's Avatar
Senior Member
Thanks Meter 283
Posts: 1,167
Join Date: Dec 2010
Location: Rotterdam
Wonderfull ! Great work dhiru !
growing old is inevitable, growing up is optional!


 
Post Reply+
Tags
flip, hold, mute, ringtone, silence
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...