Intent-filter: Bei bestimmter Internetseite App öffnen

  • Antworten:0
Gian U.
  • Forum-Beiträge: 117

05.02.2011, 20:49:23 via Website

Hallo,

Ich will, dass wenn eine Internetseite nach dem Schema "http://www.kantiheim.com/public/en/applications/voctrainer/download/***.csv" (*** ist variabel) aufgerufen wird, meine App geöffnet werden soll. Für Dateien im CSV-Format hab ich es schon hinbekommen, aber bei der Webseite funktioniert es irgendwie nicht. Hier mein Intent-Filter:

1<intent-filter>
2 <action android:name="android.intent.action.RUN" />
3 <action android:name="android.intent.action.VIEW" />
4 <action android:name="android.intent.action.WEB_SEARCH" />
5 <category android:name="android.intent.category.DEFAULT" />
6 <data android:scheme="file" android:mimeType="text/csv" />
7 <data android:scheme="file" android:mimeType="text/comma-separated-values" />
8 <data android:scheme="http|file" android:host="www.kantiheim.com" android:pathPrefix="public/en/applications/voctrainer/download/" />
9 </intent-filter>

Mache ich einen Denkfehler oder sieht jemand etwas anderes?

Vielen Dank für eure Bemühungen

Gian

Mnemono - Efficient learning!

Antworten