本文实例讲述了Android开发中应用程序分享功能。分享给大家供大家参考,具体如下:
Intent shareIntent = new Intent();shareIntent.setAction(Intent.ACTION_SEND);//设置类型shareIntent.setType("text/plain");//设置分享的主题shareIntent.putExtra("android.intent.extra.SUBJECT", "分享");shareIntent.putExtra(Intent.EXTRA_TEXT, "推荐你使用一个程序:"+infos.get(position).getAppName());shareIntent = Intent.createChooser(shareIntent, "分享");startActivity(shareIntent);Log.i(TAG, infos.get(position)+"分享");break; 


















