-2
的错误是send_to
不能得到解决或无法在现场send_to不能得到解决或无法在现场
@Override
public void onClick(View arg0) {
// TODO Auto-generated method stub
Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_TEXT, "This is my text to send.");
sendIntent.setType("text/plain");
startActivity(Intent.createChooser(sendIntent, getResources().getText(R.string.send_to)));
}
});
我已经通过导入尝试,但它仍然没有工作 import your.application.packagename.R;