logo       

[android-developers] Re: Initial Doubt: msg#04219

AndroidDevelopers

Subject: [android-developers] Re: Initial Doubt

Hi Mak,

       it works! But i want something different... i want to see the number being dialed and after the call key being pressured. How can i do this?
        []s,
           Michelle.

2009/7/31 Mark Murphy <mmurphy@xxxxxxxxxxxxxxx>

Michelle Silva wrote:
> public class MakeCall extends Activity {
>     /** Called when the activity is first created. */
>     @Override
>     public void onCreate(Bundle savedInstanceState) {
>         super.onCreate(
> savedInstanceState);
>         Intent intent = new Intent(Intent.ACTION_DIAL);
>         intent.setData(Uri.parse("99999999"));
>         startActivity(intent);
>
>         setContentView(R.layout.main);
>     }
> }

Try:

intent.setData(Uri.parse("tel:99999999"));

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

Need help for your Android OSS project? http://wiki.andmob.org/hado



--~--~---------~--~----~------------~-------~--~----~
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@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
android-developers-unsubscribe@xxxxxxxxxxxxxxxx
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Google Custom Search

News | Mail Home | sitemap | FAQ | advertise