Remmyabhavan
Remmyabhavan

Reputation: 1719

integrate my application with browser android

I would like to create an application wherein if the app is installed on our android mobile,the user should be given a facility to share images through the application on selection of images while browsing.
Please let me know how i can achieve this.Can i achieve this using intent filters?
Please let me know your valuable suggestions.
Thanks in advance.

Upvotes: 1

Views: 459

Answers (2)

yeradis
yeradis

Reputation: 5347

You need to use a custom scheme and host, for example

in your activity definition on your manifest

put this:

<intent-filter>
    <data android:scheme="http" android:host="twitter.com"/>
    <action android:name="android.intent.action.VIEW" />
</intent-filter>

then on your browser go to twitter.com you should be asked to open that link with the browser or with your app

hope this help

update1: you can handle http protocol so you can get the full url and depending on the host or extension can be an image....

Upvotes: 1

CommonsWare
CommonsWare

Reputation: 1006584

Step #1: Write a Web site that allows "selection of images", since this is not something native to a Web browser

Step #2: Implement some sort of sharing feature to your Web site

Upvotes: 0

Related Questions