I'm developing a application for download image. I have successful to trigger my app when the user click the download image link.How do i filter the specific URL?
here my manifest code :
<activity android:theme="@style/Transparent" android:name=".DownloadImage"
android:label="@string/app_name">
<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:mimeType="image/*" android:host="*"
android:scheme="http" />
</intent-filter>
</activity>
my application will launch and download the image when user click any link in browser but not trigger on specific url, for example "http://www.ABC.com" or the specific item "http://www.ABC.com/image/background.jpg"
when your application called for download image you should explore link:
Intent intent = getIntent();
String link = intent.getDataString();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With