简体   繁体   中英

android twitter integration with twitter client

I use twitter4j to integrate my Android app with Twitter. Everything goes smooth, but customer requires to operate through local Twitter client (if installed), not through browser. As you know, integration with Facebook has such a functionality.

I can hardly keep myself from saying that it's impossible... And I want someone to confirm that (or explain how to integrate with client).

I think that your solution is correct, but lets look other choices (that you can also explain to your customer):

You could launch an intent to publish some text (your tweet) and let the user handle the client. The problem is that you cannot limit the app to be launched, so the user could choose, for example Facebook, Whatsapp, etc. Taking this choice implies that your share button wouldn't be 'Share via Twitter' or something similar, since you're letting the user to share the text wherever he wants the button should simply say 'Share' (which I think its the best option).

If you don't want to go in that direction, I suggest you to explain your customer (in case you can) that Android have TOO MANY twitter applications, and if the user have more than one you couldn't know which will he use.

I hope this solves your problem (sorry for my bad english).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM