qrcodeDemo: 二维码开发demo
二.分享功能1.把应用加入分享列表:
AndroidManifest.xml
......
2.接收分享的字符串
protected void onCreate(Bundle savedInstanceState) { ...... Intent intent = getIntent(); String action = intent.getAction(); String type = intent.getType(); if (action.equals(Intent.ACTION_SEND) && type.equals("text/plain")) { editText.setText(intent.getStringExtra(Intent.EXTRA_TEXT)); button1.performClick(); } }
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)