From 1928d1f061cd40634b019d95b1b8479cb36f4eda Mon Sep 17 00:00:00 2001 From: duqingquan Date: Thu, 14 Dec 2023 11:50:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=94=99=E8=AF=AF=E7=9A=84ja?= =?UTF-8?q?va.io.file=20=E7=94=A8=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/SyntaxCase/utsAndroid.uvue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/SyntaxCase/utsAndroid.uvue b/pages/SyntaxCase/utsAndroid.uvue index cf4a826..1095225 100644 --- a/pages/SyntaxCase/utsAndroid.uvue +++ b/pages/SyntaxCase/utsAndroid.uvue @@ -63,7 +63,7 @@ import { getDeviceInfoTest, privacyStateTest, } from '@/uni_modules/uts-platform-api' - +import File from 'java.io.File'; import Intent from 'android.content.Intent'; /** @@ -161,7 +161,7 @@ export default { } }, getFileProviderUriClick() { - let file = new java.io.File(UTSAndroid.getResourcePath("static/logo.png")) + let file = new File(UTSAndroid.getResourcePath("static/logo.png")) const uri = UTSAndroid.getFileProviderUri(file) console.log("uri",uri.toString()) const intent = new Intent(Intent.ACTION_VIEW, uri) -- GitLab