0

我已经通过 HTML 页面中的选项为共享启用了我的应用程序。现在,我正在尝试将触发此事件的 HTML 页面存储在我的 sdcard 中。为此,我试图使用意图内容。

我将以下内容用于图像,它就像魅力一样。

    Uri imageUri = (Uri) shareintent.getParcelableExtra(Intent.EXTRA_STREAM);
            Uri uri = (Uri) extras.getParcelable(Intent.EXTRA_STREAM);
            ContentResolver cr = getContentResolver();
            InputStream is = cr.openInputStream(uri);
            BitmapFactory.Options options = new BitmapFactory.Options();
            options.inJustDecodeBounds = false;
            Bitmap imageBitmap = BitmapFactory.decodeStream(is ,null, options);

请您给我一个提示,告诉我如何将 HTML 页面保存在我的 SD 卡中?

4

1 回答 1

0

在 WebView 中(允许在应用程序中打开网页的布局......除其他外)并使用 HttpClient.execute() 或 HttpClient.get() 应该可以为您解决问题。

于 2013-07-18T14:11:51.500 回答