찾다

 >  Q&A  >  본문

android - 微信 OAuth2.0 获得 SendAuth的Resp返回数据

天蓬老师天蓬老师2895일 전1183

모든 응답(2)나는 대답할 것이다

  • 迷茫

    迷茫2017-04-17 12:05:33

    在包名下新建一个 wxapi 目录,在 wxapi 里面新建一个 WXEntryActivity 的 Activity,名字要一模一样。

    假设包名是 xxx.xxx.xxx 那么就是

    xxx.xxx.xxx.wxapi.WXEntryActivity.java
    同时在 AndroidManifest.xml 中声明

    1

    2

    3

    4

    5

    6

    7

    <code> <activity

            android:name=".wxapi.WXEntryActivity"

            android:exported="true"

            android:label="@string/title_activity_wxentry"

            android:screenOrientation="portrait"

            android:theme="@android:style/Theme.NoDisplay" > 这行加上之后可以屏蔽掉闪动的情况,一定要加上哦,不用谢。

    </code>

    实现那个接口就可以了

    具体可以看 http://seanchense.github.io/blog/android_use_wechat_oauth.html

    회신하다
    0
  • 怪我咯

    怪我咯2017-04-17 12:05:33

    LZ,请问你微信登陆搞定了吗???

    회신하다
    0
  • 취소회신하다