@ckh wrote:
Hello,
What I am trying to do is to share some text with some of the available/installed social apps, like twitter, facebook, whatsapp, linkedin,...
A popup should be displayed, and the user should choose which app is he going to share with this text. it is commonly use on many applications.
Intent sendIntent = new Intent(); sendIntent.setAction(Intent.ACTION_SEND); sendIntent.putExtra(Intent.EXTRA_TEXT, "This is my text to send."); sendIntent.setType("text/plain"); startActivity(sendIntent);
This is the code that should be called on a normal Android application, but how to integrate it within cocos2d-JS?, i tried to add it to the appActivity.java and call it using JSB reflection with no luck.
Did someone tried something similar using cocos2d-js?
Posts: 1
Participants: 1