On Tue, Jun 22, 2010 at 4:06 PM, Achanta <[email protected]> wrote:
> Although I did not understand what you meant by
>
>>Use new Intent(this, MyReallyScaryActivity.class) instead.
>
> How do I replace
> new Intent(Intent.ACTION_DIAL, Uri.parse("tel://911")); with what you
> suggested?

I'd use copy and paste, substituting in your Activity's class name for
MyReallyScaryActivity. Actually, I notice now that you called it
MyActivity in your sample code in your original message.

You do not want to use new Intent(Intent.ACTION_DIAL,
Uri.parse("tel://911")), since that will trigger the built-in Dialer
application. Moreover, you do not want to implement an ACTION_DIAL
Intent filter, since you are not a Dialer application. Hence, use an
Intent that more directly identifies your desired activity to start.

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

Android Training...At Your Office: http://commonsware.com/training

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

Reply via email to