[android-developers] Re: call forwarding programmatically
Ok! I finally figure it out! Although I didn't really understand why it worked but using the following code symbols like # are passing to DIAL CALL Action. String uri = **21*30693516000#; // ##21# Intent intent = new Intent(Intent.ACTION_DIAL); // ACTION_CALL Uri uri2 = Uri.fromParts(tel, uri, #); intent.setData(uri2); startActivity(intent); On Jun 17, 1:15 pm, madlymad mando7s...@gmail.com wrote: Hi there, I am trying to make an app that will allow the user to forward his calls to voicemail and also disable that option. In order to do that I am trying to dial **21*30693516000# for activating the call forward and ##21# for deactivating If you try that straight to the keypad the commands work perfect but trying to pass them through the Intent extras I am loosing symbols like # and the call does not work. :( Is there any walk-around to dial whatever you want? I both tried ACTION_DIAL andACTION_CALL String uri = **21*30693516000#; // ##21# Intent intent = new Intent(Intent.ACTION_DIAL); //ACTION_CALL intent.setData(Uri.parse(uri)); startActivity(intent); At uri = **21*30693516000#; the passed number = **21*30693516000 so you lose the # and at the case of ##21# the number is * (just a star symbol) In the option ofACTION_CALLafter the call you get an not acceptable MMI code but I am sure that if you manage to pass the number right it will work. Any ideas? Thanks in advance, sorry for the long post. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Call forwarding
what exactly are you looking to do? set the call forwarding up via internal settings? the only way i know of to change the call forwarding is to dial a code and send it. I did find through a quick search that there is a way to detect fall forwarding state changes. it is in PhoneStateListener and has a public method of onCallForwardingIndicatorChanged(boolean cfi) Search the developer docs for more. -mike On Jan 22, 2:25 am, monty neilm30s...@gmail.com wrote: is it possible to do call forwarding in android?plz give a solution -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: call forwarding
Current SDK does not support call forwarding. APIs related to calls are very limited especially SS support. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Oct 22, 7:54 am, jera g. jera...@gmail.com wrote: how do I forward incoming calls to another number? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---