本文介绍了如何实现Facebook发送,Twitter分享,发送短信,发送电子邮件在我的phonegap android应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于我使用基于HTML的phonegap框架,我需要一个插件来实现这一点。当我在google上搜索时,我得到了两个搜索结果。

As i am using HTML based phonegap framework, i need a plugin to implement this. when i searched over google, i got two revelent searches.


a。在上述twitter功能未实现。

a. In the above twitter functionality is not implemented.

b。有一个错字在上面的facebook的共享代码
window.plugins.SendSms.social ---->(应该是)window.plugins.ShareSocial.social

b. There is a typo in the above facebook share code window.plugins.SendSms.social ----> (should be)window.plugins.ShareSocial.social

c。因为它是为phonegap 1.9开发的,它有一些已弃用的方法,用于版本phonegap 2.1.0,

c. As it is developed for phonegap 1.9, it has some deprecated methods to be used in the version phonegap 2.1.0,

ctx.startActivity()----> cordova .getActivity()。startActivity()
this.ctx.startActivityForResult ----> this.cordova.startActivityForResult
com.phonegap ----> org.apache.cordova

ctx.startActivity() ----> cordova.getActivity().startActivity() this.ctx.startActivityForResult ----> this.cordova.startActivityForResultcom.phonegap ----> org.apache.cordova

我已经做了所有上述更新,现在所有的错误都消失了,但仍然没有发生什么事情,当我点击按钮电子邮件,短信,Facebook(我正确实现这些按钮的JavaScript点击事件)

I have done all the above updates, now all my errors are gone but still nothing is happening when i click on the buttons email, sms, facebook( i correctly implemented the javascript click events for these buttons)

任何人谁知道java,phonegap插件dev和javascript,请实现相同的插件2.1.0 post示例代码,以显示它是如何工作。我需要它非常麻烦。

Can anyone who knows java,phonegap plugin dev and javascript, Please implement the same plugin for 2.1.0 post sample code to show how it is working.I need it badly ASAP.

没有一个如何使用这个插件为我的目的。即使官方文档也没有帮助。

There is no single example on how to use this plugin for my purpose. Even the official documentation is not helpfull.


推荐答案

插件Cordova 2请你试试,让我知道如果你仍然有问题。

I have updated the same plugin for Cordova 2 Could you please try that and let me know if you still have the issue. http://tech.sarathdr.com/featured/social-share-plugin-for-android-cordova-2-2-0-email-sms-facebook-twitter-share

这篇关于如何实现Facebook发送,Twitter分享,发送短信,发送电子邮件在我的phonegap android应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 04:29