Intent i = new Intent(Intent.ACTION_SEND);
i.setType("text/html");
String str = et.getText().toString();
i.putExtra(android.content.Intent.EXTRA_TEXT,str);
startActivity(Intent.createChooser(i,"Share using"));
Run Code Online (Sandbox Code Playgroud)
我无法在Android中使用此代码打开Facebook和Twitter,但其他应用程序(如Gmail和Skype)已成功打开.为什么?我如何打开Facebook和Twitter?