如何在Android中显示推文弹出窗口(如在iOS中使用SLComposeViewController)
来自如何在Android中显示推文弹出窗口(如在iOS中使用SLComposeViewController),android,ios,twitter,slcomposeviewcontroller,Android,Ios,Twitter,Slcomposeviewcontroller,来自iOS的背景,我试图了解如何在Android中向用户显示一个简单的预填充Twitter弹出窗口 使用iOS/Swift,我只需执行以下操作: if let vc = SLComposeViewController(forServiceType: SLServiceTypeTwitter) { vc.setInitialText("Hi there!") present(vc, animated: true) } else { print("Twitter accoun
iOS
的背景,我试图了解如何在Android
中向用户显示一个简单的预填充Twitter弹出窗口
使用iOS
/Swift
,我只需执行以下操作:
if let vc = SLComposeViewController(forServiceType: SLServiceTypeTwitter) {
vc.setInitialText("Hi there!")
present(vc, animated: true)
} else {
print("Twitter account not available")
}
我看了好几篇关于SO的教程和帖子,但我对TwitterAuthConfig
,TWITTER\u键
/TWITTER\u秘密
和所有这些东西有点困惑。有没有像iOS那样的简单方法
多谢各位