【问题标题】:Passing in a Bitmap as the EXTRA_STREAM parameter when launching an Intent启动 Intent 时将位图作为 EXTRA_STREAM 参数传入
【发布时间】:2010-11-06 00:26:04
【问题描述】:

在 JavaDoc 中,启动 Intent 时的 EXTRA_STREAM 参数需要是一个 URI。 如何传递通过启动“android.provider.MediaStore.ACTION_IMAGE_CAPTURE”意图获得的位图对象?

/**
     * A content: URI holding a stream of data associated with the Intent,
     * used with {@link #ACTION_SEND} to supply the data being sent.
     */
    public static final String EXTRA_STREAM = "android.intent.extra.STREAM";

【问题讨论】:

    标签: android android-intent


    【解决方案1】:

    我认为您必须将其保存到磁盘并在 EXTRA_STREAM 额外的 file: URI 中传递。

    【讨论】:

      猜你喜欢
      • 2018-11-22
      • 2018-11-29
      • 1970-01-01
      • 2022-01-25
      • 2019-04-17
      • 2012-05-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多