我是android Java的新手。我正在尝试使用 Phonegap 在 android 应用程序中共享图像。我得到新类“共享”作为 CordovaPlugin,代码如下...
Intent share = new Intent(Intent.ACTION_SEND);
share.setType("image/*");
Uri uri = Uri.parse("file:///android_asset/www/sharethis.png");
share.putExtra(Intent.EXTRA_STREAM, uri);
上面的代码不起作用,它显示如下......
是认为我无法获得确切的图像文件位置。我的文件位置
我也尝试了以下代码,但不起作用,
String imagePath = Environment.getExternalStorageDirectory()
+ "/assets/www/sharethis.png";
请帮忙