Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
This question was closed Dec 31, 2014 at 03:54 AM by Prasanna for the following reason:

The question is answered, right answer was accepted

avatar image
2
Question by Prasanna · Dec 29, 2014 at 09:54 AM · androidscreenshotandroidpluginshare

Share Button

Hi all, my project is augmented reality based(Android Platform). So i need to capture the screenshot and share that screenshot to facebook, twitter, gmail, etc.. How it's possible to achieve this.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

  • Sort: 
avatar image
5
Best Answer

Answer by BlackPanda · Dec 29, 2014 at 11:41 AM

You can use the AndroidJavaClass and AndroidJavaObject classes in Unity to create a share feature in your app. Take a look at this article:

http://www.daniel4d.com/blog/sharing-image-unity-android/

It also says about how to take screenshot and share via Android native share dialog.

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Prasanna · Dec 29, 2014 at 01:00 PM 0
Share

@BlackPanda, thanks for your help, its really working, +1 for your effort.

avatar image BlackPanda · Dec 30, 2014 at 02:53 PM 0
Share

no probs :)

avatar image AlexanderZotov · Feb 01, 2018 at 12:17 PM 0
Share

Works perfectly!

avatar image
3

Answer by HarshadK · Dec 29, 2014 at 10:03 AM

Take a screenshot using Application.CaptureScreenshot and then you can share this image using the APIs of the respective Social Networking Site you want to share to.

Facebook has their own SDK for Unity: Facebook SDK for Unity

Comment
Add comment · Show 13 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Prasanna · Dec 29, 2014 at 10:07 AM 0
Share

@Harshad$$anonymous$$, actually i don't need this separately. for eg: you have a image on your android and need to share that, if you press the share button it pop-up one window which had been shown your all installed file, through that you can share the image where you want. (Sorry for my bad English)

avatar image HarshadK · Dec 29, 2014 at 10:11 AM 0
Share

So do you mean you want to show user the default share menu that OS shows? or you want to create your own menu using which user can choose where he wants to share?

avatar image Prasanna · Dec 29, 2014 at 10:15 AM 0
Share

I want to show that OS menu which one is default, but am still didn't decide that, but my objective is to share the screenshot in this way. So which one best method to achieve this? or i go with the default OS menu?

avatar image HarshadK · Dec 29, 2014 at 10:20 AM 0
Share

Each method has Pros and Cons like default OS menu will allow you to have many options available to share but there might not be options for some of the applications if those are not installed on the device of user. Having your own menu makes sure that all the options that you need are there but you lose the opportunity of having a long list of options available based on which application user has installed. One more thing is that default OS menu reflects the application that user uses and which is actually nice since user gets to decide what he wants to use rather than you telling him where he can share. So if you are looking for a wide range of options then go with default OS menu.

avatar image Prasanna · Dec 29, 2014 at 10:23 AM 0
Share

That's nice so, is that possible to create unity itself or something else? can you show me some links where i can learn about this?

Show more comments
avatar image
-1

Answer by alok-kr-029 · Dec 29, 2014 at 01:29 PM

I have done this using https://www.assetstore.unity3d.com/en/#!/content/10825 try this

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Follow this Question

Answers Answers and Comments

30 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

calling java method from unity c# 1 Answer

Not able to send message from java to Unity using UnityPlayer.UnitySendMessage 0 Answers

Android Native share (intent) an image with a link 4 Answers

Share image in Unity Game on Android devices error 2 Answers

integrate facebook with android 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges