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 /
avatar image
0
Question by brianTapblaze · Feb 19, 2014 at 02:16 AM · androidnativesocialtwitter

User modified/customized Android native Twitter posts

iOS has this fantastic thing in iOS 7 where you can open any social media and make a custom post from it: UIActivityViewController

It's called the UIActivityViewController, and whenever I've seen it used, you tap an icon (say, Twitter) and it opens a dialogue box with a preset message, but you can edit the message before posting. For example, with Facebook:

Facebook customized post

There's an equivalent for Twitter. Now on Android, I'm hoping to do the same. Please note: I have already tried Prime31, I have already tried Stan's Assets / Mobile Social Plugin (equivalent of Android Native, but with Twitter). Both of these have led to the same disappointing result: one touch Tweets with no page for user tweaks.

My question then is: can we, in any way, give the user the ability to modify a tweet before it gets posted, while also having a default preset tweet for them to send? It feels like a violation of user trust to just post a tweet without their review or changes. I'd like to use something that looks native if possible, as it gives a cleaner look and works better across multiple games. I don't want a custom screen because I would have to update it for every game's style, or make it some out of place universal style that's only seen in my games.

So can we, through a native menu, give the user on Android the ability to customize a tweet before posting it?

Comment
Add comment · Show 1
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 starikcetin · Apr 26, 2015 at 11:33 AM 0
Share

I wonder if you managed to find a way for this. If so, please share it with us.

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by ekeskin · Apr 26, 2015 at 01:57 PM

Just use deep linking. It will redirect user to Twitter App itself with premade tweet.

edit:

 const string Address = "http://twitter.com/intent/tweet";
 
 public static void Share(string text, string url,
     string related, string lang="en")
 {
     Application.OpenURL(Address +
         "?text=" + WWW.EscapeURL(text) +
         "&url=" + WWW.EscapeURL(url) +
         "&related=" + WWW.EscapeURL(related) +
         "&lang=" + WWW.EscapeURL(lang));
 }


You can skip related and url part. This will try to open an Twitter App with premade text. if twitter app cannot be found on device(or any app that handles twitter links.) then it will try to open it in default browser.

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 starikcetin · Apr 26, 2015 at 02:11 PM 0
Share

can you specify more please? will it use url parameters to tweet unless user has twitter app or do nothing?

avatar image ekeskin · Apr 26, 2015 at 03:24 PM 1
Share

edited the answer. it will now contains more information about topic.

avatar image starikcetin · Apr 26, 2015 at 04:31 PM 0
Share

Used a method like this and it worked. Thanks.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

20 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

Related Questions

Gradle build error with Twitter Fabric 2 Answers

Native list views on Mobile? 0 Answers

Native look on iOS / Android? 2 Answers

Access photos, videos & music from iOS and Android library? 0 Answers

Using 'GetSocialize' with Unity3d on 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