ContentProviders are a great way of sharing data between two or more apps
check here for the api
The other thing you asked (to share data between activities) is probably best achieved by using intents. Something like this:
Intent intent = new Intent(this.getApplicationContext(), DisplayMessageActivity.class);
intent.putExtra("CONSTANT_TO_SHARE", constant_id);
startActivity(intent)