0
我使用這個代碼來分享該圖片是在我的SD卡已經可用:如何共享ImageView的圖像?
Intent picMessageIntent = new Intent(android.content.Intent.ACTION_SEND);
picMessageIntent.setType("image/jpeg");
//File downloadedPic = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS),"q.jpeg");
//picMessageIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(downloadedPic));
File f = new File(lastPath);
picMessageIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(f));
startActivity(picMessageIntent);
//finish();
但是,相反的,我想用我已經設置到的ImageView的ImageView的圖像文件。並希望分享該文件。那麼如何從ImageView中獲取文件併發送以與上面的代碼共享?
謝謝。
如果我想送我已經設置爲ImageView的那麼圖像(回答
http://groups.google.com/group/android-developers
陷入僵局)? –