|
|
@@ -583,18 +583,18 @@ public class MainActivity extends BaseActivity {
|
|
|
@SuppressLint("RestrictedApi")
|
|
|
@Override
|
|
|
public void onImageSaved(@NonNull ImageCapture.OutputFileResults outputFileResults) {
|
|
|
- Log.e("-------->","333------>savePath="+outputFileResults.getSavedUri());
|
|
|
- Log.e("-------->","444------>savePath="+outputFileOptions.getFile().getAbsolutePath());
|
|
|
+ Log.e("-------->","333------>savePath="+outputFileResults.getSavedUri().getPath());
|
|
|
+// Log.e("-------->","444------>savePath="+outputFileOptions.getFile().getAbsolutePath());
|
|
|
Log.e("-------->","------>保存成功");
|
|
|
// Toast.makeText(MainActivity.this, "保存成功", Toast.LENGTH_SHORT).show();
|
|
|
- Log.e("-------->","------->path="+file.getAbsolutePath());
|
|
|
+// Log.e("-------->","------->path="+file.getAbsolutePath());
|
|
|
// Toast.makeText(MainActivity.this, "path="+savePath, Toast.LENGTH_SHORT).show();
|
|
|
// Toast.makeText(MainActivity.this, "path="+getImagePath(savePath), Toast.LENGTH_SHORT).show();
|
|
|
// new Handler().postDelayed(new Runnable() {
|
|
|
// @Override
|
|
|
// public void run() {
|
|
|
// Toast.makeText(MainActivity.this, "保存路径"+getImagePath(savePath), Toast.LENGTH_SHORT).show();
|
|
|
-// mWebView.loadUrl("javascript:uploadPhotoPath('" + getImagePath(savePath) + "')");
|
|
|
+ mWebView.loadUrl("javascript:uploadPhotoPath('" + outputFileOptions.getFile().getAbsolutePath() + "')");
|
|
|
// }
|
|
|
// }, 2000);
|
|
|
}
|