On Mon, Nov 7, 2011 at 11:00 AM, Neilz <neilhorn...@gmail.com> wrote:
> Hmm, I don't get it, I'm missing something obvious :-/
>
> At the moment I have a webview (which is mimicking what may be a stock
> browser) which has a link, such as:
> webView.loadData("<a href='http://com.my.app.android.activity'>..etc.
>
> Then I have this in my manifest:
> <activity android:name=".TestActivity">
>                <intent-filter>
>                  <action android:name="android.intent.action.VIEW" />
>                  <category android:name="android.intent.category.DEFAULT" />
>                  <category android:name="android.intent.category.BROWSABLE" /
>>
>                  <data android:scheme="http"
> android:host="com.my.app.android.activity"  />
>                </intent-filter>
>        </activity>
>
> There isn't anywhere for me to be creating, or setting properties on,
> an Intent.

Correct. You will note that in Ms. Hackborn's answer, she cites two
approaches to the problem. You are taking one approach. The quotes you
used are for the other approach.

BTW, try putting an android:path attribute on your <data> element and
see if it then only opens up in your app vs. giving you the chooser. I
know this works for NFC and NDEF and I can never remember if it works
for HTTP URLs as well. I know that this is what Barcode Scanner uses
to initiate a scan fro

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

_The Busy Coder's Guide to Android Development_ Version 3.6 Available!

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

Reply via email to