- Home /
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:
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:
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?
I wonder if you managed to find a way for this. If so, please share it with us.
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.
can you specify more please? will it use url parameters to tweet unless user has twitter app or do nothing?
edited the answer. it will now contains more information about topic.
Your answer
Follow this Question
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