Hi Michelle,
Yes,you need to put this code into an activity class.
Also,you need to set permission in your manifest file.
<uses-permission android:name="android.permission.CALL_PHONE" />
...
On Wed, Jul 29, 2009 at 6:00 PM, Michelle Silva <[email protected]> wrote:
> Hi Sudeep,
>
> thak you for your help, but how I said i'm beginner and there are
> things that i can't understand yet:
> 1- Do I put this code inside an activity class ?
> 2 - What is Uri that calls this parse?
>
> Regards,
> Michelle.
>
>
> 2009/7/29 Sudeep Jha <[email protected]>
>
>> Hi Michelle,
>> you can use the following code snippet.
>>
>> Intent intent = new Intent(Intent.ACTION_CALL);
>> intent.setData(Uri.parse("tel:"+yourphoneNumber));
>> activity.startActivity(intent);
>>
>> Regards,
>> Sudeep
>>
>>
>> On Wed, Jul 29, 2009 at 5:40 PM, Michelle Silva <[email protected]> wrote:
>>
>>> Hi,
>>>
>>> i'm beginner in Android and i'd like to know how can i access the
>>> Dialer aplication. I'd like to make a test that access dialer, dial a
>>> number, make a call and after some time, end this call. I'm using the
>>> emulator.
>>> Can somebody help me?
>>> Best regards,
>>> Michelle.
>>>
>>>
>>
>>
>> --
>> Warm Regards,
>> Sudeep
>>
>>
>>
>
> >
>
--
Warm Regards,
Sudeep
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---