That seems to work.

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?

Thank you anyway.


On Jun 17, 4:49 am, Mark Murphy <[email protected]> wrote:
> On Thu, Jun 17, 2010 at 12:41 AM, Achanta <[email protected]> wrote:
> > But I just discovered that whenever I try to add another call when I
> > am in a call, it promps me to complete the action using.
> > 1. my app
> > 2. The normal phone
>
> > And when I click on my app, it just opens my app. I do not understand
> > what is causing this and do not want my app to be shown in that list.
>
> > Here is the snippet from manifest
> >        <activity android:name=".MyActivity"
> >                android:label="@string/main_header">
> >            <intent-filter>
> >                <action android:name="android.intent.action.DIAL" />
> >                <category
> > android:name="android.intent.category.DEFAULT" />
> >            </intent-filter>
> >        </activity>
>
> Get rid of your <intent-filter>.
>
> > and here is what I have in my onClick method of the emergency button.
>
> >                Intent dial_911 = new Intent(Intent.ACTION_DIAL,
> > Uri.parse("tel://911"));
> >                startActivity(dial_911);
>
> Use new Intent(this, MyReallyScaryActivity.class) instead.
>
> --
> Mark Murphy
> CommonsWare
> [email protected]http://commonsware.com

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