facebook - Titanium.Android.Intent share on social media -


I'm developing an app that shares news on "ninety-nine" apps like Facebook, Twitter and LinkedIn.

I can not customize the intent to display the already announced app and open the application in the browser using custom modules.

I'm using titanium ... so any help with this?

Thank you.

I am using the following intentions to share on the original Facebook and Twitter app:

  var intFB = Ti.Android .createIntent ({action: Ti.Android.ACTION_SEND, package name: "com.facebook.katana", type: "text / plain"}); IntFB.putExtra (Ti.Android.EXTRA_TEXT, yourLINK); // Facebook only supports links (!!!) Ti.Android.currentActivity.startActivity (intFB); Var intTwitter = Ti.Android.createIntent ({action: Ti.Android.ACTION_SEND, package name: "com.twitter.android", flags: Ti.Android.FLAG_ACTIVITY_NEW_TASK, type: "text / plain"}); IntTwitter.putExtra (T.world.EXTRA_TEXT, yourMessage); // Twitter supports any type of string content (link, text, etc.) Ti.Android.currentActivity.startActivity (intTwitter);  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -