发文字内容发可以,但是图片如何发弄不明白了,谁会请帮帮我, 谢谢了。比较急!!!!!
QQ 363769242

解决方案 »

  1.   

    用新浪微博开放平台的Android版SDK吧
    WeiboClient.uploadStatus(text, item)这个方法
    使用的是Oauth认证
      

  2.   

    twitter的例子,你上网找找,java版的,我以前用过,估计类似
      

  3.   

    byte[] content= readFileImage(picPath);
    ImageItem pic=new ImageItem("pic",content);
    status=weibo.uploadStatus(sMessage, pic);-----------------------
    public static byte[] readFileImage(String filename)throws IOException{
    BufferedInputStream bufferedInputStream=new BufferedInputStream(
    new FileInputStream(filename));
    int len =bufferedInputStream.available();
    byte[] bytes=new byte[len];
    int r=bufferedInputStream.read(bytes);
    if(len !=r){
    bytes=null;
    throw new IOException("读取文件不正确");
    }
    bufferedInputStream.close();
    return bytes;
    }
      

  4.   

    新浪微博ANDROID开发。http://blog.163.com/ppy2790@126/blog/static/10324224120114101335104/