hmm I did not get this part.
> 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.
What I have in my app is an emergency number[911] button, which the
users can click. So when they click on it I want to show them the dial
menu with that number in it.
new Intent(Intent.ACTION_DIAL,Uri.parse("tel://911")) is doing that
for me. So I implemented it in this way. I also have a few other pages
which have other phone numbers and I am just replacing 911 with that
phone#.
I did what you said regarding removing intent filter and it is looking
fine. This is what I did not understand though.
> Hence, use an Intent that more directly identifies your desired activity to
> start.
Can you tell me how I can replace [ new
Intent(Intent.ACTION_DIAL,Uri.parse("tel://911") ], with what you have
suggested to show the dial screen to the user with the number entered.
Thank you Mark.
On Jun 22, 2:13 pm, Mark Murphy <[email protected]> wrote:
> 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/commonsguyhttp://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