Search Unity

Android Simple Share Plugin

Discussion in 'Android' started by haodengli, Jan 10, 2014.

  1. haodengli

    haodengli

    Joined:
    Jan 14, 2012
    Posts:
    19
    Hi Guys,I made a share plug-ins for android app

    you can use it share something in you app

    $8569BD711C7CE3FC0A798D5D6ED53405.png


    The plugin here
    View attachment $AndroidShareForUnity.unitypackage

    Only need to drag the share prefab in you scene:)

    and Press the menu button calls

    English is not good, I hope you can understand
     
    Last edited: Jan 10, 2014
  2. Marfel

    Marfel

    Joined:
    Jun 13, 2013
    Posts:
    1
    It is cool plugin. I was searching it for long time. You saved my time! Thank you so much! :)
     
  3. hieudev

    hieudev

    Joined:
    Feb 16, 2014
    Posts:
    12
    why do you need READ_PHONE_STATUS permission?

    thank you.
     
  4. Sam-K

    Sam-K

    Joined:
    Mar 23, 2013
    Posts:
    27
    Hey am i facing the issue or is there an issue with FB posting. It works fine on everyother app . But on Fb you have to post manually. I mean it opens the dailog box .. but with no Text ??
    Why it is so ??
     
  5. MyReallyLongName

    MyReallyLongName

    Joined:
    May 25, 2014
    Posts:
    5
    This is the greatest thing. Ever.

    Thanks for helping me not to have to deal with awful social media APIs!
     
  6. xndhai

    xndhai

    Joined:
    Dec 1, 2012
    Posts:
    4
    how can i filter to remove some of them out of the list ?

    For exp: i don't want to show twister in the list

    need help, it urgent, please
     
    Last edited: Aug 23, 2014
  7. MyReallyLongName

    MyReallyLongName

    Joined:
    May 25, 2014
    Posts:
    5
    To my understanding it only shows apps that the user has installed. It didn't show me the Twitter option before I installed it on my tablet
     
  8. Sam-K

    Sam-K

    Joined:
    Mar 23, 2013
    Posts:
    27
    Is facebook working for any of you ??
    It doesnt posts automatically. as it does on others. THe facebook dialog opens but its empty no text written. On others it tweets or sends message automatically. |
    Any fix to this please
     
  9. MyReallyLongName

    MyReallyLongName

    Joined:
    May 25, 2014
    Posts:
    5
    https://www.facebook.com/help/400072220038819

    Facebook Platform Policy 2:3

    Ensure that all content in the user message parameter is entered by the user. Don’t pre-fill. This includes posts, messages, comments, and captions.
     
  10. Sam-K

    Sam-K

    Joined:
    Mar 23, 2013
    Posts:
    27
    @Criipi strange .. i dont think this is the case although it clearly seems sos . but after finding this usefull utility plugin i tried to wrote the same for IOS .. its works perfectly fine there. If this is the case then it shouldn't post of FB from IOS right ??
    I tried I tried on twitter and FB both worked.
     
  11. MyReallyLongName

    MyReallyLongName

    Joined:
    May 25, 2014
    Posts:
    5
    To my understanding it's a relatively new rule. It might be that the API which enables prefilled content will be depreciated later on and until then it will work. Prefilled content also works on Windows Phone's ShareLinkTask.
     
  12. Santosh-Patil

    Santosh-Patil

    Joined:
    Apr 1, 2013
    Posts:
    7
    Hi Haodengli,
    It is cool plugin. I was searching it for long time. Is it possible to share "sscreenshot" or any "image" through this plugin?.
    Thanks for sharing
     
  13. brockk

    brockk

    Joined:
    Jun 25, 2013
    Posts:
    4
    Hi Haodengli,
    It is nice plugin. but How can we know if player succesully share game or not ?
     
  14. Pencilaz

    Pencilaz

    Joined:
    May 10, 2014
    Posts:
    11
    facing this error with this pluging in unity 4.6.1 any one can help please:
    Exception: JNI: Init'd AndroidJavaClass with null ptr!
    UnityEngine.AndroidJavaClass..ctor (IntPtr jclass) (at C:/BuildAgent/work/d63dfc6385190b60/Runtime/Export/AndroidJavaImpl.cs:539)
    UnityEngine.AndroidJavaObject.get_JavaLangClass () (at C:/BuildAgent/work/d63dfc6385190b60/Runtime/Export/AndroidJavaImpl.cs:517)
    UnityEngine.AndroidJavaObject.FindClass (System.String name) (at C:/BuildAgent/work/d63dfc6385190b60/Runtime/Export/AndroidJavaImpl.cs:508)
    UnityEngine.AndroidJavaClass._AndroidJavaClass (
     
  15. Pencilaz

    Pencilaz

    Joined:
    May 10, 2014
    Posts:
    11
    works perfect thank you
     
  16. angelsolares

    angelsolares

    Joined:
    Nov 9, 2013
    Posts:
    3
    @Pencilaz I am facing the same problem, would you tell me please how do you solve it? Thanks!

    UPDATE: My bad, I have to run it on the device not the editor.
     
    Last edited: May 30, 2015
  17. litebox

    litebox

    Joined:
    Aug 29, 2011
    Posts:
    158
    Hi, very good plugin. Does it support only test sharing?
    It would be really cool if it could share images :)
     
  18. Alexander21

    Alexander21

    Joined:
    Dec 14, 2015
    Posts:
    302
    Hi all i am new to unity. In my project i am also want to integrate the social networking. I have download the file and run in my unity project. It shows the following error. How can i run the project. What i have to for rectify the error?...

    Exception: JNI: Init'd AndroidJavaClass with null ptr!
    UnityEngine.AndroidJavaClass..ctor (IntPtr jclass) (at C:/buildslave/unity/build/Runtime/Export/AndroidJavaImpl.cs:539)
    UnityEngine.AndroidJavaObject.get_JavaLangClass () (at C:/buildslave/unity/build/Runtime/Export/AndroidJavaImpl.cs:517)
    UnityEngine.AndroidJavaObject.FindClass (System.String name) (at C:/buildslave/unity/build/Runtime/Export/AndroidJavaImpl.cs:508)
    UnityEngine.AndroidJavaClass._AndroidJavaClass (System.String className) (at C:/buildslave/unity/build/Runtime/Export/AndroidJavaImpl.cs:528)
    UnityEngine.AndroidJavaClass..ctor (System.String className) (at C:/buildslave/unity/build/artifacts/generated/common/runtime/AndroidJavaBindings.gen.cs:93)
    Share.Start () (at Assets/Share/Share.cs:14)


    Thanks in advance...
     
  19. Pencilaz

    Pencilaz

    Joined:
    May 10, 2014
    Posts:
    11
    Alexander21 , you must run it on your device , not in the Editor.