Why not just pass the HTML as a String?

On Fri, Jun 24, 2011 at 2:47 AM, rochdev <[email protected]> wrote:
> Hi,
>
> I'm unsure if this is a feature or a bug.
>
> What I'm trying to do is to pass some styled text between two
> activities.
>
>        final Intent intent = new Intent(this, ActivityB.class);
>        intent.putExtra("message", Html.fromHtml("My <b>image</b> <br />
> <img src=\"http://example.com/image.png\"; />", imageGetter, null));
>        startActivity(intent);
>
> Then when I retrieve my text in the new Activity the entire img tag is
> replaced by &#65532; (OBJ - symbol).
>
>        CharSequence message = intent.getCharSequenceExtra("message");
>
>        ----START message----
>        <p>My <b>image</b> <br>
>        &#65532;</p>
>        ----END----
>
> Any thoughts?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to