[android-developers] LinearLayout with multiple TextViews
I'm struggling with the following: I have a linear layout with horizontal orientation, which I'm adding text views dynamically (with WRAP_CONTENT layout params). The problem is that when reaching the screen border, instead of placing the new text view on a new line, the new textview is placed in the end with multiple line breaks. Here's what it looks like: http://lh4.ggpht.com/_HX7nu4IEeEg/SztX7G-EFrI/EME/mEk6EcjjGeA/screen.JPG I would like the TextView05 to be placed on a new line. Is that possible? I don't know ahead how many text views i will have to place, i want them to be placed one after another, and prefer to keep them in the same linearlayout. -- 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] WebView and javascript problem
I have a WebView in my activity opening html file, containing a simple javascript. My problem is that the webview opens the html file, but doesn't execute the javascript. When i open the file from web browser, and not from my app, it executes the javascript correctly. What could be the difference? Are there any different settings for running javascript? here is my file: html head meta http-equiv=Content-Type content=text/html; charset=UTF-8 script function Tip(){ document.write(Hello!); } /script /head body img src=map.jpg alt=Planets usemap=#imgmap / map id=imgmap name=imgmap area shape=rect alt=google title= coords=1,1,20,20 href=http://www.google.com; target= onmouseover=Tip() / /map /body /html --~--~-~--~~~---~--~~ 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: How send DTMF in android?
ToneGenerator won't help here - This API is not for generating tones over the uplink audio path. On Sep 8, 12:44 pm, Mark Ellul mark.el...@gmail.com wrote: Hi Gulfam, Did you solve the issue? I am trying to do the same thing and only have a HTC Hero to test with and its failing as well. Please if you have resolved the issue let me know... I have seen this classhttp://developer.android.com/reference/android/media/ToneGenerator.html but I am not sure if it will help in this case. Regards Mark On Aug 28, 8:55 am, Gulfam gulfa...@gmail.com wrote: Hi all, I am facing a problem on sendingDTMFin android. I am sendingDTMFin this format tel:+15187127050,9563547896# Its working fine on G1 but when i install the app on HTC Hero /HTC Magic its dispalying error message like this (Invalid MMI) Any one can help me regarding this. Thanks in advance. Gulfam --~--~-~--~~~---~--~~ 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: how to use adb tool on SAMSUNG GALAXY?
I have the latest SDK 1.5r3, modified the android_usb.inf and installed the usb driver. But still the device is not recognized by the ADB. If adb in r3 supports Samsung devices directly, then the problem is in the drivers? --~--~-~--~~~---~--~~ 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] ListView touch problem
Each list item in my ListView is a linkified TextView, and a regular TextView. The problem is that once there is a touchable item in the ListView, the touch works only for that item, that is - only links work, but the entire list item containing the link cannot be touch selected (only with the trackball). I tried this also with buttons inside the list items and the touch behavior was the same - only the button view could be touched. Is there a way to make a list item touchable with touchable views inside? --~--~-~--~~~---~--~~ 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: how to use adb tool on SAMSUNG GALAXY?
Hey, I just got this device too. Trying to figure out how to debug on device too. According this http://groups.google.com/group/android-beginners/browse_thread/thread/167b279683bddc8a Samsung have their own adb. Please update the thread if you've got any progress :) thanks ahead! On Jul 11, 10:54 pm, da yang daboil...@googlemail.com wrote: Hi i got this new mobilephone this week in Germany, wanted to debug my program on the device. but it doesn't work, c:\adbdevices lists no device attached, though i have tried to change the android_usb.inf in order to install the usb driver from SDK. i added some entries as follows: under [Google.NTx86] ; HTC DREAM ... ; SAMSUNGGALAXY %USB\VID_04E8PID_6640. DeviceDescRelease%=androidusb.Dev, USB \VID_04E8PID_6640 %USB\VID_04E8PID_6640MI_01.DeviceDescRelease%=androidusb.Dev, USB \VID_04E8PID_6640MI_01 %USB\VID_04E8PID_6640.DeviceDescRelease%=androidusb.Dev, USB \VID_04E8PID_6640 and [Strings]: USB\VID_04E8PID_6640.DeviceDescRelease=SAMSUNGGALAXY USB\VID_04E8PID_6640MI_01.DeviceDescRelease=SAMSUNGGALAXY CompositeADBInterface USB\VID_04E8PID_6640.DeviceDescRelease=SAMSUNGGALAXYBootloader i got only one VID and one PID through USBVIEW, though for HTC DREAM there are different PIDs used. Theadbinterface got installed, butadbjust didn't work. later i also tried to use the device under linux, set up the device as in Dev guide: If you're developing on Ubuntu Linux, you need to add a rules file: 1. Login as root and create this file: /etc/udev/rules.d/51- android.rules. For Gusty/Hardy, edit the file to read: SUBSYSTEM==usb, SYSFS{idVendor}==0bb4, MODE=0666 For Dapper, edit the file to read: SUBSYSTEM==usb_device, SYSFS{idVendor}==0bb4, MODE=0666 2. Now execute: chmod a+rx /etc/udev/rules.d/51-android.rules adbdevices listed nothing as well. : ( open a terminal on the device, with ps, i guess theadbdaemon adbd is running. but theadbtool just doesn't work. Can someone help me? thanks da --~--~-~--~~~---~--~~ 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] how to access mobile web app on local network
I expireince the same problem. Is it possible to configure the emulator to access local network addresses? --~--~-~--~~~---~--~~ 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: How do I refer to a string ressource in the array.xml?
It should be @string, not @strings. string-array name=services item@string/call/item /string-array On Jan 22, 2:18 pm, code_android_festival_way festival.s...@googlemail.com wrote: Is there a possibility to refer to a string ressource in the arrays.xml? I have tried: string-arrayname=services item@strings/call/item /string-array which I would normally do in a layout file. But it failed. Could someonte tell me the right way to do that. Regards --~--~-~--~~~---~--~~ 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: access to internal telephony
sorry for the delay. for any destination number (say 212333,4;444), it would be: destNum = destNum.replaceAll(#, ENCODE_POUND); if (destNum.endsWith(ENCODE_POUND)) //calls ending with # will fail { destNum= destNum.substring(0, destNum.length()-ENCODE_POUND.length ()); } Intent mIntent = new Intent(Intent.ACTION_CALL, Uri.parse(tel: + destNum)); where: private static final String ENCODE_POUND = %23; On Feb 10, 9:22 am, shimo...@gmail.com shimo...@gmail.com wrote: Hi, Can you share the code snippet you use to call, for example - 212333,4;444 ? (the comma should yield a timed pause, the ';' - a hard pause - waiting for the user to acknowledge before dialing) Thanks ! On Feb 9, 1:19 pm, legerb drim...@gmail.com wrote: I had problems with the '#', but when encoded, it works fine. With other symbols i didn't have any problems. And i remember that when '#' was the last char (even encoded), it was always stripped. On Feb 9, 9:25 am, shimo...@gmail.com shimo...@gmail.com wrote: Hi, Using a DEV phone, seems I can not make calls to numbers containing extra digits (i.e. pauses - either 'hard' or 'timed'). They are stripped. If I start the call from the built-in contacts app using the ACTION_VIEW intent and then tapping a phone field with, say - *151,#,1 it is dialed ok. Is there any intent other than ACTION_CALL I need to use to start a call to a number like *151,#,1 to have the device call then send those extra digits ? Or is there any specific intent data ? type ? extra ? Or maybe a formatting ? TIA On Feb 8, 6:09 am, Dianne Hackborn hack...@android.com wrote: Not any time soon. Most of the classes there will only work when running code in the phone process, and making them work in other process would be significant work. Also on the G1 I don't believe that anything in the application processor even has access the voice data stream, so it just wouldn't be able to do what you want even if you were modifying the platform itself. On Sat, Feb 7, 2009 at 11:04 AM, Gero Mudersbach ger...@web.de wrote: Hello, are there plans to make com.android.internal.telephony available public? As far as I understand it is currently not possible to write e.g. an answering machine within the current framework (standard sdk), because direct access to acceptCall and hangup methods is missing. Best G. Mudersbach -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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: access to internal telephony
I had problems with the '#', but when encoded, it works fine. With other symbols i didn't have any problems. And i remember that when '#' was the last char (even encoded), it was always stripped. On Feb 9, 9:25 am, shimo...@gmail.com shimo...@gmail.com wrote: Hi, Using a DEV phone, seems I can not make calls to numbers containing extra digits (i.e. pauses - either 'hard' or 'timed'). They are stripped. If I start the call from the built-in contacts app using the ACTION_VIEW intent and then tapping a phone field with, say - *151,#,1 it is dialed ok. Is there any intent other than ACTION_CALL I need to use to start a call to a number like *151,#,1 to have the device call then send those extra digits ? Or is there any specific intent data ? type ? extra ? Or maybe a formatting ? TIA On Feb 8, 6:09 am, Dianne Hackborn hack...@android.com wrote: Not any time soon. Most of the classes there will only work when running code in the phone process, and making them work in other process would be significant work. Also on the G1 I don't believe that anything in the application processor even has access the voice data stream, so it just wouldn't be able to do what you want even if you were modifying the platform itself. On Sat, Feb 7, 2009 at 11:04 AM, Gero Mudersbach ger...@web.de wrote: Hello, are there plans to make com.android.internal.telephony available public? As far as I understand it is currently not possible to write e.g. an answering machine within the current framework (standard sdk), because direct access to acceptCall and hangup methods is missing. Best G. Mudersbach -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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: I can use Intent make outgoing call, but how to detect the call state?
You can't detect this. On Jan 20, 3:38 am, ben ben.flash...@gmail.com wrote: hi all. i can use this code make outgoing call. Intent dial = new Intent(Intent.ACTION_CALL); dial.setData(Uri.parse(tel:5556) ); context.startActivity(dial); but how to detect callee pick up the call or refuses to answer? i tried PhoneStateListener but not working. --- sorry, my english is poor :( --~--~-~--~~~---~--~~ 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: How to make my application know where I am, in country level.
String networkOperator = ((TelephonyManager) context .getSystemService (Context.TELEPHONY_SERVICE)).getNetworkOperator(); String locationCode = networkOperator.substring(0, 3); First 3 digitis are the mcc code - Mobile Country Code which will tell you what you need. On Jan 20, 6:05 am, magicpig zsumagic...@gmail.com wrote: Thanks for the reply. There may be some confusing in my post. Actually, I want to judge my location by the Network:http://code.google.com/android/reference/android/telephony/TelephonyM...()http://www.nw.com/zone/iso-country-codes But I am not sure what the returned value will be. Any hint? On Jan 18, 7:29 pm, for android forandr...@gmail.com wrote: http://groups.google.com/group/android-developers/web/localizing-andr... On Sat, Jan 17, 2009 at 6:51 PM, magicpig zsumagic...@gmail.com wrote: Hi, I am wondering if there is such API that provides my current location, in country level, such as I am in Japan. Thanks. --~--~-~--~~~---~--~~ 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: PhoneStateListener GarbageCollection
Having the same problem with the PhoneStateListener. Did you manage to keep it alive? Regarding services, this might help: http://groups.google.com/group/android-developers/browse_frm/thread/fa2848e31636af70?hl=en On Dec 3, 3:21 pm, blau vinb...@gmail.com wrote: I'm trying to figure out the best way to have a PhoneStateListener survive as long as possible and be recreated if necessary. TelephonyManager telephonyManager = (TelephonyManager) aContext.getSystemService(Context.TELEPHONY_SERVICE); telephonyManager.listen(listener, PhoneStateListener.LISTEN_CALL_STATE); // I'm setting that up on BOOT_COMPLETED, and it survives for a while, but eventually garbage collection kicks in and seems to kill my listener. Setting a service up that just holds a reference would work right? But what concerns do I need to have about services dieing? Anyone have an idea why phone states weren't implemented as a broadcast intent? --~--~-~--~~~---~--~~ 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] ACTION_ANSWER
I've also tried to use ACTION_ANSWER, but i keep getting the ActivityNotFoundException. Does it mean that the Phone app is not registered for this intent? What is the purpose of ACTION_ANSWER then? -- Forwarded message -- From: Jose María González [EMAIL PROTECTED] Date: Sep 10, 5:04 pm Subject: ACTION_ANSWER To: Android Developers I am trying to automatically answer an incoming call. I am using the intentACTION_ANSWER, but when a call arrives I can only see an IndexOurOfBoundsException from JavaBinder. According to the documentation it is possible to answer the call, but I cannot make it. Here is my code public class MyPhoneStateListener extends PhoneStateListener { Context context; @Override public void onCallStateChanged(int state,String incomingNumber) { if (state==1){ Intent ic = new Intent(Intent.ACTION_ANSWER); context.startActivity(ic); }} ---Main class : public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); TelephonyManager telephonyManager =(TelephonyManager)getSystemService(TELEPHONY_SERVICE); telephonyManager.listen(phoneListener, PhoneStateListener.LISTEN_CALL_STATE); phoneListener.context=this; } --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Sending DTMF
This actually didn't work on the real device. The tones can be heard playing on the handset, but not at the destination end. Using STREAM_VOICE_CALL did sound logic, but it doesn't work, and in that case i don't understand the purpose of it. On Nov 6, 12:11 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, Did this actually work ? Did you try this on a real device ? (we dont have access to G1 devices here in Israel) TIA On Oct 5, 2:36 pm, legerb [EMAIL PROTECTED] wrote: I'm trying to send DTMF tones during outgoing call this way in my PhoneStateListener. Is this the right way to send DTMF - using the STREAM_VOICE_CALL. Also i want to send the DTMF sequence after the call is answered, so CALL_STATE_OFFHOOK doesn't seem to be right, what should be the appropriate state for sending? public void onCallStateChanged(int state, String incomingNumber) { // TODO Auto-generated method stub super.onCallStateChanged(state, incomingNumber); switch (state) { case TelephonyManager.CALL_STATE_OFFHOOK: ToneGenerator toneGenerator = new ToneGenerator(AudioManager.STREAM_VOICE_CALL, ToneGenerator.MAX_VOLUME1); toneGenerator.startTone(ToneGenerator.TONE_DTMF_1); toneGenerator.stopTone(); toneGenerator.startTone(ToneGenerator.TONE_DTMF_2); toneGenerator.stopTone(); break; } } On Oct 2, 11:02 am, legerb [EMAIL PROTECTED] wrote: Is it possible to make a call and then send DTMF sequence in android sdk 1.0? I've seen the ToneGenerator and PhoneNumberUtils classes, but couldn't find an option of sending DTMF... --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Fwd: Send DTMF
It seems that the phone dialer wouldn't send the '#' char. If the dtmf sequence contained pound char, everything following the '#', including, will be cut off. Bug? On Oct 5, 11:09 am, legerb [EMAIL PROTECTED] wrote: Joining this one. Is it possible to send DTMF during an ongoing call in SDK 1.0? The Phone.java was removed from the new SDK, and I couldn't find an equivalent to sendDTMF in other classes. -- Forwarded message -- From: Renato Mangini [EMAIL PROTECTED] Date: Jan 10, 9:36 pm Subject: Send DTMF To: Android Developers Alex, There is a method inandroid.telephony.Phone class (version m3-rc37a) tosendDTMF. ./android/telephony/Phone.java: public abstract void sendDtmf(char c); Since it is not documented, I'm not sure how stable or even usable it is. It seems that you have to use PhoneFactory methods (also undocumented) to get a Phone instance. PS: I haven't tested any of these. Please, report if it works. Renato Mangini. On Nov 22 2007, 2:55 am, Alex Zhilyakov [EMAIL PROTECTED] wrote: Hi, I am wondering if it is possible to make a call and then sendDTMF digits usingAndroidAPI. I can't find an appropriate method tosend digits inandroid.telephony.IPhone interface. Is it possible? -Alex --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Intent extras modified
I'm generating outgoing call using this: Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse(tel: 123456;1##)); 123456 - is the phone number i want to dial 1## - post dial DTMF sequence i'm trying to send. The problem is that somehow the chars next to '#' (including) are cut off somewhere. Because when I catch this intent and try to read the phone number: intent.getExtras().getString(Intent.EXTRA_PHONE_NUMBER) returns the cut off string - 123456;1 It's cruicial for me to send the '#' dtmf. Is this considered to be an ilegal character? Why should the extras be modified and where? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Intent extras modified
Thanks Mark :) this is what i was missing. On Nov 27, 2:18 pm, Mark Murphy [EMAIL PROTECTED] wrote: legerb wrote: I'm generating outgoing call using this: Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse(tel: 123456;1##)); 123456 - is the phone number i want to dial 1## - post dial DTMF sequence i'm trying to send. The problem is that somehow the chars next to '#' (including) are cut off somewhere. Because when I catch this intent and try to read the phone number: intent.getExtras().getString(Intent.EXTRA_PHONE_NUMBER) returns the cut off string - 123456;1 It's cruicial for me to send the '#' dtmf. Is this considered to be an ilegal character? W Have you tried URL-encoding the # sign? -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.4 Published! --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Fwd: Send DTMF
(may be it would be usefull to someone else) Apparently the # should be encoded. Also the sequence shouldn't end with # or you be getting invalid mmi code error. On Nov 27, 10:25 am, legerb [EMAIL PROTECTED] wrote: It seems that the phone dialer wouldn't send the '#' char. If the dtmf sequence contained pound char, everything following the '#', including, will be cut off. Bug? On Oct 5, 11:09 am, legerb [EMAIL PROTECTED] wrote: Joining this one. Is it possible to send DTMF during an ongoing call in SDK 1.0? The Phone.java was removed from the new SDK, and I couldn't find an equivalent to sendDTMF in other classes. -- Forwarded message -- From: Renato Mangini [EMAIL PROTECTED] Date: Jan 10, 9:36 pm Subject: Send DTMF To: Android Developers Alex, There is a method inandroid.telephony.Phone class (version m3-rc37a) tosendDTMF. ./android/telephony/Phone.java: public abstract void sendDtmf(char c); Since it is not documented, I'm not sure how stable or even usable it is. It seems that you have to use PhoneFactory methods (also undocumented) to get a Phone instance. PS: I haven't tested any of these. Please, report if it works. Renato Mangini. On Nov 22 2007, 2:55 am, Alex Zhilyakov [EMAIL PROTECTED] wrote: Hi, I am wondering if it is possible to make a call and then sendDTMF digits usingAndroidAPI. I can't find an appropriate method tosend digits inandroid.telephony.IPhone interface. Is it possible? -Alex --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Fwd: Send DTMF
Try something like this: ToneGenerator toneGenerator = new ToneGenerator (AudioManager.STREAM_VOICE_CALL, ToneGenerator.MAX_VOLUME1); toneGenerator.startTone(ToneGenerator.TONE_DTMF_1); On Nov 20, 10:53 pm, j [EMAIL PROTECTED] wrote: Yes Rimma's method works if the program wishes to playDTMFtones when the call connects. It also works if you replaced ; with ,. My further question is: How can an Android program play outgoingDTMF tones in the middle of a phone conversation? Is that possible? On Nov 9, 11:56 pm, Rimma Sukhovsky [EMAIL PROTECTED] wrote: Intent mIntent = new Intent(Intent.ACTION_CALL, Uri.parse(tel: + phoneNumber + ; + dtmfSequence)); On Thu, Nov 6, 2008 at 12:09 PM, [EMAIL PROTECTED] [EMAIL PROTECTED]wrote: Hi, How do you do this ? (adding theDTMFsequence to the dialed number) Thanks. On Oct 23, 4:13 pm, legerb [EMAIL PROTECTED] wrote: I'm adding theDTMFsequence to the dialed number. This seems to work, but when the call is established I'm getting a confirmation dialog asking Send the following tones?. Is it possible to prevent this dialog from being shown? May be some additional permissions? Though I didn't find any relevant... Or is there a way to detect the dialog on screen in order to simulate a key stroke? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: hanging up/terminating a call in an automated fashion
Oh sorry, I should've been more clear. I was talking about the ACTION_NEW_OUTGOING_CALL. Hanging up incoming call programmaticaly is currently impossible. As for the outgoing call - it can be terminated only when initiated, because only then we can catch the Intent. After that there seems to be no access to the call. There is also no heart-beat message sent out every so often to indicate an active call. PhoneStateListener is also not helpful in this matter, as it receives only state changes events. http://groups.google.com/group/android-developers/browse_frm/thread/41ae9a5fc8d17720?hl=en# On Oct 29, 10:30 pm, dreamerBoy [EMAIL PROTECTED] wrote: ...Interesting Thanks so much for the reply. Perhaps I have misunderstood but I have some questions about this approach. i) A Broadcast receiver is a passive entity. What would be the active entity that will be generating the Intent? Remember, my code is supposed to be the one to initiate end-of-call NOT a human user. Why would there be an event out there at any given moment waiting for my code to capture? Is there some kind of heart-beat message sent out every so often to indicate an active call? ii) Which Intent is the one of interest? I couldn't find anything that matches in the Standard Broadcast Actions of Google's android.content.Intent write-up page. You might be talking about the ACTION_NEW_OUTGOING_CALL broadcast. However, I don't want to prevent an outgoing call, I want to hang up a call that is already connected - whether the call originated from or is answered by the g-phone. Paul On Oct 29, 1:42 am, legerb [EMAIL PROTECTED] wrote: You can use a BroadcastReceiver to catch the Intent, and terminate it with abortBroadcast(). On Oct 27, 8:50 pm, dreamerBoy [EMAIL PROTECTED] wrote: Hi - I am looking for a way to terminate a call in anautomatedfashion. (I realize it can be done manually - the application requires that it have control over the call so that it can hang up automatically.) To initiate a call, one starts an Activity with the ACTION_CALL Intent. However, there does not appear to be any corresponding way to end it with a corresponding Intent, or using the Telephony or TelephonyManager interface/package. The only thing I can thing of is calling finish() on the Activity used to start the call - but that doesn't seem right at all. Can anyone shed light on this issue? Thanks much. Paul --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: how to listen callee hangup call event?
Could you also add that it would be most usefull to have events indicating that call was established, active call, dialing... On Oct 30, 2:04 am, Justin (Google Employee) [EMAIL PROTECTED] wrote: There's no way to do this. It seems like something others would be interested in, so I've passed this feedback on. Cheers, Justin Android Team @ Google On Oct 25, 11:14 pm, hex [EMAIL PROTECTED] wrote: Hi: Now ,I can use PhoneStateListener to listen some incoming call state event. here is the code: public void onCallStateChanged(int state, String incomingNumber) { Log.v(TAG, onCallStateChanged(), Incoming Number: + incomingNumber); super.onCallStateChanged(state, incomingNumber); switch (state) { // user hangup call case TelephonyManager.CALL_STATE_IDLE: Log.i(TAG, CALL_STATE_IDLE); break; case TelephonyManager.CALL_STATE_OFFHOOK: // user pickup call Log.i(TAG, CALL_STATE_OFFHOOK); break; case TelephonyManager.CALL_STATE_RINGING: // imcoming call Log.i(TAG, CALL_STATE_RINGING); break; default: Log.w(TAG, unknown call state: + state); } } As you know ,TelephonyManager.CALL_STATE_IDLE can deal with hangup event, but I do not know who hangs up the call, the callee? the caller? ,so,can anyone give me some message about this? thanks in advance. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: hanging up/terminating a call in an automated fashion
You can use a BroadcastReceiver to catch the Intent, and terminate it with abortBroadcast(). On Oct 27, 8:50 pm, dreamerBoy [EMAIL PROTECTED] wrote: Hi - I am looking for a way to terminate a call in an automated fashion. (I realize it can be done manually - the application requires that it have control over the call so that it can hang up automatically.) To initiate a call, one starts an Activity with the ACTION_CALL Intent. However, there does not appear to be any corresponding way to end it with a corresponding Intent, or using the Telephony or TelephonyManager interface/package. The only thing I can thing of is calling finish() on the Activity used to start the call - but that doesn't seem right at all. Can anyone shed light on this issue? Thanks much. Paul --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: PhoneCall Controls
What about call events like dialing state, active state, would they become public in the SDK? There is a need to have more call information, rather than just ofhook, ringing and idle. On Oct 24, 10:00 pm, Justin (Google Employee) [EMAIL PROTECTED] wrote: No, there will no ability to intercept or otherwise control phone calls in the SDK. There are clearly many security concerns to be addressed around this. I don't understand what your question is related to setting orientation. What are you trying to do? Cheers, Justin Android Team @ Google On Oct 20, 8:57 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Looking for an update as to whether the SDK will include any phone call control soon. Hoping to write several app to handle phone calls specifically based on phone number (white list,black list) Everything is written except the ability to handle the incoming call in some way other than the standard ringer kicking off. To me this seems like basic functionality that should be in the SDK. Secondly Please open up the Surface.setOrientation code to the public, have written and automatic orientation code but because there is no perms to FLINGER cannot get it to function. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Fwd: Send DTMF
I'm adding the DTMF sequence to the dialed number. This seems to work, but when the call is established I'm getting a confirmation dialog asking Send the following tones?. Is it possible to prevent this dialog from being shown? May be some additional permissions? Though I didn't find any relevant... Or is there a way to detect the dialog on screen in order to simulate a key stroke? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to distinguish between dialing and active call states?
Anyone with some Telephony layer knowledge? On Oct 5, 1:34 pm, legerb [EMAIL PROTECTED] wrote: I would like to catch the moment when an outgoing dialing call becomes active, that is accepted at the other side. according to the documentation the CALL_STATE_OFFHOOK : Device call state: Off-hook. At least one call exists that is dialing, active, or on hold, and no calls are ringing or waiting. Makes no separation between the dialing and the active call states. Is there any other way to distinguish between those states? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Program Finished - Now What?
Use keytool and jarsigner, they come with the jdk. http://java.sun.com/j2se/1.3/docs/tooldocs/win32/keytool.html http://java.sun.com/j2se/1.3/docs/tooldocs/win32/jarsigner.html eventually this is what worked for me: keytool -genkey -keystore refArchive/myKeyStore -alias somealias jarsigner -keystore refArchive/myKeyStore -signedjar refArchive/ testapks.apk refArchive/testapk.apk somealias On Oct 14, 2:48 pm, Ewan Grantham [EMAIL PROTECTED] wrote: OK, appreciate the suggestions on how to list in alternate marketplaces. The one thing stopping me, is that what I was also looking for was a decent step-by-step on how to sign my app. I gather I can change a setting in Eclipse to do the release build, but then I still need to do something with keysign. Can anyone explain that part of the process, please? Thanks! --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] XML through SAX - for local files in res/ --- NOT for data/data/.../files and no XmlPullParser
I'm also having IO exceptions when trying to parse the raw ersources: I have a BroadCastReceiver, where: public void onReceive(Context context, Intent intent) { SAXParserFactory spf = SAXParserFactory.newInstance(); try { SAXParser sp = spf.newSAXParser(); XMLReader xr = sp.getXMLReader(); XMLHandler xmlHandler = new XMLHandler(); xr.setContentHandler(xmlHandler); xr.parse(new InputSource(context.getResources().getString(R.raw.demo_config))); } catch (Exception e) { Log.v(--, e.toString()); } } This line: xr.parse(new InputSource(context.getResources().getString(R.raw.demo_config))); gives me java.io.IOException: Couldn't open res/raw/demo_config.xml I've also tried: //xr.parse(new InputSource(context.getResources().openRawResource(R.raw.demo_config))); which gave me the same result. Any ideas why the io exception? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: repackaging .apk
Great! Thanks :) Just what I needed. On Oct 12, 8:07 pm, hackbod [EMAIL PROTECTED] wrote: An .apk is really just a zip file, so you can manipulate it with standard tools. Note that you will also need to re-sign any .apk you generate. On Oct 12, 7:57 am, legerb [EMAIL PROTECTED] wrote: Is it possible to repackage an existing .apk file? I would like to give each user that will download my app a unique user id, which would be stored in a properties file inside the .apk. Is it possible to unzip/extract the existing apk on my server, replace the properties file, and then zip it back, without compiling a new .apk? (I prefer to avoid getting the id through httprequest) --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Fwd: Send DTMF
Joining this one. Is it possible to send DTMF during an ongoing call in SDK 1.0? The Phone.java was removed from the new SDK, and I couldn't find an equivalent to sendDTMF in other classes. -- Forwarded message -- From: Renato Mangini [EMAIL PROTECTED] Date: Jan 10, 9:36 pm Subject: Send DTMF To: Android Developers Alex, There is a method inandroid.telephony.Phone class (version m3-rc37a) tosendDTMF. ./android/telephony/Phone.java: public abstract void sendDtmf(char c); Since it is not documented, I'm not sure how stable or even usable it is. It seems that you have to use PhoneFactory methods (also undocumented) to get a Phone instance. PS: I haven't tested any of these. Please, report if it works. Renato Mangini. On Nov 22 2007, 2:55 am, Alex Zhilyakov [EMAIL PROTECTED] wrote: Hi, I am wondering if it is possible to make a call and then sendDTMF digits usingAndroidAPI. I can't find an appropriate method tosend digits inandroid.telephony.IPhone interface. Is it possible? -Alex --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to distinguish between dialing and active call states?
I would like to catch the moment when an outgoing dialing call becomes active, that is accepted at the other side. according to the documentation the CALL_STATE_OFFHOOK : Device call state: Off-hook. At least one call exists that is dialing, active, or on hold, and no calls are ringing or waiting. Makes no separation between the dialing and the active call states. Is there any other way to distinguish between those states? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Intercept incoming call
Is this the same for outgoing calls? They also cannot be interecepted in 1.0? If so, what is the purpose of ACTION_NEW_OUTGOING_CALL? this is from the documentation: It is perfectly acceptable for multiple receivers to process the outgoing call in turn: for example, a parental control application might verify that the user is authorized to place the call at that time, then a number-rewriting application might add an area code if one was not specified. For consistency, any receiver whose purpose is to prohibit phone calls should have a priority of 0, to ensure it will see the final phone number to be dialed. Any receiver whose purpose is to rewrite phone numbers to be called should have a positive priority. Negative priorities are reserved for the system for this broadcast; using them may cause problems. If i understand correctly, the outgoing call can be ended, and we can also get the dialed number from the Intent's info. Is this correct? On Oct 1, 7:52 pm, hackbod [EMAIL PROTECTED] wrote: Sorry, intercepting incoming calls is not supported in 1.0. On Oct 1, 9:20 am, Trey Ethridge [EMAIL PROTECTED] wrote: I'd like to expand the logic of when to send a call directly to voicemail. I believe that there would need to be a hook somewhere to intercept the incoming call and determine whether or not to accept it. An example use case would be to prevent drunk dialing. There could be a setting in Android that would allow the user to set the device to send all calls to voicemail if the the caller is not in the family contact list and it is between 11:00 PM and 7:00 AM. We have a checkbox to allow users to send all calls to voicemail from a given contact, so I don't see why this should be a problem. Is this going to be possible? -- Trey On Sep 27, 4:27 pm, Eric B [EMAIL PROTECTED] wrote: One of the best apps I've every bought for my Treo 600/650 is an app that lets you assign specific ring tones (really mp3 files) to specific contacts or groups of contacts. I especially like the ability to turn off the ringer and vibrator for calls with no caller id. I don't think this kind of app would be possible without being able tointerceptacall. Thanks, Eric- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Sending DTMF
Is it possible to make a call and then send DTMF sequence in android sdk 1.0? I've seen the ToneGenerator and PhoneNumberUtils classes, but couldn't find an option of sending DTMF... --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: BroadCastReceiver with PhoneStateListener
I changed the xml accordingly, and it worked :) On Sep 27, 2:53 am, Nayr [EMAIL PROTECTED] wrote: Hi, Did you describe the StartServicesAtStartUp in your AndroidManifest.xml? for example, receiver android:name=.transaction.MmsSystemEventReceiver intent-filter action android:name=android.intent.action.BOOT_COMPLETED / /intent-filter /receiver And you should request user-permission android.permission.RECEIVE_BOOT_COMPLETED like uses-permission android:name=android.permission.RECEIVE_BOOT_COMPLETED / in the AndroidManifest.xml. Cheers, Nayr On Sep 27, 9:01 am, chouman82 [EMAIL PROTECTED] wrote: I am trying to register the PhoneStateListener right when the phone boots up so I have 2 classes. One is StartAtStartUp which extends BroadcastReceiver that listens for the COMPLETE_BOOT_UP and then this will then register the CallStateListener which extends PhoneStateListener. It doesn't seem to work out all that well. I am not seeing any logging statements that I have put in CallStateListener. Any help would be greatly appreciated!!! Here is my code: import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.telephony.PhoneStateListener; import android.telephony.TelephonyManager; import android.util.Log; import com.lumitrend.netlogger.Logger; public class StartServicesAtStartUp extends BroadcastReceiver { public void onReceive(Context context, Intent intent) { Log.d(DEBUG, ) ; //Intent phoneStateListener = new Intent(context, CallStateListener.class); //phoneStateListener.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); //context.startService(phoneStateListener); Log.d(DEBUG, context.getPackageName()); Log.d(DEBUG, context.toString()); TelephonyManager tManager = (TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE); CallStateListener callStateListener = new CallStateListener(); tManager.listen(callStateListener, PhoneStateListener.LISTEN_CALL_STATE); } } ~~~ import android.telephony.PhoneStateListener; import android.telephony.TelephonyManager; import android.util.Log; import com.lumitrend.netlogger.Logger; public class CallStateListener extends PhoneStateListener { public void onCallStateChanged(int state, String incomingNumber) { Log.d(DEBUG, addding this here); super.onCallStateChanged(state, incomingNumber); Log.d(DEBUG, TelephonyManager.CALL_STATE_OFFHOOK + we are def in here: + state); switch(state) { case TelephonyManager.CALL_STATE_IDLE: Log.d(DEBUG, phhhone is idle); break; case TelephonyManager.CALL_STATE_OFFHOOK: Log.d(DEBUG, phoon is off hook); break; case TelephonyManager.CALL_STATE_RINGING: Log.d(DEBUG, phoonnnee is ringing); break; default: Log.d(DEBUG, The staate is + state); } } }- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Hanging up outgoing calls.
Is there a way to hang up an outgoing call? May be some sort of equivalent to ACTION_DIAL or ACTION_CALL? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Ending a call
Hi anu, I'm facing the same problem. Did you manage to find a solution? Also, could you elaborate a little on how you simulate an outgoing call? On Sep 18, 7:06 am, anu [EMAIL PROTECTED] wrote: I do not want to end the call manually. I need to code it in the same way as I code in the call origination. In m5, there were APIs to both call and endCall. Similarly, I used the intentACTION_CALLand ACTION_DIAL to start the call. But, I need to end the call after some delay. Is it possible in SDK 0.9 beta version. Thanks, Anuradha Madhavan On Sep 17, 8:27 pm, Charlie Collins [EMAIL PROTECTED] wrote: End the call by pressing the end call button so that the Activities in the dialer app can end the call. I am not sure I understand the question, but you don't want to end a call manually, intentionally (users expect a call to work like a call, which they end when they want to). http://groups.google.com/group/android-developers/browse_thread/threa... On Sep 17, 5:11 am, anu [EMAIL PROTECTED] wrote: I have successfully simulated an outgoingcall(thanks to google forums and the contributors). However, when I try toendthecallby calling finish() or finishActivity(int), thecalldoes notend. Also, I get a lot of crashes and the TelephoneManager's getCallState() API does not return anything. Please help! Thanks! Anuradha Madhavan- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Ending a call
Hi anu, I'm facing the same problem. Did you manage to find a solution? Also, could you elaborate a little on how you simulate an outgoing call? On Sep 18, 7:06 am, anu [EMAIL PROTECTED] wrote: I do not want to end the call manually. I need to code it in the same way as I code in the call origination. In m5, there were APIs to both call and endCall. Similarly, I used the intentACTION_CALLand ACTION_DIAL to start the call. But, I need to end the call after some delay. Is it possible in SDK 0.9 beta version. Thanks, Anuradha Madhavan On Sep 17, 8:27 pm, Charlie Collins [EMAIL PROTECTED] wrote: End the call by pressing the end call button so that the Activities in the dialer app can end the call. I am not sure I understand the question, but you don't want to end a call manually, intentionally (users expect a call to work like a call, which they end when they want to). http://groups.google.com/group/android-developers/browse_thread/threa... On Sep 17, 5:11 am, anu [EMAIL PROTECTED] wrote: I have successfully simulated an outgoingcall(thanks to google forums and the contributors). However, when I try toendthecallby calling finish() or finishActivity(int), thecalldoes notend. Also, I get a lot of crashes and the TelephoneManager's getCallState() API does not return anything. Please help! Thanks! Anuradha Madhavan- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Ending a call
Hi anu, I'm facing the same problem. Did you manage to find a solution? Also, could you elaborate a little on how you simulate an outgoing call? On Sep 18, 7:06 am, anu [EMAIL PROTECTED] wrote: I do not want to end the call manually. I need to code it in the same way as I code in the call origination. In m5, there were APIs to both call and endCall. Similarly, I used the intentACTION_CALLand ACTION_DIAL to start the call. But, I need to end the call after some delay. Is it possible in SDK 0.9 beta version. Thanks, Anuradha Madhavan On Sep 17, 8:27 pm, Charlie Collins [EMAIL PROTECTED] wrote: End the call by pressing the end call button so that the Activities in the dialer app can end the call. I am not sure I understand the question, but you don't want to end a call manually, intentionally (users expect a call to work like a call, which they end when they want to). http://groups.google.com/group/android-developers/browse_thread/threa... On Sep 17, 5:11 am, anu [EMAIL PROTECTED] wrote: I have successfully simulated an outgoingcall(thanks to google forums and the contributors). However, when I try toendthecallby calling finish() or finishActivity(int), thecalldoes notend. Also, I get a lot of crashes and the TelephoneManager's getCallState() API does not return anything. Please help! Thanks! Anuradha Madhavan- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Intercept incoming call
How about: ACTION_NEW_OUTGOING_CALL? According to SDK documentation it gives the possibility to intercept the call. Has anyone tried to use it? On Sep 17, 9:41 pm, friedger [EMAIL PROTECTED] wrote: I could imagine an application that accepts acallwhen the user presses a button like I am rushing out of the meeting, hang on another second. Instead of me wispering into the phone, the caller gets a proper response. So there is no way to do that, currently? Friedger On 17 Sep., 20:22, kstamm [EMAIL PROTECTED] wrote: Now now, we were told the Android was the first open source phone all the way down to the hardware. I expectcallreception capability! It's the only thing that sets it apart from other smartphones. On Sep 17, 10:35 am, Charlie Collins [EMAIL PROTECTED] wrote: I would disagree with the statement that this should be possible. User's expect acallto work like acallwhich works like acalland that would be sort of like acall;). I think the idea is that certain key functions of the phone - calling, and going to the home screen - usurp other functions. All non built-in key functions, e.g. applications, are still equal, but yes a few key functions have a higher priority - by design (and I think a good design, it would get really confusing for users if every app was allowed to intercept calls and do different things with them, IMO). On Sep 17, 3:45 am, Tauno T [EMAIL PROTECTED] wrote: I wonder if this will be possible on real devices? It should be according to the All applications are equal statement but has anyone further info regarding this? On Sep 17, 8:01 am, Megha Joshi [EMAIL PROTECTED] wrote: Unfortunately, you cannot intercept incoming calls in the sdk. 2008/9/16 sectrean [EMAIL PROTECTED] Hi, I'm trying to figure out how to intercept an incomingcall, but I'm not able to find much documentation on how I would do this. I would like to be able to display a custom dialog to accept or reject thecall.- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---