我輕易打開Facebook和Twitter的個人資料從我的Android應用程序是這樣的:如何從我的android應用程序中打開LinkedIn應用程序?
if (facebookId != null)
{
try
{
long longFacebookid = Long.parseLong(facebookId);
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setClassName("com.facebook.katana", "com.facebook.katana.ProfileTabHostActivity");
intent.putExtra("extra_user_id", longFacebookid);
startActivity(intent);
return;
}
catch (ActivityNotFoundException e)
{
e.printStackTrace();
}
catch (NumberFormatException e)
{
e.printStackTrace();
}
}
但我不知道怎麼開口LinkedIn應用程序?有人知道LinkedIn的類名嗎?
謝謝你們!
兩者都不起作用 – user420574 2011-05-24 12:26:32
從ProcessRecord {44c598a8 31483:com.branchu1 /}啓動Intent {cmp = com.linkedin.android/.profile.ViewProfileActivity(還有額外功能)}:java.lang.SecurityException:Permission Denial: 10058}(pid = 31483,uid = 10058)要求爲空 – user420574 2011-05-24 12:29:38