This Android widget will allow users to set their status and auto-response of phone calls. So, next time you are having dinner or doing anything much more interesting than attaining a call :-), you can use this widget to auto reply with an SMS message without disappointing or keep your caller guessing for your unanswered call.
Supported Platform
Android 2.1 and above.
How to use ?
1. Download PhoneAwayWidget.apk and add the widget on your Home screen. By default it will set you status "Available", which means your phone will behave as it is.
2. When you don't want to attain call and set status message, click on the widget, which in turn will launch the preference screen.
3. So if you set your status, next time call comes, it will auto-response with SMS message. You can define the mximum number of SMS auto-response, e.g. Max SMS Count = 10 means, for first 10 calls it will send SMS and rest of the calls it will just disconnect.
Please update me with your comments and any enhancement you want in this. Hope you'll like it. With this signing off...:-)
This is really cool...:) I should take a loot at your code from google project hosting..!! best wishes...!!
ReplyDeletethanx...
ReplyDeletegod bless u...
Hi Paul,
ReplyDeleteNice piece of code!
I noticed that your aidl files contains some very interresting methods such as switchHoldingAndActive. So, I ran your code on my device and obviously, it crashed. Did you test this? Could you let me know what is your context?
Hi Sebastien,
ReplyDeleteI tested on Android 2.1 and 2.2
The AIDL included is the standard Android ITelephony.aidl file
Please share your crash log...
Thanks,
Hi, thanks for your quick reply.
ReplyDeleteSorry my request was not precise enough. Your code works perfectly. But if I use your pattern to launch other methods (i.e. switchHoldingAndActive), app crashes.
My log gives this exception :
java.lang.NoSuchMethodError: com.android.internal.telephony.ITelephony.switchHoldingAndActive
My device runs Android 2.1.
When I read the standard ITelephony.aidl file ( http://www.google.com/codesearch/p?hl=fr#uX1GffpyOZk/telephony/java/com/android/internal/telephony/ITelephony.aidl&q=itelephony.aidl&sa=N&cd=1&ct=rc ) I can't find these methods.
Did you found a trick? That's why I posted this request!
Thanks!
Thanks for sharing the code with us. Its really works. I hope in future if any new update comes then you can help me. Thanks a lot. :)
ReplyDeleteWhere is the application launcher in android manifest file
ReplyDeleteHi Krishan,
ReplyDeleteyou can download code from code.google.com using SVN.
Thanks,
Prasanta
Hi,
ReplyDeleteI am totally new to code.google.com. How can I find the source code of this wonderful widget?
Best Regards,
Stellio
Hi Prasanta,
ReplyDeleteThank you so much for this great blog.
Is it possible to play audio in an ongoing call?
Please , share your experiences and ideas about it.
Thanks
Mofajjal
Hi Prasanta
ReplyDeletei am working my project.When have an incoming phone call, the screen has not changed its.How to do it (can you give me a little code for this problem ) ? please help me!
Hi Prasanta
ReplyDeletei am working my project.When have an incoming phone call, the screen has not changed its.How to do it (can you give me a little code for this problem ) ? please help me!
Dear Prasanta,
ReplyDeletethanks a lot for your app and the code.
Unfortunately I have a serious issue with it. When I install the .apk the app shows up under "Installed Applications" but that's it. It is nowhere to be seen in the menu and it doesn't seem to start at all. I ran it on a HTC Desire HD, a Samsung Galaxy SII and on a virtual device. All have the same problem - the program installs but it is not accessible. It doesn't matter if I use the prebuilt .apk or if I build it myself.
Any help is greatly appreciated.
Thanks a lot in advance
yours Tom
edit: the real devices had both Android 2.3.5, the virtual device had 2.1
Please forgive me. My last comment was pretty dumb.
ReplyDeleteYou mentioned clearly, that I have to add the widget to the homescreen. I failed to do so and search the app in the menu instead. I was loud and noisy.
I'm soory.
Best regards
Tom
hi,
ReplyDeleteCan you please let me know how to make this widget extend-able for specific phone no. means, I want specific no. should be auto answer with some predefined no's. and not with sms.
so in preference panel, there will be a input box where i can enter the specific phone no. which this widget will intercept when call comes from this specific no. and instead of sending SMS to this specific no. this widget will automatically dial some no. say 099.
Can you please point out how should i make these changes using your widget as base app.
thanks,