Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用微博客户端分享文字和图片不调用Android微博客户端 #79

Open
ityancs opened this issue Jul 11, 2015 · 2 comments
Open

Comments

@ityancs
Copy link

ityancs commented Jul 11, 2015

使用如下代码添加图片
ImageObject imageObject = new ImageObject();
Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.app_recommend);
imageObject.setImageObject(bitmap);
调不起来Android微博客户端,不添加图片,可以跳转并分享

@ityancs
Copy link
Author

ityancs commented Jul 12, 2015

图片的格式和大小有要求吗?jpg 250K 左右,总是崩溃

@337240552
Copy link

看看解码后的大小 解码后涉及 rpc,如果 bitmap 大于 1MB,就失败,有的手机接近1MB 也会 crash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants