i’m trying to port my android application to windows. in android, there is a way to start an activity with the ACTION_SEND flag i.e.
Intent intent = new Intent(android.content.ACTION_SEND);
intent.setType("text/plain");
intent.putExtra(android.content.Intent.EXTRA_TEXT, "....");
startActivity(Intent.createChooser(intent, "Subject"))
when you do this, a list of applications (i.e. facebook, text messaging, twitter, evernote, etc…) that can receive the passed in information is presented. the user selects one and information can be shared thus.
is there something analogous in windows phone 7?
Yes, Windows Phone 7 does have something similar. Take a look at Launchers and Choosers.
With launchers, you can launch another application but you do not get any information back from the newly launched application after it ends. This is similar to startActivity in Android. With choosers, you can receive information back, similar to startActivityForResults. There are a bunch of launchers and choosers available.