[android-developers] Re: Unable to detect phone call/dial capabilities on tablet

2011-04-07 Thread ole!
Appreciate the answer Mark...
Thanks..

I wonder if anyone knows how to get in touch with developers who
ported Android to Galaxy tablet?
It seems to me that if the dialer/caller intents do nothing that they
should throw an exception that could be caught downstream.



On Apr 3, 11:45 am, Mark Murphy mmur...@commonsware.com wrote:
 Long term, for most tablets, android.hardware.telephony with
 uses-feature or hasSystemFeature() on PackageManager should work.

 Some Android 2.x tablets, like the Galaxy Tab, may claim to have
 telephony even if they do not have a dialer, in order to qualify for
 the Android Market. Short of using android.os.Build to identify these
 by manufacturer and model, I do not know how else you can tell.





 On Sun, Apr 3, 2011 at 1:34 PM, ole! olub...@gmail.com wrote:
  I have not been able todetectwhether a dialer executes correctly on
  a tablet.
  The ACTION_CALL intent does nothing.
  The problem arises on the T-Mobile Galaxy, but I suspect other tablets
  have the same problem.

  What I have tried:
  1. catching an exception from start_activity using the ACTION_CALL
  intent (no exception generated)
  2. TelephonyManager.getPhoneType() returns a valid state (GSM)
  3. TelephonyManager.getCallState() return a valid state (IDLE)

  Any ideas?

  --
  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

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

 _Android Programming Tutorials_ Version 3.3 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: Unable to detect phone call/dial capabilities on tablet

2011-04-07 Thread Zsolt Vasvari
Isn'r there a resolveIntent() or something like that where you can see
if the Intent will sucessfully execute?

-- 
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


Re: [android-developers] Re: Unable to detect phone call/dial capabilities on tablet

2011-04-07 Thread Mark Murphy
On Thu, Apr 7, 2011 at 7:42 PM, Zsolt Vasvari zvasv...@gmail.com wrote:
 Isn'r there a resolveIntent() or something like that where you can see
 if the Intent will sucessfully execute?

The problem is that on the Galaxy Tab, it *does* execute, just to a
do-nothing activity of some form.

Ideally, something on the Galaxy Tab would be a more feature-based
identifier that we really can't place phone calls. As it stands,
AFAIK, we're left with checking manufacturer and model via Build and
routing around the problem, which stinks.

Fortunately, I suspect that there will be relatively few tablets
taking the Galaxy Tab approach, since Honeycomb supports the Android
Market on non-phones.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

-- 
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