I have several applications that use the Intent and have the
permission specified, they work fine.  Putting that permission as a
child of manifest, as you stated you did, works for me.

. . .
<uses-permission android:name="android.permission.CALL_PHONE" />
</manifest>

As to why I recommended one or the other (I did mention both), the
IPhone interface is more difficult to use in my opinion, that's all,
opinion.
Intents are trivial, in this case requires far less code to use an
Intent, and nothing need be hard coded at all:

Intent intent = new Intent(Intent.DIAL_ACTION, Uri.parse("tel:" +
NUMBER));
startActivity(intent);

IPhone can be handy, but to use it you need to make an IPC call to set
it up, and handle DeadObjectException and so on, certainly not as easy
as just using the built-in Intent (IMO).


On May 16, 12:33 pm, Raja Nagendra Kumar <[EMAIL PROTECTED]>
wrote:
> Thanks murphy.. I am now able to call in both the modes using intent
> and also iphone interface.
>
> Charlie Collins, could you pl let me know why you did not recommend
> IPhone approach as this is seems to be simple api call as opposed to
> intent apporach..
>
> Also, not getting the difference between dial and call methods. i.e
> which one to be used when..
>
> Regards,
> Nagendra
--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to