没有做过原生安卓开发,对scheme配置没有经验。  
AndroidManifest.xml按照离线打包说明进行了配置,<data android:scheme="testscheme" />测试了很多种scheme命名,
离线打包程序安装成功并且也可以成功运行,但无法通过浏览器唤醒调用。
web端调用配置 testscheme://
请问下,大家有配置成功的吗,该做些什么调整?  
    <activity  
        android:name="io.dcloud.PandoraEntry"  
        android:configChanges="orientation|keyboardHidden|keyboard|navigation"  
        android:label="@string/app_name"  
        android:launchMode="singleTask"  
        android:hardwareAccelerated="true"  
        android:theme="@style/TranslucentTheme"  
        android:screenOrientation="user"  
        android:windowSoftInputMode="adjustResize" >  
        <intent-filter>  
            <action android:name="android.intent.action.MAIN" />  
            <category android:name="android.intent.category.LAUNCHER" />  
        </intent-filter>  
    </activity>  
    <activity  
        android:name="io.dcloud.PandoraEntryActivity"  
        android:launchMode="singleTask"  
        android:configChanges="orientation|keyboardHidden|screenSize|mcc|mnc|fontScale|keyboard|smallestScreenSize|screenLayout|screenSize"  
        android:hardwareAccelerated="true"  
        android:permission="com.miui.securitycenter.permission.AppPermissionsEditor"  
        android:screenOrientation="user"  
        android:theme="@style/DCloudTheme"  
        android:windowSoftInputMode="adjustResize">  
        <intent-filter>  
            <category android:name="android.intent.category.DEFAULT" />  
            <category android:name="android.intent.category.BROWSABLE" />  
            <action android:name="android.intent.action.VIEW" />  
            <data android:scheme="testscheme" />  
        </intent-filter>  
    </activity>                                
            
            
            
            
sdonly (作者)
谢谢
2022-05-27 17:22