Hi everyone ! This is my first blog , At the same time, I am also the same as the title , I am also a rookie , When I first started sharing and logging in to third parties& #xff0c;Encountered a lot of pitfalls,But I searched a lot on the Internet,It’s all very fragmentary knowledge points,Or it’s not explained very clearly,Or it’s just not there&# xff0c;Maybe you found it,I am blind,in order not to make many people suffer like me,I write down the pitfalls I encountered,and some attention points& #xff0c; for your reference.
The first thing I wrote was login , I first chose the official integration document , qq login may be very simple , but I did not succeed at one time& #xff0c;……………………………..Here I recommend a blog written for a friend ,very detailed, You can refer to ,http://blog.csdn.net/zhangzibin1992/article/details/62419068,This article is a very detailed one I was looking for,You can take a look , Then combined with the official documentation , it will be solved soon.
There are still many people who choose a third party, such as ,mob or Youmeng, what you have thought about, I also thought about it at the time,Let’s talk about Youmeng first ,For me personally,Youmeng is quite pitiful……
When writing for the first time, we should pay attention to , the id of each platform, and the corresponding key must be written correctly , and the package name& #xff0c;signed,we have to carefully check whether it is signed before release or after packaging,this is very important,I made such a mistake at the time, In short& # xff0c; this point must be paid attention to.
At the same time, the document also said that ,qq sharing must also bring pictures,otherwise the sharing will fail
Note: ; Finally, rewrite the onActivityResult method in the Activity where the share is located. Note that it cannot be implemented in the fragment , if the share is called in the fragment, implemented in the Activity that the fragment depends on , if the onActivityResult method is not implemented, xff0c;It will cause sharing or callback not to work normally
@Overrideprotected void onActivityResult(int requestCode, int resultCode, Intent data) {super. onActivityResult(requestCode, resultCode, data);UMShareAPI.get(this).onActivityResult(requestCode, resultCode, data);}
Then after I finished writing , I felt that there was no problem , suddenly flashed back while running, What was displayed was this , I expressed a look of confusion , and finally looked for it.
http://bbs.umeng.com/thread-25606-1-1.html
Although this article is very Detailed , but I still haven’t corrected it , Finally, I took a closer look , I took a good look at the official demo
Just import this ,Your other related questions,correspondingly add it to your own project.
http://bbs.umeng.com/thread-17764-1-1.html This is a good post on the Youmeng Forum , I recommend everyone to take a look , There are various problems in it plus solutions , everyone You can take a good look.