diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 85e0d2c8df3ded51a4f2f07b826c2584b1091478..2b6a7e163b440015f4b0f4f96977062cb1c15314 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -16,5 +16,14 @@ android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/filepaths" /> + + + + + + + diff --git a/uni_modules/uts-nativepage/utssdk/app-android/index.uts b/uni_modules/uts-nativepage/utssdk/app-android/index.uts index ef477b3048cc1aea005fb89321703cbcb29af98d..fad0cb4d360883b848321252949551f33bfe8e74 100644 --- a/uni_modules/uts-nativepage/utssdk/app-android/index.uts +++ b/uni_modules/uts-nativepage/utssdk/app-android/index.uts @@ -184,6 +184,21 @@ class ActivityFinishListener extends OnClickListener{ } } +class RootActivityStartListener extends OnClickListener{ + + host:Activity + + constructor(activity:Activity){ + super() + this.host = activity + } + + override onClick(v?: View):void{ + let intent = Intent("uni.UNI70BE9D0.RootPackageActivity") + host.startActivity(intent) + } +} + /** * 自定义异步线程 */ @@ -262,6 +277,8 @@ class DemoActivity extends Activity{ let btn_finish_activity = this.findViewById