from my Android app, I would like to open a link to Social Network profile (Facebook / Twitter / Google Plus / Youtube / Linkedin) in the official Social Network app (if the app is installed, of course).
How to open Social Network profile in the official Social Network app from code?
i successfully used this code for Facebook: Now I want to do the same thing for other Social App ( Twitter / Google Plus / Youtube / Linkedin )
ImageView img = (ImageView) findViewById(R.id.fb);
img.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
try {
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("fb://profile/1531870783738030"));
startActivity(intent);
} catch (Exception e) {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.facebook.com/ultimatesoftwaredeveloper")));
}
}
});