开发者

FaceBook dynamic Image URL

开发者 https://www.devze.com 2023-01-20 06:29 出处:网络
friend\'s, I am working in Facebook,here i need to change the image url value string has dynamic one, here my code

friend's, I am working in Facebook,here i need to change the image url value string has dynamic one, here my code

intent
    .putExtra(
            "attachment",
            "{\"name\":\""
                    + Html.fromHtml(title)
                    + "\",\"href\":\""
                    + Html.fromHtml(url_val)
                    + "\",\"description\":\""
                    +  Html.fromHtml(desc_val)
                    + "\",\"media\":[{\"type\":\"image\",\"src\":\"http://www.naicu.edu/imgLib/20070913_small_seal.jpg\",\"href\":\"http://alumni.brown.edu/\"}]}");
    this.startActivityForResult(intent, MESSAGEPUBLISHED);

here image source given in code has开发者_如何学Go static,but i need to assign an simple string variable in the place of double quoted image url,for example i want to place string temp_url in the place of **src\":\"http://www.naicu.edu/imgLib/20070913_small_seal.jpg**,how can i get it.

Thanks in advance.

0

精彩评论

暂无评论...
验证码 换一张
取 消