Android的:如何在用户下载文件我拦截(从浏览器或电子邮件或其他形式源) [英] Android: how do I intercept when the user downloads a file (from the browser or from the email or form other source)

查看:388
本文介绍了Android的:如何在用户下载文件我拦截(从浏览器或电子邮件或其他形式源)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

感谢你的帮助,

由于张贴在previous问题,那可能是指着我在正确的方向,

As posted in a previous question, that possibly is pointing me in the right direction,

我需要截取用户下载文件的情况下(从浏览器,构成了电子邮件..),这样我可以propmpt用户和文件保存在我的应用程序定义的文件夹中。

I need to intercept the event of the user downloading a file (from the browser, form the email..) so that I can propmpt the user and save the file in a folder defined in my app.

和,反之亦然我需要能够拦截用户上传文件到网页的情况下,这样我可以给他选择在我的应用程序中定义的文件夹中的文件。

And, viceversa I need to be able to intercept the event of the user uploading a file into a webpage, so that I can offer him to select the file from the folder defined in my app.

如果有人能在正确的方向指向我,我真的很感激!

If somebody could point me in the right direction I would really be grateful!!!

如果有任何开源解决方案已经上市,这将是非常有用的。

If there is any open source solution already available that would be very useful as well.

非常感谢您的任何帮助。

Thank you very much for any help.

LISA

推荐答案

我发现此链接:<一个href=\"http://stackoverflow.com/questions/1609573/intercepting-links-from-the-browser-to-open-my-android-app\">Intercepting从浏览器链接打开我的Andr​​oid应用

您可以拦截链接就像在回答解释。一旦你的链接,它是由你如何通过code处理。如果你想用自己的应用程序下载到你想要的文件夹,你可以用下面的codeS:

You can intercept the link like explained in the answer. Once you've got the link, it is up to you how to handle it through code. If you want to download it with your own applications to a folder you desire, you can use following codes:

下载文件在Android中从远程服务器

如何从URL文件/图片下载到您的设备

我希望这些会帮助你。

这篇关于Android的:如何在用户下载文件我拦截(从浏览器或电子邮件或其他形式源)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆