Android Apps

Share this to

Related Posts


  1. Android Phonegap Plugin for Social ShareNov 26, 2012 at 2:54 pmReply

    [...] Social Share plugin for Android Cordova 2.2.0 – Email, Sms ,Facebook Twitter share [...]

  2. ImJan 18, 2013 at 1:13 pmReply

    I have implement for 2.0 version but this is not work .
    I got below error .

    ” Uncaught TypeError: Cannot read property ‘SendSms’ of undefined at file:///android_asset/wwwFlinkonemobile/social share .html:22 ”

    line 22 :{message:’Share this link‘},

    what should I do .thx in advance .

  3. adminJan 18, 2013 at 2:48 pmReplyAuthor

    Could you use

    Sorry it was my mistake I have modified that in the post thanks

    • ImJan 19, 2013 at 4:32 amReply

      Thx but still same error is coming .
      And also confuse about below.
      1>Are sure about java file which is include for 2+ cordova version package (It is very different from from 1.9 cordova version ).
      2>can you please provide complete example which is work in 2.0 & 2+ version with html & java script

  4. ImJan 19, 2013 at 4:35 amReply

    and also make sure about
    step 3 :
    here index.js or social.js

    and again I am recommend to you for complete example which work on 2.0

  5. Android Phonegap version 2.0 or higher any update for Share plugin for facebook , twitter, message etc videoJan 19, 2013 at 6:38 amReply

    [...]… [...]

  6. Android Phonegap version 2.0 or higher any update for Share plugin for facebook , twitter, message etc : Android Community - For Application DevelopmentJan 19, 2013 at 7:30 amReply

    [...] referred to this documentation and this question: How to implement facebook send, twitter share, send sms, send email in my [...]

  7. MatteoMay 8, 2013 at 3:24 pmReply

    Really a cool and usefull plugin! I had to make just two edit to make it work…
    First: change window.plugins.ShareSocial.sms in window.SocialShare.sms (for all the sharer)

    Second: change SocialShare.prototype.sms in SocialShare.sms in social.js file

    Now i have a question: can you give me any suggestion to add a share to twitter method?

  8. KrisjanisJun 13, 2013 at 9:05 amReply

    Will this work on cordova 2.4.0 and 2.8.0 (latest at the moment) ?

    Thank You!

    • adminJun 13, 2013 at 9:08 amReplyAuthor

      Hi Kris,

      I have not tried that in the new version. I will check this and get back to you.


  9. MatteoJun 13, 2013 at 10:24 amReply

    I’ve successfully used it with cordova 2.6.0 and 2.7.0

    don’t know about 2.8.0 but I guess it will work…

    • SharadJul 23, 2013 at 9:17 amReply

      For cordova.2.7.0 version it gives Pluginresult and Plugin error. as it requires CordovaPlugin and the excute method returns boolean value. What updation needs to be done in current java file.

      • adminJul 23, 2013 at 9:19 amReplyAuthor

        I will check this ans update you

  10. NikunjAug 19, 2013 at 7:55 amReply

    i had tried this in Cordova 2.5.0 but still it does not work it give me error
    “Call TO OPENGL with NO CURRENT context(loged once per thread)”

  11. NikunjAug 19, 2013 at 8:43 amReply

    thanks dude now it works fine…..

  12. joshAug 22, 2013 at 7:45 pmReply

    Can you submit your plugin to PhoneGap Build? That would be so awesome!

  13. Jasdeep KhalsaAug 27, 2013 at 11:24 amReply

    Hi Sarath,

    Thanks for this excellent plugin!

    Will this work for the Apache Cordova/PhoneGap 3.0 release? As the plugin system has changed to use the “plugin add” interface?


  14. muhsinAug 28, 2013 at 10:04 amReply

    Hi Sarath,
    Good work, is this compatible with cordova 2.7.0 ?

    • adminAug 28, 2013 at 4:13 pmReplyAuthor

      it should work. Please let me know if it is not working. I will update that for newer versions.

      • Jasdeep KhalsaAug 28, 2013 at 4:41 pmReply

        Hi Sarath, doesn’t seems to be working for 3.0.0, could you kindly update it to be installable via the “plugin add” interface?

  15. DDSep 6, 2013 at 12:25 pmReply

    hi sarath,
    good one, is it possible to fetch the current page image n send through sms and email by your link ?

    • adminSep 6, 2013 at 2:09 pmReplyAuthor

      Hi D,
      Could you explain a little bit more ? I am not so clear but as I understand, you can send image as email. But you have to make a minor modification in the plugin. You can store the image in the phone and send as email using below code

      Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);

      emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, emailaddress);
      emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, message);

      ArrayList uris = new ArrayList();

      uris.add(Uri.parse(“android.resource://” + getPackageName() + “/” + R.drawable.file1));
      uris.add(Uri.parse(“android.resource://” + getPackageName() + “/” + R.drawable.file2));

      emailIntent.putExtra(Intent.EXTRA_STREAM, uris));


  16. DDSep 7, 2013 at 6:29 amReply

    Thanks for your quick reply :)
    here’s my posted link for question i’m not able to send email since there is no recipient mail id editext to enter the id and option for sms and facebook are not displayed in the output, please help me

    • adminSep 12, 2013 at 6:03 pmReplyAuthor

      Sorry I have not got the time to check this. Have you found any solution or still working on this ?

  17. arunSep 7, 2013 at 6:42 amReply

    can you please elaborate step 4 and 5 clearly, not able to follow since i’m new to phonegap. Thank you

  18. Error at getPackageName() in android | BlogoSferaSep 10, 2013 at 8:02 amReply

    [...] send Image through SMS in phonegap, following this tutorial… in phonegap the code should be given like [...]

  19. MuhsinSep 11, 2013 at 10:07 amReply

    Hi Sharath,

    I am getting many errors in java file, version 2.7.0
    Can please fix it.

    Thanks for very use full plugin.

  20. DDSep 16, 2013 at 9:35 amReply

    i’m still working on this itself, i’m using cordova 2.3 version,
    getting error as “The method success(PluginResult, String) is undefined for the type SocialShare” in this code
    public void onActivityResult(int reqCode, int resultCode, Intent data) {
    JSONObject smsObj = new JSONObject();
    try {
    smsObj.put(“msg”, “done”);

    } catch (JSONException e) {

    this.success(new PluginResult(PluginResult.Status.OK,smsObj
    ), this.callback);

  21. nebrekabOct 25, 2013 at 3:37 pmReply

    Hi ,

    This looks a very promising plugin but the details on how to install are incredibly vague. For example: There seems to be 2 java files now (in the 2.0 update), where do they go!? Also some screenshots of how this actually is presented to the user onthe device would be great. I am using phonegap 2.7 it always fails (silently). I too had to make fixes to Plugin, which is now CordovaPlugin.

    I appreciate you get what you pay for and this is for free, but the instructions are terrible! :)

    I am willing to help you rewrite the instructions in a clear and concise manner to stop too many people losing the will to live…

  22. adminOct 25, 2013 at 3:46 pmReplyAuthor

    Hi nebrekab.. The two files are not jave files. one is java another one is javascript file. You can either create new package and add .java file inside it or use your existing plugin package and add it over there. .. I will upload the screenshots soon.

  23. nebrekabOct 25, 2013 at 3:53 pmReply

    No, no. Sorry, I should have been more clear.

    In this new ’2.0′ page you have a .java file for download with hardly anything in it – it contains an extension of DroidGap and then there is another .java file with quite a bit more code in it, code that looks like it is the meat of the plugin.

    I realise where the javascript goes and that it is added via the script tag.

    Thanks again

  24. adminOct 25, 2013 at 3:58 pmReplyAuthor

    Sorry that is a wrong file I have updated the links. Please download it now and try again.

  25. nebrekabOct 25, 2013 at 4:57 pmReply


    It’s all a bit confusing to be honest and I gave up with your plugin.

    My advice would be for people looking at this now is to use this implementation instead as it supports both Phonegap 2 and 3 phonegap build and also iOS 6+:

    Maybe you want to add this to your article as it seems somewhat outdated now?

    Thanks for your hardwork on this,

  26. PauloNov 8, 2013 at 11:31 amReply

    Ola Admin.

    O que estou fazendo de errado, o meu não funciona:
    Minimal AppLaud App

    • adminNov 8, 2013 at 11:52 amReplyAuthor

      Could you paste the english version ?

  27. rajeshDec 7, 2013 at 10:55 amReply

    hi i have tried this but in java file,there is some issue with plugin file and to resolve that ,,please help me,,i need urgent

    • rajeshDec 7, 2013 at 10:56 amReply

      there is some issue with plugin class which is extended in java file.(updated)

  28. DavidJan 7, 2014 at 9:42 amReply

    I think the problem with this tutorial has to do with the naming of the plugin – “SocialShare” and “ShareSocial”
    It will be great if the author can write the tutorial and check names again the plugins it will be simpler for people to implement.

    for instant in some place you will have “ShareSocial” and other place “SocialShare” and others “shareSocial”

    • Sarath DRJan 7, 2014 at 9:47 amReplyAuthor

      Thanks David. I have corrected that I am working on a new version.

  29. priyaMay 19, 2014 at 10:03 amReply

    Can any one share facebook plugin for phonegap 2.7.0

  30. kaushalFeb 17, 2015 at 7:23 amReply

    when i create new package com.sarathdr.plugins.SocialShare & import file give me error in package

    • Sarath DRFeb 20, 2015 at 3:08 pmReplyAuthor

      I will check this and get back to you.

Leave a reply

Your email address will not be published. Required fields are marked *


View Sarath D R's profile on LinkedIn

I am a technology consultant and an entrepreneur focused on the following technologies Java,Spring, Android, Angular, Asterisk, Symfony, Cake , Code-Igniter, Jquery , XAMPP, XHTML, AJAX, MySql, Seo, Web Design, Wordpress, iPhone development.

Today’s Tips
  • Generate Codova.jar file from Phonegap project using ant
  • Google map javascript client  to find the geographic co-ordinates  from  Address or post code
  • Update Android main UI from Webview – Phonegap Plugin
  • Jplayer is not working  with HTC One Android 4.3 version browser
  • Regular expression to validate mobile phone numbers starting with + ( plus ) – php
  • Simple pagination script for PHP
  • Useful adb ( Android Debug Bridge ) commands
  • Change the javascript files url to absolute url – Symfony 1.4
  • Set Http authentication header from Client – PHP / CURL

This site uses cookies from Google to deliver its services, to personalise ads and to analyse traffic. Information about your use of this site is shared with Google. By using this site, you agree to its use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.This site also uses cookies from Google to deliver its services, to personalise ads and to analyse traffic. Information about your use of this site is shared with Google. By using this site, you agree to its use of cookies.