简体   繁体   中英

Android share via my webview application

How to implement a function, which allows from android image gallery share image to my webview application and upload it to the server?

Eg I'm browsing through my android image gallery, on a specific image I click "share" button, then in a "Share via" window I select my webview application, which opens a specific view with packages list, then I select a package and the image is uploaded to the server with the selected package's id.

So, is it possible to create this functionality as described above? Or maybe it's only possible to upload an image via regular file chooser?

I'm quite new to android development, so any help where should I start would be appreciated.

This should Help :

How to get the data from "share picture via" dialog on Android?

So now that you have sent the Picture and Received it using Intent - You can use your own Code to Upload it to server. Say you have a Check Box to select the Packages - Use the corresponding Information and Upload the Image.

yes you can pick image from this tutorial and make you activity in share list by setting the intent filter in activity tag and then apply you logic for uploading the image

<action android:name="android.intent.action.SEND" />     
<category android:name="android.intent.category.DEFAULT" />

hopefully it will help you

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM