可以直接在项目中引用的Library Project(Library Project which you can use in your application project )
用法:把此项目做为library引入到你的工程,在你的工程manifest文件中添加权限
<uses-permission android:name="android.permission.GET_TASKS" />
并添加activity:
然后在你的activity中调用就可以了 调用示例: public void share(View v){ ShareSDK.initSDK(this);
OnekeyShare oks=new OnekeyShare();
oks.disableSSOWhenAuthorize();
oks.setNotification(R.drawable.ic_launcher, "share");
oks.setTitle("hellow world");
oks.setText("fenxiang");
oks.setUrl("http://www.baidu.com");
oks.setComment("I am test comment test");
oks.show(this);
}