Skip to content

Commit

Permalink
fixed README doc
Browse files Browse the repository at this point in the history
  • Loading branch information
qhm123 committed Aug 28, 2012
1 parent f77307b commit 624e563
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions Android/Weixin/README.md
Expand Up @@ -6,22 +6,20 @@

1.add weixin.js to your www folder and include it to your html file below cordova.js

<pre><code>
&lt;script type="text/javascript" charset="utf-8" src="cordova.js">
<pre><code>&lt;script type="text/javascript" charset="utf-8" src="cordova.js">
&lt;script type="text/javascript" charset="utf-8" src="weixin.js">
</code></pre>

2.Add Example src files to your project.

3.Add libs/libammsdk.jar file to your project libs directory.

3.Add below words to your res/xml/plugins.xml.
4.Add below words to your res/xml/plugins.xml.

<pre><code>
&lt;plugin name="Weixin" value="com.sina.mobile.weixin.WeixinPlugin"/>
<pre><code>&lt;plugin name="Weixin" value="com.sina.mobile.weixin.WeixinPlugin"/>
</code></pre>

4.Modify APP_ID in src/com/sina/mobile/weixin/Constants.java file and
5.Modify APP_ID in src/com/sina/mobile/weixin/Constants.java file and
assets/www/script.js.

##Usage
Expand All @@ -30,7 +28,7 @@ assets/www/script.js.

在微信终端程序中注册第三方应用
说明:需要在每次启动第三方应用程序时调用。第一次调用后,会在微信的可用应用列表中出现。
* appId 微信开发的ID (通过http://open.weixin.qq.com/ 申请)
* appId 微信开发的ID (通过http://open.weixin.qq.com/ 申请,注意Android版本还需要匹配签名和包名)
* onSuccess 注册成功时的回调函数
* onError 注册失败时的回调函数
* errCode 错误值
Expand All @@ -48,8 +46,6 @@ function onError(response){
}
</code></pre>

###--sina.weixin.getWXAppInstallUrl(onSuccess,onError)--

###sina.weixin.isWeixinInstalled(onSuccess,onError)

检查微信是否已被用户安装
Expand Down Expand Up @@ -351,7 +347,7 @@ function getWebpageContent(){
* thumbData APP扩展信息缩略图base64数据,大小不能超过32K。当thumbUrl和thumbData同时设置时,采用thumbData。
* extInfo 自定义简单数据,长度不能超过2K。微信应用会回传给第三方应用处理。extInfo与fileData不能同时为空。
* fileData APP文件数据,JSON对象,大小不能超过10M。该数据发送给微信好友,微信好友需要点击后下载数据,微信应用会回传给第三方应用处理。extInfo与fileData不能同时为空。
* --url 若第三方应用不存在,微信应用会打开该url所指的App下载地址。--(Android版本没有此属性)
* url 若第三方应用不存在,微信应用会打开该url所指的App下载地址。(Android版本没有此属性)

demo
<pre><code>
Expand Down

3 comments on commit 624e563

@chengrenz
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

麻烦更新下phonegap 安卓版的 微信的分享到朋友圈 ,谢谢。预计什么时候可以上线。谢谢。

@qhm123
Copy link
Author

@qhm123 qhm123 commented on 624e563 Sep 12, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chengrenz 你好,暂时没有明确的计划,稍后可能会增加。如果你有兴趣,非常欢迎贡献代码。

@chengrenz
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@qhm123 您好。我没有这个能力的,我不会制作插件的。哈哈,希望您有时间了就尽快更新 下 安卓的分享到朋友圈功能,谢谢。

Please sign in to comment.