Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/220.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何将android手机上的所有股票期权与社交媒体进行整合?有人帮我吗_Android - Fatal编程技术网

如何将android手机上的所有股票期权与社交媒体进行整合?有人帮我吗

如何将android手机上的所有股票期权与社交媒体进行整合?有人帮我吗,android,Android,如何将android手机上的所有股票期权与社交媒体进行整合? phonegap 3.0提供此功能,我希望在android应用程序中也能使用此功能…有人帮助您您可以通过发送操作创建意图。请参考下面的代码 Intent shareIntent = new Intent(Intent.ACTION_SEND); shareIntent.setType("image/*"); Uri uri = Uri.fromFile(new File(getFilesDir(), "foo.jpg")); s

如何将android手机上的所有股票期权与社交媒体进行整合?
phonegap 3.0提供此功能,我希望在android应用程序中也能使用此功能…有人帮助您

您可以通过发送操作创建意图。请参考下面的代码

Intent shareIntent = new Intent(Intent.ACTION_SEND);
 shareIntent.setType("image/*");
 Uri uri = Uri.fromFile(new File(getFilesDir(), "foo.jpg"));
 shareIntent.putExtra(Intent.EXTRA_STREAM, uri));
startActivity(Intent.createChooser(shareIntent,"Share Via");

创建内容类型为plain/text的意图。这应该不会太难谷歌感谢很多…它工作得很好..我想发布内容的URL..帮助我从我的应用程序我想分享的内容是在aarti_特定。获取(0)(ArrayList)意图I=新的意图(意图。行动_发送);i、 setType(“文本/普通”);i、 putExtra(Intent.EXTRA_主题,“共享URL”);i、 putExtra(Intent.EXTRA_TEXT,”);startActivity(Intent.createChooser(i,“共享URL”);请使用sendingent.setType(“TEXT/plain”)和sendingent.putExtra(Intent.EXTRA_TEXT,TEXT);Intent shareIntent=新Intent(Intent.ACTION_SEND);shareIntent.setType(“TEXT/plain”);shareIntent.putExtra(Intent.EXTRA_TEXT,x);startActivity(Intent.createChooser(shareIntent,“共享方式”);