11

I have downloaded the SDK example from WeChat website: http://dev.wechat.com/document/gettingstart/android/

I used Eclipse and ADT, target platform Android 2.2 on Samsung Galaxy Spica i5700.

The problem is that the provided demo application is only capable of starting WeChat messenger, while all other function calls do not make any effect on WeChat app.

I was debugging through Eclipse and I saw that API calls to WeChat return success, but weChat is not really responding to any request from the demo app. For example, if I want to share text on "Moments" or to send an image to current scene (chat session), nothing happens, but also no error occurs.

Has anyone made it work this demo application?

Thanks.

JiTHiN
  • 6,548
  • 5
  • 43
  • 69
Zoran
  • 153
  • 1
  • 1
  • 7

3 Answers3

6

It's work for me after I add debug keystore: Add wechat's debug key (found in the package root folder) into ( Window -> Preferences -> Android -> Build -> Custom debug keystore ) then clean and build again

Duyen Hang Kim
  • 173
  • 2
  • 7
4

I had the same problem.

Mange to solve it using the following step:

  1. Re-add the libammsdk.jar
  2. Add proguard.cfg with

    -keep class com.tencent.mm.sdk.openapi.WXMediaMessage { *;}

    -keep class com.tencent.mm.sdk.openapi.** implements com.tencent.mm.sdk.openapi.WXMediaMessage$IMediaObject {*;}

  3. Add wechat's debug key (found in the package root folder) into ( Window -> Preferences -> Android -> Build -> Custom debug keystore )

  4. You might need to clean and build or even restart Eclipse.

  5. (Optional) Run the Application, click on send message (跳转到发消息界面) follow by get token (获取微信访问Token)

Hope that this will help. :)

*****Do not remove the debug key at the Custom debug keystore after installing the wechat demo application to the phone as other application will not work due to different signature.**

Velayutham M
  • 1,119
  • 14
  • 18
Lee Yi Hong
  • 1,310
  • 13
  • 17
  • 1
    Between step 4 and step 5, you should click on login (the first button, on the first page with "XXappXXXXX" X being some chinese characters) Then Wait for a couple a seconds before doing step 5 – Taiko Sep 23 '14 at 11:37
  • 1
    can anyone, please let me know shere can i find the wechat's debug key? – Manikandan Jul 24 '15 at 10:39
1

Right now I'm trying to do same thing.

Take a look to these links (i found the first one when i accidentally clicked "Share on Moments" - "Getting Started - iOS" on page http://dev.wechat.com/document/, yeah, it's highly illogical):

http://dev.wechat.com/document/gettingstart/timeline/

http://dev.wechat.com/document/api/timeline/

It seems that api described there can be used everywhere, not only on iOS, cause this is just http-requests.

Hope it'll help you and me :-)

Andrei Buneyeu
  • 6,662
  • 6
  • 35
  • 38