I would like to create a button in my app such that upon clicking facebook and twitter options would appear and user can immediately share my app. Right now my codes are as below but it still doesn't work. Anyone knows the reason? I'm guessing I need to declare it on manifest but how do I go about?
public Intent onClick(View arg0) {
Intent normalIntent = new Intent(Intent.ACTION_SEND);
normalIntent.setType("text/plain");
normalIntent.putExtra(Intent.EXTRA_SUBJECT, subject);
normalIntent.putExtra(Intent.EXTRA_TEXT, content);
return Intent.createChooser(normalIntent, "Share");