【发布时间】:2012-12-17 04:32:22
【问题描述】:
此时我有一个带有列表视图的活动 (lview),它使用从 url 和 simple activity (sact) 下载到临时文件的图像和 imageview。
点击时,lview 中的textview 的值被选中并按意图发送到 sact,它与对象相关联。拾取对象后,对其进行解析并从中提取链接。然后这个链接用来下载图片。
Intent in = new Intent(getApplicationContext(),
SingleMenuItemActivity.class);
in.putExtra("name", name);
Log.d("Starting activity ", "Yeah ");
startActivity(in);
事实上,这两个活动都使用相同的链接并引用网络中的相同图像。显然它是低效的。
如何从 lview 的图像视图中拍摄图片(或唯一 ID),然后将其发送到 sact?
【问题讨论】:
标签: android image android-intent temporary-files