java如何在安卓改型中上传文件时显示进度条
我正在开发一款使用改型的安卓应用程序。我想上传任何类型的文件到我的服务器参数。例如,在我的应用程序中有文本字段,如电子邮件和文件上载字段。当我输入字段并单击提交按钮时。它显示上载文件并将文件和数据发送到服务器的百分比。当上传过程进行时,它希望显示完成文件的百分比。怎么可能呢? 有没有参考网站或教程? 请帮帮我
你可以在下面搜索框中键入要查询的问题!
我正在开发一款使用改型的安卓应用程序。我想上传任何类型的文件到我的服务器参数。例如,在我的应用程序中有文本字段,如电子邮件和文件上载字段。当我输入字段并单击提交按钮时。它显示上载文件并将文件和数据发送到服务器的百分比。当上传过程进行时,它希望显示完成文件的百分比。怎么可能呢? 有没有参考网站或教程? 请帮帮我
# 1 楼答案
创建此接口
这个班呢
定义此方法
然后像这样调用upload方法
并通过定义此侦听器来侦听进度