[android-developers] How do I show a call screen when my VoIP application is on background?
I'm working on an application that uses VoIP and I need to force the call screen on the foreground when the phone receives a call, just like a regular phone call. I know this is generally a bad thing to do, but this feature was requested by the customer and the application won't be publicly available. I know this is possible, but I couldn't get it done. Any ideas? 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Infrared support on Android
Hello, I have a customer interested in infrared communication (IrDA) between android and other devices, more specifically with the Motorola tablet MZ608. I noticed the tablets MZ608 and MZ616 are both equipped with IR Blaster, but the specification of the model MZ608 does not mention infrared support, while the specification of the model MZ616 explicitly mentions infrared support. I contacted Motorola support and they said this isn't supported by neither of them, only the remote control function is supported. That was unexpected, to say the least. I can understand if the MZ608 doesn't support IrDA, after all the specification only mentions the IR Blaster, but what about the MZ616? It would be nice to be able to use a Motorola tablet, after all, it was my customer's first pick, but unless the Motorola support got it wrong, we'll have to use another device - which (finally) leads to my question: Has anyone here ever developed an application that uses infrared communication on any Android device? Which one? How did you get access to the manufacturer's API for infrared communication? Thanks in advance, Fabio. -- -- 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: access dual gsm interfaces
I'm also interested in this feature, is there a way to detect how many gsm interfaces the phone has, and retrieve information from all of them? Maybe there's a way to change the gsm interface from which the TelephonyManager retrieves info. Thanks in advance. Fabio. On Saturday, November 19, 2011 11:00:35 PM UTC-2, Cocoro Cara wrote: Does Android 2.3.4 support dual gsm interfaces in a phone? What will be required to implement something like this? Software-wise? Can you point me to some documentation? We want to be able to select which GSM interface to make a particular call. Moreover, display the status of the signal strength for each interface in the notification area. Thnx. Any and all help will be appreciated. CC -- 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] TelephonyManager.getNetworkOperator() returning different values under same circumstances
Hello. We sent a beta version of our library to one of our costumers to test his application. During their tests a StringIndexOutOfBoundsException was thrown by our method because the method TelephonyManager.getNetworkOperator() returned an empty string instead of null when his phone has no sim card. What bothers me is that only happened when our method was called for the 4th time - apparently getNetworkOperator returned null on the first 3 calls. Have anyone seen this before? Am I missing something? -- 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: Controlling radio devices.
Anything I can use instead of BluetoothAdapter with API level 4? On Feb 9, 2:06 pm, flsobral flsob...@gmail.com wrote: Oh crap, I just noticed BluetoothAdapater is API level 5. What can I use with API level 4? On Feb 9, 12:33 pm, flsobral flsob...@gmail.com wrote: Hello. I'm looking for a way to enable, disable and return the status of a radio device, which may be the cell phone, bluetooth or wifi. To check if the radio is supported on device, I'm using the following for phone: ConnectivityManager.isNetworkTypeValid(ConnectivityManager.TYPE_MOBILE); for wifi: ConnectivityManager.isNetworkTypeValid(ConnectivityManager.TYPE_WIFI); How do I check if the device supports Bluetooth? I'm using BluetoothAdapater and WifiManager to control these devices, but I haven't found a way to control the cell phone. How can I check the phone current status and enable or disable it? 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Controlling radio devices.
Hello. I'm looking for a way to enable, disable and return the status of a radio device, which may be the cell phone, bluetooth or wifi. To check if the radio is supported on device, I'm using the following for phone: ConnectivityManager.isNetworkTypeValid(ConnectivityManager.TYPE_MOBILE); for wifi: ConnectivityManager.isNetworkTypeValid(ConnectivityManager.TYPE_WIFI); How do I check if the device supports Bluetooth? I'm using BluetoothAdapater and WifiManager to control these devices, but I haven't found a way to control the cell phone. How can I check the phone current status and enable or disable it? 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Controlling radio devices.
Oh crap, I just noticed BluetoothAdapater is API level 5. What can I use with API level 4? On Feb 9, 12:33 pm, flsobral flsob...@gmail.com wrote: Hello. I'm looking for a way to enable, disable and return the status of a radio device, which may be the cell phone, bluetooth or wifi. To check if the radio is supported on device, I'm using the following for phone: ConnectivityManager.isNetworkTypeValid(ConnectivityManager.TYPE_MOBILE); for wifi: ConnectivityManager.isNetworkTypeValid(ConnectivityManager.TYPE_WIFI); How do I check if the device supports Bluetooth? I'm using BluetoothAdapater and WifiManager to control these devices, but I haven't found a way to control the cell phone. How can I check the phone current status and enable or disable it? 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: moving the softkeyboard from place
AFAIK this is possible if you create your own IM, by extending the class InputMethodService and overriding the method onEvaluateFullscreenMode() to always return true. I wasn't able to do it myself though, my IM was freezing the application. On Feb 6, 4:06 pm, Mark Murphy mmur...@commonsware.com wrote: guich wrote: Thanks. Do you know how to *programatically* force the inputmethod to be shown in fullscreen? I don't see an option to do that in InputMethodManager -- you can find out if it is fullscreen, but you can't force it. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.9 Available! -- 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: Move the virtual keyboard to the top of the screen (SIP - IME)
Still stuck with this problem. Any tips? On Feb 2, 12:02 pm, flsobral flsob...@gmail.com wrote: It would also be helpful to make the virtual keyboard always be shown in fullscreen. I tried to extend the class InputMethodService overriding onEvaluateFullscreenMode to always return true, but I had the following problems: - My application UI is still shown above the keyboard, even after setting the attribute android:imeFullscreenBackground. - Selecting another control other than the one that activated the keyboard makes the application hang. - Couldn't find a way to show the keyboard with the Done button instead of enter. On Feb 2, 9:16 am, flsobral flsob...@gmail.com wrote: Hello. I'm looking for a way to move the virtual keyboard to the top of the screen, rather than the bottom. Is it possible? Thanks in advance. Fabio. -- 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] Move the virtual keyboard to the top of the screen (SIP - IME)
Hello. I'm looking for a way to move the virtual keyboard to the top of the screen, rather than the bottom. Is it possible? Thanks in advance. Fabio. -- 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: Move the virtual keyboard to the top of the screen (SIP - IME)
It would also be helpful to make the virtual keyboard always be shown in fullscreen. I tried to extend the class InputMethodService overriding onEvaluateFullscreenMode to always return true, but I had the following problems: - My application UI is still shown above the keyboard, even after setting the attribute android:imeFullscreenBackground. - Selecting another control other than the one that activated the keyboard makes the application hang. - Couldn't find a way to show the keyboard with the Done button instead of enter. On Feb 2, 9:16 am, flsobral flsob...@gmail.com wrote: Hello. I'm looking for a way to move the virtual keyboard to the top of the screen, rather than the bottom. Is it possible? Thanks in advance. Fabio. -- 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: ANDROID_ID always null on devices
Like I said, although it shouldn't make any difference if I'm using the fully qualified path or not, I did try your suggestion and it still gave me null. I'm not questioning your program, I'm asking for help with my particular case. There are lots of examples on this subject that use the exact same code, I even downloaded a project of an application that should do the same, but I still got nothing. I know this code should work, and as far as I know nothing else is needed to use it (like permissions and such), but it just doesn't work on both devices I have. On Jan 28, 7:58 pm, Wayne Wenthin wa...@fuligin.com wrote: And my point is that you are not using the fully qualified path to the ANDROID_ID. I KNOW my function works. That part is only there for use on the emulator. Otherwise I would have many people complaining. Feel free to use it or not. I was just trying to help. I saw a flaw in your design and offered another solution that works. On Thu, Jan 28, 2010 at 1:03 PM, flsobral flsob...@gmail.com wrote: Still, if I use your function I'll get the same string from different devices of the same model. Eg: All users using Google Ion will return this string: + google_ion + a23456790112345b It also doesn't matter if I use the class full name or not - and it really shouldn't, but I tried it anyway and still received null. As I said before, I can use Settings.System and Settings.Secure to retrieve any value, except for the ANDROID_ID that always comes null. On Jan 28, 6:15 pm, Wayne Wenthin wa...@fuligin.com wrote: It returns a unique string based on both the android.provider.Settings.Secure.ANDROID_ID and the android.os.Build.PRODUCT along with a unique code for my app (just incase I want to build another) I am pretty sure the issue stated above is a result of not using the full android.provider.Setting.Secure.ANDROID_ID and instead relying on just this: Secure.ANDROID_ID . This is probably why it is returning NULL but I'm not positive. I do know that my analytics is showing session both from the HTC Magic even labeled as the ION and the Milestone along with quite a few others. Granted I'm not seeing alot of traffic an the ION. On Thu, Jan 28, 2010 at 9:31 AM, theSmith chris.smith...@gmail.com wrote: On Jan 28, 11:34 am, Wayne Wenthin wa...@fuligin.com wrote: I have a function for this since I munge up the android id and I need an androidid for the emulator so I make one up. Hope this helps. public String getandroidid() { String AndroidID = System.getString(this.getContentResolver(), android.provider.Settings.Secure.ANDROID_ID); if (AndroidID == null) AndroidID = a23456790112345b; String Android_ID = + android.os.Build.PRODUCT + AndroidID; return Android_ID; Wouldn't this just return the same String on multiple devices? Which defeats the purpose because the Android_Id is supposed to be unique. Also there is no reason that this shouldn't be working on those devices, can anyone confirm this on those devices? -theSmith } On Thu, Jan 28, 2010 at 6:14 AM, flsobral flsob...@gmail.com wrote: Hello. I'm trying to get the ANDROID_ID on two different devices but it always return null on both. I'm using a Google Ion (aka HTC Magic) with firmware 1.6 and a Motorola Milestone with firmware 2.0. I've been using this small sample to show the id, but it always shows null: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Toast.makeText(this, ANDROID_ID: + Secure.getString (getContentResolver(), Secure.ANDROID_ID), Toast.LENGTH_LONG).show(); } Any suggestions? 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 android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.comandroid-developers%252Bu nsubscr...@googlegroups.comandroid-developers%252Bu nsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Writing code is one of few things that teaches me I don't know everything. Join the Closed Beta of Call Girl Managerhttp:// www.fuligin.com/forums -- 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
[android-developers] Re: ANDROID_ID always null on devices
I was hoping I was missing a permission or something like that. We haven't touched the firmware or the system database, in fact the Motorola device is brand new, it came to my desk still closed in his box. Is there any way to reset to the factory settings and restore everything? I'll see if I can find an app from the market to test. On Jan 29, 11:04 am, Mark Murphy mmur...@commonsware.com wrote: Like I said, although it shouldn't make any difference if I'm using the fully qualified path or not, I did try your suggestion and it still gave me null. I'm not questioning your program, I'm asking for help with my particular case. There are lots of examples on this subject that use the exact same code, I even downloaded a project of an application that should do the same, but I still got nothing. I know this code should work, and as far as I know nothing else is needed to use it (like permissions and such), but it just doesn't work on both devices I have. It's not quite clear how you are expecting us to help, though. If the code the rest of us use successfully does not work for you, it's incumbent upon *you* to figure out what is different between your environment and what we're all using. For example, perhaps your devices are rooted or have otherwise undergone a firmware replacement. In that case, ANDROID_ID may have gotten whacked, since that's stored in a system SQLite database AFAICT, and may not be maintained across a rooting operation or firmware replacement. Unfortunately, I'm not aware of any place in the Settings app or anywhere that you can see the ANDROID_ID value without code, to see if that is the source of your difficulty. Perhaps you can find a pre-compiled app on the Market that will report that information. -- Mark Murphy (a Commons Guy)http://commonsware.com Android App Developer Books:http://commonsware.com/books.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: ANDROID_ID always null on devices
I found two apps on the Market that show the ANDROID_ID, and both show the same value. Looks like there's something wrong with the app compilation maybe? On Jan 29, 11:44 am, Mark Murphy mmur...@commonsware.com wrote: I was hoping I was missing a permission or something like that. I am not aware of a permission needed for ANDROID_ID. If you wanted the IMSI or IMEI, those would need a permission. We haven't touched the firmware or the system database, in fact the Motorola device is brand new, it came to my desk still closed in his box. Is there any way to reset to the factory settings and restore everything? Probably, but I suspect that's a device-specific process. -- Mark Murphy (a Commons Guy)http://commonsware.com Android App Developer Books:http://commonsware.com/books.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] ANDROID_ID always null on devices
Hello. I'm trying to get the ANDROID_ID on two different devices but it always return null on both. I'm using a Google Ion (aka HTC Magic) with firmware 1.6 and a Motorola Milestone with firmware 2.0. I've been using this small sample to show the id, but it always shows null: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Toast.makeText(this, ANDROID_ID: + Secure.getString (getContentResolver(), Secure.ANDROID_ID), Toast.LENGTH_LONG).show(); } Any suggestions? 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: ANDROID_ID always null on devices
Yes, I'm aware of that. In fact any value I try to retrieve from Settings.System and Settings.Secure on emulator is null (like DATE_FORMAT). I'm testing on the two devices previously mentioned, and although I can use the same method to get any other property value, it always return null when I ask for ANDROID_ID. On Jan 28, 1:41 pm, jotobjects jotobje...@gmail.com wrote: The emulator always returns null. On Jan 28, 6:14 am, flsobral flsob...@gmail.com wrote: Hello. I'm trying to get the ANDROID_ID on two different devices but it always return null on both. I'm using a Google Ion (aka HTC Magic) with firmware 1.6 and a Motorola Milestone with firmware 2.0. I've been using this small sample to show the id, but it always shows null: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Toast.makeText(this, ANDROID_ID: + Secure.getString (getContentResolver(), Secure.ANDROID_ID), Toast.LENGTH_LONG).show(); } Any suggestions? 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: ANDROID_ID always null on devices
Still, if I use your function I'll get the same string from different devices of the same model. Eg: All users using Google Ion will return this string: + google_ion + a23456790112345b It also doesn't matter if I use the class full name or not - and it really shouldn't, but I tried it anyway and still received null. As I said before, I can use Settings.System and Settings.Secure to retrieve any value, except for the ANDROID_ID that always comes null. On Jan 28, 6:15 pm, Wayne Wenthin wa...@fuligin.com wrote: It returns a unique string based on both the android.provider.Settings.Secure.ANDROID_ID and the android.os.Build.PRODUCT along with a unique code for my app (just incase I want to build another) I am pretty sure the issue stated above is a result of not using the full android.provider.Setting.Secure.ANDROID_ID and instead relying on just this: Secure.ANDROID_ID . This is probably why it is returning NULL but I'm not positive. I do know that my analytics is showing session both from the HTC Magic even labeled as the ION and the Milestone along with quite a few others. Granted I'm not seeing alot of traffic an the ION. On Thu, Jan 28, 2010 at 9:31 AM, theSmith chris.smith...@gmail.com wrote: On Jan 28, 11:34 am, Wayne Wenthin wa...@fuligin.com wrote: I have a function for this since I munge up the android id and I need an androidid for the emulator so I make one up. Hope this helps. public String getandroidid() { String AndroidID = System.getString(this.getContentResolver(), android.provider.Settings.Secure.ANDROID_ID); if (AndroidID == null) AndroidID = a23456790112345b; String Android_ID = + android.os.Build.PRODUCT + AndroidID; return Android_ID; Wouldn't this just return the same String on multiple devices? Which defeats the purpose because the Android_Id is supposed to be unique. Also there is no reason that this shouldn't be working on those devices, can anyone confirm this on those devices? -theSmith } On Thu, Jan 28, 2010 at 6:14 AM, flsobral flsob...@gmail.com wrote: Hello. I'm trying to get the ANDROID_ID on two different devices but it always return null on both. I'm using a Google Ion (aka HTC Magic) with firmware 1.6 and a Motorola Milestone with firmware 2.0. I've been using this small sample to show the id, but it always shows null: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Toast.makeText(this, ANDROID_ID: + Secure.getString (getContentResolver(), Secure.ANDROID_ID), Toast.LENGTH_LONG).show(); } Any suggestions? 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 android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.comandroid-developers%252Bu nsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Writing code is one of few things that teaches me I don't know everything. Join the Closed Beta of Call Girl Managerhttp://www.fuligin.com/forums -- 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.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Writing code is one of few things that teaches me I don't know everything. Join the Closed Beta of Call Girl Managerhttp://www.fuligin.com/forums -- 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