8tory / simpleweibo Goto Github PK
View Code? Open in Web Editor NEWSimple Weibo SDK
License: Apache License 2.0
Simple Weibo SDK
License: Apache License 2.0
Usage:
simpleWeibo.publish(Status.builder().status("status").build()); // update.json
simpleWeibo.publish(Status.builder().status("status").lat(lat).long(long).build()); // update.json
simpleWeibo.publishPhoto(Status.builder().pic(bitmap).status("status").build()); // upload.json
simpleWeibo.publishPhoto(Status.builder().pic(bitmap).status("status").lat(lat).long(long).build()); // upload.json
Requires:
static WeiboParameters.from(Bundle)
static Status.toBundle()
Exception thrown while trying to call logInWithPermissions():
https://pastebin.com/1paZbcxV
Additional error message: " android.content.ActivityNotFoundException: Unable to find explicit activity class {com.syjgin.langgreeting/com.sina.weibo.sdk.component.WeiboSdkBrowser}; have you declared this activity in your AndroidManifest.xml?"
Here is Manifest content:
https://pastebin.com/iXz0kgbF
Should I change something to get oauth dialog working?
Edit:
Latest comment: find the point: if i run on emulator on android-platform-22, this app will NOT crash
搞清楚了問題,編譯好的工程在5.1.1(API22)的模擬器上運行就不會crash
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Hello, if I run lastest built apk, it will crash, and logcat is:
"java.lang.ClassNotFoundException: Didn't find class "com.sina.weibo.simple.app.MainActivity" on path: DexPathList[[zip file "/data/app/com.sina.weibo.sdk.demo-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.sina.weibo.sdk.demo-1, /vendor/lib, /system/lib]]"
我是用android-studio1.3構建的,運行的手機是5.0以下的。大陸網絡環境不好,我也不知道依賴包是否全部都已下載,反正提示build succesful, 可是運行就出這個錯。
小白級的問題,望大神指點!
我下載了demo-apk看了,結果看不了微博詳情頁,不知道最新版本是否可以看詳情,如果方便請發布壹個最新的demo-apk
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.